Add a variable offset to vpn_packet_t, drop sptps_packet_t.
authorGuus Sliepen <guus@tinc-vpn.org>
Wed, 24 Dec 2014 21:23:24 +0000 (22:23 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Wed, 24 Dec 2014 23:36:27 +0000 (00:36 +0100)
commit6b92ac505d2cd5c7e390d49bf1f0b399ef9f8327
tree592b905ad8585c336df7990b431d2853e6e425b1
parent107d9c7da5b206425a8e1643a6849ea990f725f8
Add a variable offset to vpn_packet_t, drop sptps_packet_t.

The offset value indicates where the actual payload starts, so we can
process both legacy and SPTPS UDP packets without having to do casting
tricks and/or moving memory around.
14 files changed:
src/bsd/device.c
src/cygwin/device.c
src/linux/device.c
src/mingw/device.c
src/multicast_device.c
src/net.h
src/net_packet.c
src/protocol_auth.c
src/protocol_misc.c
src/raw_socket_device.c
src/route.c
src/solaris/device.c
src/uml_device.c
src/vde_device.c