From f3a0231bff618f3752bf9f6827708edc3063f57d Mon Sep 17 00:00:00 2001 From: glebius Date: Sat, 6 Oct 2012 10:02:11 +0000 Subject: A step in resolving mess with byte ordering for AF_INET. After this change: - All packets in NETISR_IP queue are in net byte order. - ip_input() is entered in net byte order and converts packet to host byte order right _after_ processing pfil(9) hooks. - ip_output() is entered in host byte order and converts packet to net byte order right _before_ processing pfil(9) hooks. - ip_fragment() accepts and emits packet in net byte order. - ip_forward(), ip_mloopback() use host byte order (untouched actually). - ip_fastforward() no longer modifies packet at all (except ip_ttl). - Swapping of byte order there and back removed from the following modules: pf(4), ipfw(4), enc(4), if_bridge(4). - Swapping of byte order added to ipfilter(4), based on __FreeBSD_version - __FreeBSD_version bumped. - pfil(9) manual page updated. Reviewed by: ray, luigi, eri, melifaro Tested by: glebius (LE), ray (BE) --- share/man/man9/pfil.9 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'share') diff --git a/share/man/man9/pfil.9 b/share/man/man9/pfil.9 index 5b39dc2..b6d3a03 100644 --- a/share/man/man9/pfil.9 +++ b/share/man/man9/pfil.9 @@ -28,7 +28,7 @@ .\" .\" $FreeBSD$ .\" -.Dd September 16, 2012 +.Dd October 6, 2012 .Dt PFIL 9 .Os .Sh NAME @@ -127,10 +127,9 @@ Currently, filtering points are implemented for the following link types: .Pp .Bl -tag -width "AF_INET6" -offset XXX -compact .It AF_INET +IPv4 packets. .It AF_INET6 -IPv4 and IPv6 packets. Note that packet header is already -.Cm converted to host format. -Host format has to be preserved in case of header modifications. +IPv6 packets. .It AF_LINK Link-layer packets. .El -- cgit v1.1