10f74e101Schristos /* 20f74e101Schristos * Copyright (c) 1998-2006 The TCPDUMP project 30f74e101Schristos * 40f74e101Schristos * Redistribution and use in source and binary forms, with or without 50f74e101Schristos * modification, are permitted provided that: (1) source code 60f74e101Schristos * distributions retain the above copyright notice and this paragraph 70f74e101Schristos * in its entirety, and (2) distributions including binary code include 80f74e101Schristos * the above copyright notice and this paragraph in its entirety in 90f74e101Schristos * the documentation or other materials provided with the distribution. 100f74e101Schristos * THIS SOFTWARE IS PROVIDED ``AS IS'' AND 110f74e101Schristos * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT 120f74e101Schristos * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 130f74e101Schristos * FOR A PARTICULAR PURPOSE. 140f74e101Schristos * 159460fd8aSchristos * Original code by Hannes Gredler (hannes@gredler.at) 160f74e101Schristos */ 170f74e101Schristos 180f74e101Schristos extern const struct tok af_values[]; 190f74e101Schristos extern const struct tok bsd_af_values[]; 200f74e101Schristos 210f74e101Schristos /* RFC1700 address family numbers */ 220f74e101Schristos #define AFNUM_INET 1 230f74e101Schristos #define AFNUM_INET6 2 240f74e101Schristos #define AFNUM_NSAP 3 250f74e101Schristos #define AFNUM_HDLC 4 260f74e101Schristos #define AFNUM_BBN1822 5 270f74e101Schristos #define AFNUM_802 6 280f74e101Schristos #define AFNUM_E163 7 290f74e101Schristos #define AFNUM_E164 8 300f74e101Schristos #define AFNUM_F69 9 310f74e101Schristos #define AFNUM_X121 10 320f74e101Schristos #define AFNUM_IPX 11 330f74e101Schristos #define AFNUM_ATALK 12 340f74e101Schristos #define AFNUM_DECNET 13 350f74e101Schristos #define AFNUM_BANYAN 14 360f74e101Schristos #define AFNUM_E164NSAP 15 370f74e101Schristos #define AFNUM_VPLS 25 380f74e101Schristos /* draft-kompella-ppvpn-l2vpn */ 390f74e101Schristos #define AFNUM_L2VPN 196 /* still to be approved by IANA */ 400f74e101Schristos 410f74e101Schristos /* 420f74e101Schristos * BSD AF_ values. 430f74e101Schristos * 440f74e101Schristos * Unfortunately, the BSDs don't all use the same value for AF_INET6, 450f74e101Schristos * so, because we want to be able to read captures from all of the BSDs, 460f74e101Schristos * we check for all of them. 470f74e101Schristos */ 480f74e101Schristos #define BSD_AFNUM_INET 2 490f74e101Schristos #define BSD_AFNUM_NS 6 /* XEROX NS protocols */ 500f74e101Schristos #define BSD_AFNUM_ISO 7 510f74e101Schristos #define BSD_AFNUM_APPLETALK 16 520f74e101Schristos #define BSD_AFNUM_IPX 23 53671dd9faSspz #define BSD_AFNUM_INET6_BSD 24 /* NetBSD, OpenBSD, BSD/OS, Npcap */ 54671dd9faSspz #define BSD_AFNUM_INET6_FREEBSD 28 /* FreeBSD */ 55*d881c474Schristos #define BSD_AFNUM_INET6_DARWIN 30 /* macOS, iOS, other Darwin-based OSes */ 56