1 /* @(#) $Header: /tcpdump/master/tcpdump/af.h,v 1.3.2.1 2007/02/26 13:33:17 hannes Exp $ (LBL) */ 2 3 /* 4 * Copyright (c) 1998-2006 The TCPDUMP project 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that: (1) source code 8 * distributions retain the above copyright notice and this paragraph 9 * in its entirety, and (2) distributions including binary code include 10 * the above copyright notice and this paragraph in its entirety in 11 * the documentation or other materials provided with the distribution. 12 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND 13 * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT 14 * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 15 * FOR A PARTICULAR PURPOSE. 16 * 17 * Original code by Hannes Gredler (hannes@juniper.net) 18 */ 19 20 extern struct tok af_values[]; 21 extern struct tok bsd_af_values[]; 22 23 /* RFC1700 address family numbers */ 24 #define AFNUM_INET 1 25 #define AFNUM_INET6 2 26 #define AFNUM_NSAP 3 27 #define AFNUM_HDLC 4 28 #define AFNUM_BBN1822 5 29 #define AFNUM_802 6 30 #define AFNUM_E163 7 31 #define AFNUM_E164 8 32 #define AFNUM_F69 9 33 #define AFNUM_X121 10 34 #define AFNUM_IPX 11 35 #define AFNUM_ATALK 12 36 #define AFNUM_DECNET 13 37 #define AFNUM_BANYAN 14 38 #define AFNUM_E164NSAP 15 39 #define AFNUM_VPLS 25 40 /* draft-kompella-ppvpn-l2vpn */ 41 #define AFNUM_L2VPN 196 /* still to be approved by IANA */ 42 43 /* 44 * BSD AF_ values. 45 * 46 * Unfortunately, the BSDs don't all use the same value for AF_INET6, 47 * so, because we want to be able to read captures from all of the BSDs, 48 * we check for all of them. 49 */ 50 #define BSD_AFNUM_INET 2 51 #define BSD_AFNUM_NS 6 /* XEROX NS protocols */ 52 #define BSD_AFNUM_ISO 7 53 #define BSD_AFNUM_APPLETALK 16 54 #define BSD_AFNUM_IPX 23 55 #define BSD_AFNUM_INET6_BSD 24 /* OpenBSD (and probably NetBSD), BSD/OS */ 56 #define BSD_AFNUM_INET6_FREEBSD 28 57 #define BSD_AFNUM_INET6_DARWIN 30 58