]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Added the missing ntohs() conversion when matching IP packet with
authorru <ru@FreeBSD.org>
Tue, 3 Oct 2000 12:18:11 +0000 (12:18 +0000)
committerru <ru@FreeBSD.org>
Tue, 3 Oct 2000 12:18:11 +0000 (12:18 +0000)
commit6922fb3fac2572ba001a739d9a4ae7d549e370d6
tree05289db947a6d7138710e819bccf0a22bd065de7
parent9d7b8375a5cac73e09a88d8852c67dcb3eb70546
Added the missing ntohs() conversion when matching IP packet with
the IP_FW_IF_IPID rule.  (We have recently decided to keep the
ip_id field in network byte order inside the kernel, see revision
1.140 of src/sys/netinet/ip_input.c).

I did not like to have the conversion happen in userland, and I
think that the similar conversions for fw_tcp(seq|ack|win) should
be moved out of userland (src/sbin/ipfw/ipfw.c) into the kernel.
sys/netinet/ip_fw.c