freebsd-dev/sys/netipsec
Gleb Smirnoff 8f134647ca Switch the entire IPv4 stack to keep the IP packet header
in network byte order. Any host byte order processing is
done in local variables and host byte order values are
never[1] written to a packet.

  After this change a packet processed by the stack isn't
modified at all[2] except for TTL.

  After this change a network stack hacker doesn't need to
scratch his head trying to figure out what is the byte order
at the given place in the stack.

[1] One exception still remains. The raw sockets convert host
byte order before pass a packet to an application. Probably
this would remain for ages for compatibility.

[2] The ip_input() still subtructs header len from ip->ip_len,
but this is planned to be fixed soon.

Reviewed by:	luigi, Maxim Dounin <mdounin mdounin.ru>
Tested by:	ray, Olivier Cochard-Labbe <olivier cochard.me>
2012-10-22 21:09:03 +00:00
..
ah_var.h MFP4: @176978-176982, 176984, 176990-176994, 177441 2010-04-29 11:52:42 +00:00
ah.h
esp_var.h MFP4: @176978-176982, 176984, 176990-176994, 177441 2010-04-29 11:52:42 +00:00
esp.h
ipcomp_var.h MFP4: @176978-176982, 176984, 176990-176994, 177441 2010-04-29 11:52:42 +00:00
ipcomp.h
ipip_var.h MFP4: @176978-176982, 176984, 176990-176994, 177441 2010-04-29 11:52:42 +00:00
ipsec6.h MFP4: @176978-176982, 176984, 176990-176994, 177441 2010-04-29 11:52:42 +00:00
ipsec_input.c Merge the projects/pf/head branch, that was worked on for last six months, 2012-09-08 06:41:54 +00:00
ipsec_mbuf.c Correct a typo. 2009-11-28 21:01:26 +00:00
ipsec_output.c Merge the projects/pf/head branch, that was worked on for last six months, 2012-09-08 06:41:54 +00:00
ipsec.c Switch the entire IPv4 stack to keep the IP packet header 2012-10-22 21:09:03 +00:00
ipsec.h Optimisation in IPSEC(4): 2011-03-31 15:23:32 +00:00
key_debug.c Build on Jeff Roberson's linker-set based dynamic per-CPU allocator 2009-07-14 22:48:30 +00:00
key_debug.h Remove unused VNET_SET() and related macros; only VNET_GET() is 2009-07-16 21:13:04 +00:00
key_var.h
key.c Mechanically remove the last stray remains of spl* calls from net*/*. 2012-10-18 13:57:24 +00:00
key.h Optimisation in IPSEC(4): 2011-03-31 15:23:32 +00:00
keydb.h Make the IPsec SADB embedded route cache a union to be able to hold both the 2010-10-23 20:35:40 +00:00
keysock.c After some off-list discussion, revert a number of changes to the 2010-11-22 19:32:54 +00:00
keysock.h Remove unused VNET_SET() and related macros; only VNET_GET() is 2009-07-16 21:13:04 +00:00
xform_ah.c Eliminate 'err' variable and just use existing 'error'. 2011-11-26 23:15:28 +00:00
xform_esp.c Remove unused 'plen' variable. 2011-11-26 23:57:03 +00:00
xform_ipcomp.c Make IPsec compile without INET adding appropriate #ifdef checks. 2011-04-27 19:28:42 +00:00
xform_ipip.c Add missing break 2012-09-18 08:00:43 +00:00
xform_tcp.c Merge the remainder of kern_vimage.c and vimage.h into vnet.c and 2009-08-01 19:26:27 +00:00
xform.h Optimisation in IPSEC(4): 2011-03-31 15:23:32 +00:00