ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/device-tincd.C
(Generate patch)

Comparing gvpe/src/device-tincd.C (file contents):
Revision 1.15 by pcg, Wed Mar 23 21:55:39 2005 UTC vs.
Revision 1.16 by pcg, Fri Mar 25 13:56:25 2005 UTC

95# include "tincd/linux/device.c" 95# include "tincd/linux/device.c"
96const char * tap_device::if_up () { return "/sbin/ifconfig $IFNAME hw ether $MAC mtu $MTU up"; } 96const 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
100const char * tap_device::if_up () { return "/sbin/ifconfig $IFNAME ether $MAC mtu $MTU up"; } 101const 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"
105const char * tap_device::if_up () { return "/sbin/ifconfig $IFNAME mtu $MTU up"; } 106const char * tap_device::if_up () { return "/sbin/ifconfig $IFNAME mtu $MTU up"; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines