--- gvpe/src/device-tincd.C 2005/03/25 15:38:07 1.17 +++ gvpe/src/device-tincd.C 2007/12/02 00:45:42 1.20 @@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License along with gvpe; if not, write to the Free Software - Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include @@ -67,7 +67,8 @@ // BIGGEST hack of 'em all // will be casted to data_packet, due to structural similarity -struct vpn_packet_t : net_packet { +struct vpn_packet_t : net_packet +{ u8 data[MAXSIZE]; }; @@ -80,6 +81,8 @@ *res = conf.ifname; else if (!strcmp (key, "Device")) *res = 0; + else if (!strcmp (key, "DeviceType")) + *res = "tap"; else { slog (L_ERR, _("tincd layer asking for unknown config '%s'"), key); @@ -95,6 +98,10 @@ # include "tincd/linux/device.c" const char * tap_device::if_up () { return "/sbin/ifconfig $IFNAME hw ether $MAC mtu $MTU"; } +#elif IF_bsd +# include "tincd/bsd/device.c" +const char * tap_device::if_up () { return "/sbin/ifconfig $IFNAME ether $MAC mtu $MTU"; } + #elif IF_freebsd # include "tincd/freebsd/device.c" const char * tap_device::if_up () { return "/sbin/ifconfig $IFNAME ether $MAC mtu $MTU"; }