diff options
author | 2014-06-05 03:36:46 +0000 | |
---|---|---|
committer | 2014-06-05 03:36:46 +0000 | |
commit | 1f2012ee091bc276360a825b0a1d69c3735d45ac (patch) | |
tree | 4950e6383f65f8acc29486a2b39ae637acaaaa26 /lib | |
parent | Sanitize use of client_opaque_prf_input: set it to NULL immediately after (diff) | |
download | wireguard-openbsd-1f2012ee091bc276360a825b0a1d69c3735d45ac.tar.xz wireguard-openbsd-1f2012ee091bc276360a825b0a1d69c3735d45ac.zip |
Improve the divert(4) example program:
- Remove unnecessary includes
- bzero -> memset
- Better sanity checks and return value checks
- Use the tcphdr struct instead of tcpiphdr so that the program will
work even if there are IP options
- Use more conventional variable names and buffer sizes
Also add myself to the copyright.
ok deraadt@ sthen@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions