1aed1cc94c105736a5e6010e9c84cc32910b865d6mikhal@webrtc.org/*-
2b0c97975894a5eebebf9d93147cdd941a3accb63fbarchard@google.com * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
3aed1cc94c105736a5e6010e9c84cc32910b865d6mikhal@webrtc.org *	The Regents of the University of California.  All rights reserved.
4aed1cc94c105736a5e6010e9c84cc32910b865d6mikhal@webrtc.org *
5aed1cc94c105736a5e6010e9c84cc32910b865d6mikhal@webrtc.org * Redistribution and use in source and binary forms, with or without
6aed1cc94c105736a5e6010e9c84cc32910b865d6mikhal@webrtc.org * modification, are permitted provided that the following conditions
7cde587092fef0dbed2c35602f30b79e7b892e766fbarchard@google.com * are met:
8aed1cc94c105736a5e6010e9c84cc32910b865d6mikhal@webrtc.org * 1. Redistributions of source code must retain the above copyright
9aed1cc94c105736a5e6010e9c84cc32910b865d6mikhal@webrtc.org *    notice, this list of conditions and the following disclaimer.
10aed1cc94c105736a5e6010e9c84cc32910b865d6mikhal@webrtc.org * 2. Redistributions in binary form must reproduce the above copyright
11142f6c4ed5eaeec0176f255e64bac8d8c70b42e1fbarchard@google.com *    notice, this list of conditions and the following disclaimer in the
12aed1cc94c105736a5e6010e9c84cc32910b865d6mikhal@webrtc.org *    documentation and/or other materials provided with the distribution.
13c82af4a59ce299da67084916317266a33c2868e1frkoenig@google.com * 3. All advertising materials mentioning features or use of this software
14c82af4a59ce299da67084916317266a33c2868e1frkoenig@google.com *    must display the following acknowledgement:
15fe5ff7ed5451496281697bda9cb85084c532926cfbarchard@google.com *      This product includes software developed by the University of
16fe5ff7ed5451496281697bda9cb85084c532926cfbarchard@google.com *      California, Berkeley and its contributors.
17aed1cc94c105736a5e6010e9c84cc32910b865d6mikhal@webrtc.org * 4. Neither the name of the University nor the names of its contributors
18fe5ff7ed5451496281697bda9cb85084c532926cfbarchard@google.com *    may be used to endorse or promote products derived from this software
19aed1cc94c105736a5e6010e9c84cc32910b865d6mikhal@webrtc.org *    without specific prior written permission.
202d11d43a6e21865b904705acce6535ae4c2d3caffbarchard@google.com *
2183a63e65a6bcbf59f7dc617d0c7275d50625884cfbarchard@google.com * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
222d11d43a6e21865b904705acce6535ae4c2d3caffbarchard@google.com * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23714050a29dea9ab6aebb54acb8f79edf9b9f337dfbarchard@google.com * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24714050a29dea9ab6aebb54acb8f79edf9b9f337dfbarchard@google.com * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25714050a29dea9ab6aebb54acb8f79edf9b9f337dfbarchard@google.com * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26f2aa91a1ac08703d5a22af7fa48c59eba8eb397afbarchard@google.com * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27714050a29dea9ab6aebb54acb8f79edf9b9f337dfbarchard@google.com * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28714050a29dea9ab6aebb54acb8f79edf9b9f337dfbarchard@google.com * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29714050a29dea9ab6aebb54acb8f79edf9b9f337dfbarchard@google.com * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
304e0d7cc2c60e8aa85954c48927c6be08ee2b9db4fbarchard@google.com * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31f2aa91a1ac08703d5a22af7fa48c59eba8eb397afbarchard@google.com * SUCH DAMAGE.
32050b39a5cbf6c0f529531aafba36f2c846a139b1fbarchard@google.com *
334e0d7cc2c60e8aa85954c48927c6be08ee2b9db4fbarchard@google.com * @(#) $Header: /tcpdump/master/libpcap/pcap/vlan.h,v 1.1 2008-08-06 07:45:00 guy Exp $
344e0d7cc2c60e8aa85954c48927c6be08ee2b9db4fbarchard@google.com */
35f2aa91a1ac08703d5a22af7fa48c59eba8eb397afbarchard@google.com
36b61497636a648c771ac55d184a80b17aca7414f5fbarchard@google.com#ifndef lib_pcap_vlan_h
37b61497636a648c771ac55d184a80b17aca7414f5fbarchard@google.com#define lib_pcap_vlan_h
38b61497636a648c771ac55d184a80b17aca7414f5fbarchard@google.com
39f2aa91a1ac08703d5a22af7fa48c59eba8eb397afbarchard@google.comstruct vlan_tag {
40050b39a5cbf6c0f529531aafba36f2c846a139b1fbarchard@google.com	u_int16_t	vlan_tpid;		/* ETH_P_8021Q */
41050b39a5cbf6c0f529531aafba36f2c846a139b1fbarchard@google.com	u_int16_t	vlan_tci;		/* VLAN TCI */
42050b39a5cbf6c0f529531aafba36f2c846a139b1fbarchard@google.com};
43f2aa91a1ac08703d5a22af7fa48c59eba8eb397afbarchard@google.com
44714050a29dea9ab6aebb54acb8f79edf9b9f337dfbarchard@google.com#define VLAN_TAG_LEN	4
45b61497636a648c771ac55d184a80b17aca7414f5fbarchard@google.com
462430e04e0a262f8919f61cf1e64304c69ea94127fbarchard@google.com#endif
47f2aa91a1ac08703d5a22af7fa48c59eba8eb397afbarchard@google.com