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