xref: /aosp_15_r20/external/tcpdump/atm.h (revision 05b00f6010a2396e3db2409989fc67270046269f)
1*05b00f60SXin Li /*
2*05b00f60SXin Li  * Copyright (c) 2002 Guy Harris.
3*05b00f60SXin Li  *                All rights reserved.
4*05b00f60SXin Li  *
5*05b00f60SXin Li  * Redistribution and use in source and binary forms, with or without
6*05b00f60SXin Li  * modification, are permitted provided that: (1) source code
7*05b00f60SXin Li  * distributions retain the above copyright notice and this paragraph
8*05b00f60SXin Li  * in its entirety, and (2) distributions including binary code include
9*05b00f60SXin Li  * the above copyright notice and this paragraph in its entirety in
10*05b00f60SXin Li  * the documentation or other materials provided with the distribution.
11*05b00f60SXin Li  * The name of Guy Harris may not be used to endorse or promote products
12*05b00f60SXin Li  * derived from this software without specific prior written permission.
13*05b00f60SXin Li  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
14*05b00f60SXin Li  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
15*05b00f60SXin Li  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16*05b00f60SXin Li  */
17*05b00f60SXin Li 
18*05b00f60SXin Li /*
19*05b00f60SXin Li  * Traffic types for ATM.
20*05b00f60SXin Li  */
21*05b00f60SXin Li #define ATM_UNKNOWN	0	/* Unknown */
22*05b00f60SXin Li #define ATM_LANE	1	/* LANE */
23*05b00f60SXin Li #define ATM_LLC		2	/* LLC encapsulation */
24*05b00f60SXin Li 
25*05b00f60SXin Li /*
26*05b00f60SXin Li  * some OAM cell captures (most notably Juniper's)
27*05b00f60SXin Li  * do not deliver a heading HEC byte
28*05b00f60SXin Li  */
29*05b00f60SXin Li #define ATM_OAM_NOHEC   0
30*05b00f60SXin Li #define ATM_OAM_HEC     1
31*05b00f60SXin Li #define ATM_HDR_LEN_NOHEC 4
32