1190207Srpaulo/* @(#) $Header: /tcpdump/master/tcpdump/af.h,v 1.3 2006-03-23 14:58:44 hannes Exp $ (LBL) */
2172683Smlaier
3172683Smlaier/*
4172683Smlaier * Copyright (c) 1998-2006 The TCPDUMP project
5172683Smlaier *
6172683Smlaier * Redistribution and use in source and binary forms, with or without
7172683Smlaier * modification, are permitted provided that: (1) source code
8172683Smlaier * distributions retain the above copyright notice and this paragraph
9172683Smlaier * in its entirety, and (2) distributions including binary code include
10172683Smlaier * the above copyright notice and this paragraph in its entirety in
11172683Smlaier * the documentation or other materials provided with the distribution.
12172683Smlaier * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
13172683Smlaier * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
14172683Smlaier * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15172683Smlaier * FOR A PARTICULAR PURPOSE.
16172683Smlaier *
17172683Smlaier * Original code by Hannes Gredler (hannes@juniper.net)
18172683Smlaier */
19172683Smlaier
20214478Srpauloextern const struct tok af_values[];
21214478Srpauloextern const struct tok bsd_af_values[];
22172683Smlaier
23172683Smlaier/* RFC1700 address family numbers */
24172683Smlaier#define AFNUM_INET	1
25172683Smlaier#define AFNUM_INET6	2
26172683Smlaier#define AFNUM_NSAP	3
27172683Smlaier#define AFNUM_HDLC	4
28172683Smlaier#define AFNUM_BBN1822	5
29172683Smlaier#define AFNUM_802	6
30172683Smlaier#define AFNUM_E163	7
31172683Smlaier#define AFNUM_E164	8
32172683Smlaier#define AFNUM_F69	9
33172683Smlaier#define AFNUM_X121	10
34172683Smlaier#define AFNUM_IPX	11
35172683Smlaier#define AFNUM_ATALK	12
36172683Smlaier#define AFNUM_DECNET	13
37172683Smlaier#define AFNUM_BANYAN	14
38172683Smlaier#define AFNUM_E164NSAP	15
39172683Smlaier#define AFNUM_VPLS      25
40172683Smlaier/* draft-kompella-ppvpn-l2vpn */
41172683Smlaier#define AFNUM_L2VPN     196 /* still to be approved by IANA */
42172683Smlaier
43172683Smlaier/*
44172683Smlaier * BSD AF_ values.
45172683Smlaier *
46172683Smlaier * Unfortunately, the BSDs don't all use the same value for AF_INET6,
47172683Smlaier * so, because we want to be able to read captures from all of the BSDs,
48172683Smlaier * we check for all of them.
49172683Smlaier */
50172683Smlaier#define BSD_AFNUM_INET		2
51172683Smlaier#define BSD_AFNUM_NS		6		/* XEROX NS protocols */
52172683Smlaier#define BSD_AFNUM_ISO		7
53172683Smlaier#define BSD_AFNUM_APPLETALK	16
54172683Smlaier#define BSD_AFNUM_IPX		23
55172683Smlaier#define BSD_AFNUM_INET6_BSD	24	/* OpenBSD (and probably NetBSD), BSD/OS */
56172683Smlaier#define BSD_AFNUM_INET6_FREEBSD	28
57172683Smlaier#define BSD_AFNUM_INET6_DARWIN	30
58