summaryrefslogtreecommitdiff
path: root/epan/aftypes.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-06-19 14:22:54 -0700
committerGuy Harris <guy@alum.mit.edu>2014-06-19 21:23:33 +0000
commitb936dbd7eec66459c650e0c6354cb402a3867221 (patch)
tree7a4cbe2f0f4d663b725168591e0e4512d35ce20e /epan/aftypes.h
parent9e81d5820a8eb8d7d05d5c5845e6a07d98659ce1 (diff)
downloadwireshark-b936dbd7eec66459c650e0c6354cb402a3867221.tar.gz
Protocols sending the OS's AF_INET6 value are OS-specific or broken.
Check for all the different AF_INET6 values that are on various OSes. If Totem is, and will forever be, used *ONLY* on one particular OS, feel free to remove the uses of other _AF_INET6 values (but do *not* change back to using the OS's AF_INET6; this should dissect the protocol correctly on *all* OSes). Add a common AF_INET definition to epan/aftypes.h while we're at it, and use that; as most OSes picked up 4.2BSD's AF_INET value, most if not all of them use 2, but IPv6 came out after 4.2BSD, and various OSes all picked their own values for AF_INET6. Change-Id: Iae15dfdd15203ed3ecd078a6499821dc09139a98 Reviewed-on: https://code.wireshark.org/review/2458 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/aftypes.h')
-rw-r--r--epan/aftypes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/aftypes.h b/epan/aftypes.h
index 534131af53..d9c540b127 100644
--- a/epan/aftypes.h
+++ b/epan/aftypes.h
@@ -32,6 +32,9 @@
extern "C" {
#endif /* __cplusplus */
+/* Pretty much everybody uses the same value for AF_INET. */
+#define COMMON_AF_INET 2
+
/* BSD AF_ values. */
#define BSD_AF_INET 2
#define BSD_AF_ISO 7