… | |
… | |
95 | # include "tincd/linux/device.c" |
95 | # include "tincd/linux/device.c" |
96 | const char * tap_device::if_up () { return "/sbin/ifconfig $IFNAME hw ether $MAC mtu $MTU up"; } |
96 | const char * tap_device::if_up () { return "/sbin/ifconfig $IFNAME hw ether $MAC mtu $MTU up"; } |
97 | |
97 | |
98 | #elif IF_freebsd |
98 | #elif IF_freebsd |
99 | # include "tincd/freebsd/device.c" |
99 | # include "tincd/freebsd/device.c" |
|
|
100 | // 5.2.1' ifconfig _first_ sets the if up then changes mtu, which can be deadly due to ipv6 kicking in |
100 | const char * tap_device::if_up () { return "/sbin/ifconfig $IFNAME ether $MAC mtu $MTU up"; } |
101 | const char * tap_device::if_up () { return "/sbin/ifconfig $IFNAME ether $MAC mtu $MTU && /sbin/ifconfig $IFNAME up"; } |
101 | |
102 | |
102 | #elif IF_netbsd |
103 | #elif IF_netbsd |
103 | # define IF_istun 1 |
104 | # define IF_istun 1 |
104 | # include "tincd/netbsd/device.c" |
105 | # include "tincd/netbsd/device.c" |
105 | const char * tap_device::if_up () { return "/sbin/ifconfig $IFNAME mtu $MTU up"; } |
106 | const char * tap_device::if_up () { return "/sbin/ifconfig $IFNAME mtu $MTU up"; } |