]> The Tcpdump Group git mirrors - tcpdump/commit
NFLOG: Use correct AF code points on all OSes.
authorDenis Ovsienko <[email protected]>
Sat, 11 Feb 2023 19:01:01 +0000 (19:01 +0000)
committerDenis Ovsienko <[email protected]>
Sat, 11 Feb 2023 19:07:11 +0000 (19:07 +0000)
commit7ae7fa15f805bae9b15d7dc9c011fc02a4d3ddbb
tree84e63408003e4953781b1558cbaa3aaebf939a42
parent472926044516097afda36e4e6f07423587a05b92
NFLOG: Use correct AF code points on all OSes.

On Haiku R1/beta4 "make check" failed the "nglog-e" test case because
the printer did not recognize address family 2 as IPv4:

-    1  18:31:59.615994 version 0, resource ID 20, family IPv4 (2),
+    1  18:31:59.615994 version 0, resource ID 20, family Unknown (2),

Fix print-nflog.c to use the wire encoding AF code points rather than
the OS libc AF constants.  This fixes "make check" on Haiku and likely
fixes IPv6 NFLOG decoding on a few non-Linux OSes.
CHANGES
print-nflog.c