diff options
author | Guy Harris <guy@alum.mit.edu> | 2006-01-28 23:18:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2006-01-28 23:18:19 +0000 |
commit | 54ac396346ac6fda394cf0dc3ff9bae1f7c92555 (patch) | |
tree | 94d330e1ed1a42321ef2c619a0967407353bd7fe /epan/afn.h | |
parent | 5186e3341612be342a0cc21b98dafa6dcd6dc220 (diff) | |
download | wireshark-54ac396346ac6fda394cf0dc3ff9bae1f7c92555.tar.gz |
Expand the set of #defines in afn.h (and give a URL for the *current*
list of address families) and the list of strings in afn.c, and use them
in packet-lldp.c instead of having it define its own.
svn path=/trunk/; revision=17114
Diffstat (limited to 'epan/afn.h')
-rw-r--r-- | epan/afn.h | 46 |
1 files changed, 30 insertions, 16 deletions
diff --git a/epan/afn.h b/epan/afn.h index f4dadcb467..7e892f4581 100644 --- a/epan/afn.h +++ b/epan/afn.h @@ -25,22 +25,36 @@ #ifndef __AFN_H__ #define __AFN_H__ -/* RFC1700 address family numbers */ -#define AFNUM_INET 1 -#define AFNUM_INET6 2 -#define AFNUM_NSAP 3 -#define AFNUM_HDLC 4 -#define AFNUM_BBN1822 5 -#define AFNUM_802 6 -#define AFNUM_E163 7 -#define AFNUM_E164 8 -#define AFNUM_F69 9 -#define AFNUM_X121 10 -#define AFNUM_IPX 11 -#define AFNUM_ATALK 12 -#define AFNUM_DECNET 13 -#define AFNUM_BANYAN 14 -#define AFNUM_E164NSAP 15 +/* + * Address family numbers, from + * + * http://www.iana.org/assignments/address-family-numbers + */ +#define AFNUM_RESERVED 0 /* Reserved */ +#define AFNUM_INET 1 /* IP (IP version 4) */ +#define AFNUM_INET6 2 /* IP6 (IP version 6) */ +#define AFNUM_NSAP 3 /* NSAP */ +#define AFNUM_HDLC 4 /* HDLC (8-bit multidrop) */ +#define AFNUM_BBN1822 5 /* BBN 1822 */ +#define AFNUM_802 6 /* 802 (includes all 802 media plus Ethernet "canonical format") */ +#define AFNUM_E163 7 /* E.163 */ +#define AFNUM_E164 8 /* E.164 (SMDS, Frame Relay, ATM) */ +#define AFNUM_F69 9 /* F.69 (Telex) */ +#define AFNUM_X121 10 /* X.121 (X.25, Frame Relay) */ +#define AFNUM_IPX 11 /* IPX */ +#define AFNUM_ATALK 12 /* Appletalk */ +#define AFNUM_DECNET 13 /* Decnet IV */ +#define AFNUM_BANYAN 14 /* Banyan Vines */ +#define AFNUM_E164NSAP 15 /* E.164 with NSAP format subaddress */ +#define AFNUM_DNS 16 /* DNS (Domain Name System) */ +#define AFNUM_DISTNAME 17 /* Distinguished Name */ +#define AFNUM_AS_NUMBER 18 /* AS Number */ +#define AFNUM_XTP_IP4 19 /* XTP over IP version 4 */ +#define AFNUM_XTP_IP6 20 /* XTP over IP version 6 */ +#define AFNUM_XTP 21 /* XTP native mode XTP */ +#define AFNUM_FC_WWPN 22 /* Fibre Channel World-Wide Port Name */ +#define AFNUM_FC_WWNN 23 /* Fibre Channel World-Wide Node Name */ +#define AFNUM_GWID 24 /* GWID */ /* draft-kompella-ppvpn-l2vpn */ #define AFNUM_L2VPN 25 #define AFNUM_L2VPN_OLD 196 |