Michael
1c0cf72c02
Rename endian.h
6 years ago
Michael Thorpe
33bfaf7ecd
Enable -Wextra
...
test criteria:
- test build on macOS
- test build in debian docker container
- test build in fedora docker container
6 years ago
cathugger
73e6141023
ip: endianess swaps aren't needed, a bit of renaming and tweaking
...
Also `make format`.
6 years ago
cathugger
ca01daa89a
ip: support DCCP and UDP-Lite, TCP chksum twx; tun: more filtering
6 years ago
cathugger
d0c35803a5
tun+ip: filter packets at destination, drop instead of truncating
6 years ago
cathugger
360ccc33de
ip: more one's complement math improvements
6 years ago
cathugger
4d5f5fecfa
ip: make things fragmentation-aware, cleanup UDP handling; also format
...
one's complement math is pretty fun
6 years ago
cathugger
18c20396b6
add {h,n}uint16_t types, optimize TCP/UDP checksuming
...
use static functions + switch instead of lambda functions + map.
6 years ago
cathugger
71c9965471
ip: code cleanups and compatibility improvements
...
do not assume that packets come with address zero-ed, older clients don't do that.
they don't modify checksum either, therefore we should be able to get correct checksum if we use deltachksum with old and new addresses.
6 years ago
cathugger
257ce99f43
ip: fix UDP checksum offset
6 years ago
cathugger
4971fae171
uint32_t byte ordering type safety
6 years ago
cathugger
05e6c31238
ip: some fixes and tweaks
6 years ago
cathugger
5169df546c
ip: UDP checksum recalculation support
6 years ago
cathugger
7fd501e528
ip: use deltachksum for IPv4 headers aswell
6 years ago
cathugger
36ea776d07
ip: try to fix deltachksum
6 years ago
cathugger
ed39cb98e1
ip: (try to) fix deltachksum
6 years ago
cathugger
c515e4a248
ip: avoid pointless length checks
6 years ago
cathugger
a92e7c2104
ip: fix stupid MIN thing
6 years ago
cathugger
b5392c5679
make format
6 years ago
cathugger
2f4b0fbda6
ip: use delta TCP checksum calculation, don't recalculate ICMP checksum
6 years ago
cathugger
4cba59f3c4
tun+ip: clarify what happens where
6 years ago
despair86
4afa358c49
fix win32 build
6 years ago
Jeff Becker
095170d11e
fix windows build
6 years ago
Jeff Becker
efc6e23c6f
fix tcp checksum calc
6 years ago
Jeff Becker
0c1e22650e
try calcuating tcp checksums right
...
try tracking convo tags correctly
6 years ago
Jeff
689668d892
fix osx build
6 years ago
Jeff Becker
9f9f9d9bb1
correct tcp checksum recalc (probably)
6 years ago
Jeff Becker
4f691b8974
make tun write correct number of bytes
...
try doing correct ip checksum and for upper layers that need it too
supported right now are icmp, tcp, and udp. more will come later
probably.
6 years ago
Jeff Becker
354df88367
more ip endpoint fixes
...
spam dht with lookups less
6 years ago
Jeff Becker
d3eef5c8b7
more netns code
6 years ago
despair86
e71c00f736
header fix
6 years ago
Ricardo Villegas
3cca107041
more header fixes
...
-despair86
6 years ago
Jeff
367258551b
fix osx build
6 years ago
Jeff Becker
b7039f6e5c
more tun stuff
6 years ago
Jeff Becker
4aebbda640
more tun stuff
6 years ago
Jeff Becker
1a1f93c171
* more tun stuff
...
* use std::unique_ptr where bare pointers aren't absolutely required
6 years ago