diff options
| author | Vladimir Oltean <[email protected]> | 2021-09-29 18:04:37 +0300 |
|---|---|---|
| committer | Ramon Fried <[email protected]> | 2021-11-23 09:57:55 +0200 |
| commit | 8a5c0570333a2c37ff8d8d53018df4b65ce77a47 (patch) | |
| tree | c69ea0660475ec0e6453218ff0b0d817703d3cd6 /include/linux/if_vlan.h | |
| parent | 9dcb810b88cbf1d0f1961e0607644b3d3db9b135 (diff) | |
include: import if_vlan.h from Linux
This is needed for the VLAN header structure.
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Ramon Fried <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Diffstat (limited to 'include/linux/if_vlan.h')
| -rw-r--r-- | include/linux/if_vlan.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h new file mode 100644 index 00000000000..cbc82f4cc21 --- /dev/null +++ b/include/linux/if_vlan.h @@ -0,0 +1,26 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * VLAN An implementation of 802.1Q VLAN tagging. + * + * Authors: Ben Greear <[email protected]> + */ +#ifndef _LINUX_IF_VLAN_H_ +#define _LINUX_IF_VLAN_H_ + +/** + * struct vlan_ethhdr - vlan ethernet header (ethhdr + vlan_hdr) + * @h_dest: destination ethernet address + * @h_source: source ethernet address + * @h_vlan_proto: ethernet protocol + * @h_vlan_TCI: priority and VLAN ID + * @h_vlan_encapsulated_proto: packet type ID or len + */ +struct vlan_ethhdr { + unsigned char h_dest[ETH_ALEN]; + unsigned char h_source[ETH_ALEN]; + __be16 h_vlan_proto; + __be16 h_vlan_TCI; + __be16 h_vlan_encapsulated_proto; +}; + +#endif /* !(_LINUX_IF_VLAN_H_) */ |
