[PATCH 1/1] compat: define more ETH_P_ constants

Jiri Slaby <[email protected]>
Newsgroups org.kernel.vger.trinity
Message-ID <[email protected]>
Otherwise for 3.0, we see:
net/ether.c:23: error: 'ETH_P_TDLS' undeclared here (not in a function)
net/ether.c:24: error: 'ETH_P_AF_IUCV' undeclared here (not in a function)

Signed-off-by: Jiri Slaby <[email protected]>
---
 include/compat.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/compat.h b/include/compat.h
index 0985b8e109fb..2c81d4ba9213 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -832,6 +832,9 @@ struct kvm_get_htab_fd {
 #ifndef ETH_P_PRP
 #define ETH_P_PRP	0x88FB
 #endif
+#ifndef ETH_P_TDLS
+#define ETH_P_TDLS	0x890D
+#endif
 #ifndef ETH_P_QINQ1
 #define ETH_P_QINQ1	0x9100
 #endif
@@ -841,3 +844,6 @@ struct kvm_get_htab_fd {
 #ifndef ETH_P_QINQ3
 #define ETH_P_QINQ3	0x9300
 #endif
+#ifndef ETH_P_AF_IUCV
+#define ETH_P_AF_IUCV	0xFBFB
+#endif
-- 
1.8.5.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.