[ovs-dev] [PATCH 3/5] datapath: Backport XFRM constants.
Ben Pfaff
blp at nicira.com
Wed Oct 19 00:01:59 UTC 2011
From: Justin Pettit <jpettit at nicira.com>
This backports the constants for IPsec protocols to the kernels
when they weren't available.
Signed-off-by: Justin Pettit <jpettit at nicira.com>
Signed-off-by: Jesse Gross <jesse at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>
---
datapath/linux/Modules.mk | 1 +
datapath/linux/compat/include/net/xfrm.h | 14 ++++++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
create mode 100644 datapath/linux/compat/include/net/xfrm.h
diff --git a/datapath/linux/Modules.mk b/datapath/linux/Modules.mk
index 1e4fef6..3fa1d69 100644
--- a/datapath/linux/Modules.mk
+++ b/datapath/linux/Modules.mk
@@ -59,6 +59,7 @@ openvswitch_headers += \
linux/compat/include/net/netlink.h \
linux/compat/include/net/protocol.h \
linux/compat/include/net/route.h \
+ linux/compat/include/net/xfrm.h \
linux/compat/genetlink.inc
both_modules += brcompat
diff --git a/datapath/linux/compat/include/net/xfrm.h b/datapath/linux/compat/include/net/xfrm.h
new file mode 100644
index 0000000..b8fb2ce
--- /dev/null
+++ b/datapath/linux/compat/include/net/xfrm.h
@@ -0,0 +1,14 @@
+#ifndef __NET_XFRM_WRAPPER_H
+#define __NET_XFRM_WRAPPER_H 1
+
+#include_next <net/xfrm.h>
+
+#ifndef XFRM_PROTO_ESP
+#define XFRM_PROTO_ESP 50
+#endif
+
+#ifndef XFRM_PROTO_AH
+#define XFRM_PROTO_AH 51
+#endif
+
+#endif
--
1.7.4.4
More information about the dev
mailing list