af.h 1.8 KB

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