diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2020-08-04 18:57:13 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2020-08-08 15:07:27 +0200 |
commit | cf78f6e070b5bb05153393520e569b8ab5ec8aa9 (patch) | |
tree | 9b0610117e0c98b2e0efa0124840fe5e6aef90cd | |
parent | 2cd67f9cc0084dc772b205a40b4a3266ddd6e5a7 (diff) | |
download | backports-cf78f6e070b5bb05153393520e569b8ab5ec8aa9.tar.gz |
backports: if_ether.h: Add ETH_TLEN
ETH_TLEN was added in upstream commit 4bbb3e0e8239 ("net: Fix vlan untag
for bridge and vlan_dev with reorder_hdr off") in kernel 4.16.
It is used by mac80211 now.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r-- | backport/backport-include/linux/if_ether.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backport/backport-include/linux/if_ether.h b/backport/backport-include/linux/if_ether.h index 344480a2..ac071993 100644 --- a/backport/backport-include/linux/if_ether.h +++ b/backport/backport-include/linux/if_ether.h @@ -2,6 +2,10 @@ #define __BACKPORT_IF_ETHER_H #include_next <linux/if_ether.h> +#ifndef ETH_TLEN +#define ETH_TLEN 2 /* Octets in ethernet type field */ +#endif + /* See commit b62faf3c in next-20140311 */ #ifndef ETH_P_80221 #define ETH_P_80221 0x8917 /* IEEE 802.21 Media Independent Handover Protocol */ |