projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38c2d6c
)
Treat virtual network device as tap if Mode = switch or hub.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 21 Dec 2008 16:19:31 +0000
(16:19 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 21 Dec 2008 16:19:31 +0000
(16:19 +0000)
On OpenBSD, the link0 flag should still be set in tinc-up or by other means.
src/bsd/device.c
patch
|
blob
|
history
diff --git
a/src/bsd/device.c
b/src/bsd/device.c
index
5bd253c
..
3e61431
100644
(file)
--- a/
src/bsd/device.c
+++ b/
src/bsd/device.c
@@
-78,7
+78,7
@@
bool setup_device(void) {
return false;
}
} else {
- if(strstr(device, "tap"))
+ if(strstr(device, "tap")
|| routing_mode != RMODE_ROUTER
)
device_type = DEVICE_TYPE_TAP;
}