summaryrefslogtreecommitdiff
path: root/af.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2023-02-20 13:30:16 -0800
committerGuy Harris <gharris@sonic.net>2023-02-20 13:30:16 -0800
commit285c177e593d0841767270e31f44e92476733b87 (patch)
tree020657ee3f54505cf5df2307da72f1cbf313bc39 /af.c
parent0dc32a024773968cb1ae00729758e61b7418564a (diff)
downloadtcpdump-285c177e593d0841767270e31f44e92476733b87.tar.gz
Rename the BSD_AFNUM_ values to BSD_AF_.
They correspond to OS socket API AF_ values, which are distinct from address family numbers in the IANA registry at https://www.iana.org/assignments/address-family-numbers/address-family-numbers.xhtml
Diffstat (limited to 'af.c')
-rw-r--r--af.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/af.c b/af.c
index 1153f102..ea146014 100644
--- a/af.c
+++ b/af.c
@@ -46,13 +46,13 @@ const struct tok af_values[] = {
};
const struct tok bsd_af_values[] = {
- { BSD_AFNUM_INET, "IPv4" },
- { BSD_AFNUM_NS, "NS" },
- { BSD_AFNUM_ISO, "ISO" },
- { BSD_AFNUM_APPLETALK, "Appletalk" },
- { BSD_AFNUM_IPX, "IPX" },
- { BSD_AFNUM_INET6_BSD, "IPv6" },
- { BSD_AFNUM_INET6_FREEBSD, "IPv6" },
- { BSD_AFNUM_INET6_DARWIN, "IPv6" },
+ { BSD_AF_INET, "IPv4" },
+ { BSD_AF_NS, "NS" },
+ { BSD_AF_ISO, "ISO" },
+ { BSD_AF_APPLETALK, "Appletalk" },
+ { BSD_AF_IPX, "IPX" },
+ { BSD_AF_INET6_BSD, "IPv6" },
+ { BSD_AF_INET6_FREEBSD, "IPv6" },
+ { BSD_AF_INET6_DARWIN, "IPv6" },
{ 0, NULL}
};