From: Justin Pettit <[email protected]> This backports the constants for IPsec protocols to the kernels when they weren't available.
Signed-off-by: Justin Pettit <[email protected]> Signed-off-by: Jesse Gross <[email protected]> Acked-by: Ben Pfaff <[email protected]> --- 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 _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
