1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * VLAN An implementation of 802.1Q VLAN tagging. 4 * 5 * Authors: Ben Greear <greearb@candelatech.com> 6 */ 7 #ifndef _LINUX_IF_VLAN_H_ 8 #define _LINUX_IF_VLAN_H_ 9 10 /** 11 * struct vlan_ethhdr - vlan ethernet header (ethhdr + vlan_hdr) 12 * @h_dest: destination ethernet address 13 * @h_source: source ethernet address 14 * @h_vlan_proto: ethernet protocol 15 * @h_vlan_TCI: priority and VLAN ID 16 * @h_vlan_encapsulated_proto: packet type ID or len 17 */ 18 struct vlan_ethhdr { 19 unsigned char h_dest[ETH_ALEN]; 20 unsigned char h_source[ETH_ALEN]; 21 __be16 h_vlan_proto; 22 __be16 h_vlan_TCI; 23 __be16 h_vlan_encapsulated_proto; 24 }; 25 26 #endif /* !(_LINUX_IF_VLAN_H_) */ 27