1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/sys
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
..
amd64 The 'testing memory' patch gets printed too many times 2012-10-22 11:57:26 +00:00
arm This isn't functionally identical. In some cases a hint to disable 2012-10-22 13:06:09 +00:00
boot When loader tries to open GPT partition, but partition table is not GPT, 2012-10-22 11:01:43 +00:00
bsm
cam Remove the support for using non-mpsafe filesystem modules. 2012-10-22 17:50:54 +00:00
cddl Remove the support for using non-mpsafe filesystem modules. 2012-10-22 17:50:54 +00:00
compat Remove the support for using non-mpsafe filesystem modules. 2012-10-22 17:50:54 +00:00
conf Remove the support for using non-mpsafe filesystem modules. 2012-10-22 17:50:54 +00:00
contrib Fix defines in r241245. We actually don't define FreeBSD. 2012-10-14 15:03:06 +00:00
crypto Revert previous commit... 2012-10-10 08:36:38 +00:00
ddb
dev Remove the support for using non-mpsafe filesystem modules. 2012-10-22 17:50:54 +00:00
fs Remove the support for using non-mpsafe filesystem modules. 2012-10-22 17:50:54 +00:00
gdb
geom Remove the support for using non-mpsafe filesystem modules. 2012-10-22 17:50:54 +00:00
gnu/fs Add an unified macro to deny ability from the compiler to reorder 2012-10-09 14:32:30 +00:00
i386 Remove the support for using non-mpsafe filesystem modules. 2012-10-22 17:50:54 +00:00
ia64 Eliminate a stale comment. It describes another use case for the pmap in 2012-09-28 05:30:59 +00:00
isa
kern Remove the support for using non-mpsafe filesystem modules. 2012-10-22 17:50:54 +00:00
kgssapi
libkern s/ is is / is /g 2012-09-14 22:00:03 +00:00
mips Remove ZERO_COPY_SOCKETS from kernel configuration as the current 2012-10-22 15:04:23 +00:00
modules Finish migration of MAINTAINER entries 2012-10-22 02:12:11 +00:00
net Switch the entire IPv4 stack to keep the IP packet header 2012-10-22 21:09:03 +00:00
net80211 Make the "struct if_clone" opaque to users of the cloning API. Users 2012-10-16 13:37:54 +00:00
netatalk
netgraph Switch the entire IPv4 stack to keep the IP packet header 2012-10-22 21:09:03 +00:00
netinet Switch the entire IPv4 stack to keep the IP packet header 2012-10-22 21:09:03 +00:00
netinet6 Switch the entire IPv4 stack to keep the IP packet header 2012-10-22 21:09:03 +00:00
netipsec Switch the entire IPv4 stack to keep the IP packet header 2012-10-22 21:09:03 +00:00
netipx
netnatm
netncp
netpfil Switch the entire IPv4 stack to keep the IP packet header 2012-10-22 21:09:03 +00:00
netsmb
nfs Add two new options to the nfssvc(2) syscall that allow 2012-10-14 22:33:17 +00:00
nfsclient
nfsserver Remove the support for using non-mpsafe filesystem modules. 2012-10-22 17:50:54 +00:00
nlm Remove the support for using non-mpsafe filesystem modules. 2012-10-22 17:50:54 +00:00
ofed remove duplicate semicolons where possible. 2012-10-22 03:00:37 +00:00
opencrypto Revert previous commit... 2012-10-10 08:36:38 +00:00
pc98 The 'testing memory' patch gets printed too many times 2012-10-22 11:57:26 +00:00
pci
powerpc Fix the memory regions to include the 64MB DDR3 memory slot. 2012-10-22 03:45:37 +00:00
rpc Add a comment describing why r241097 was done. 2012-10-15 13:38:25 +00:00
security Remove the support for using non-mpsafe filesystem modules. 2012-10-22 17:50:54 +00:00
sparc64 - Give PIL_PREEMPT the lowest priority just above low/stray interrupts. 2012-10-20 12:07:48 +00:00
sys Switch the entire IPv4 stack to keep the IP packet header 2012-10-22 21:09:03 +00:00
teken
tools Revert previous commit... 2012-10-10 08:36:38 +00:00
ufs Remove the support for using non-mpsafe filesystem modules. 2012-10-22 17:50:54 +00:00
vm Remove the support for using non-mpsafe filesystem modules. 2012-10-22 17:50:54 +00:00
x86 This isn't functionally identical. In some cases a hint to disable 2012-10-22 13:06:09 +00:00
xdr
xen Make xen python scripts work with python3 2012-10-22 02:29:53 +00:00
Makefile