aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/net/xfrm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 762795624b10..5b364b0a6a28 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -9,6 +9,7 @@
9#include <linux/skbuff.h> 9#include <linux/skbuff.h>
10#include <linux/socket.h> 10#include <linux/socket.h>
11#include <linux/pfkeyv2.h> 11#include <linux/pfkeyv2.h>
12#include <linux/ipsec.h>
12#include <linux/in6.h> 13#include <linux/in6.h>
13#include <linux/mutex.h> 14#include <linux/mutex.h>
14 15
@@ -835,6 +836,11 @@ static inline int xfrm_state_kern(struct xfrm_state *x)
835 return atomic_read(&x->tunnel_users); 836 return atomic_read(&x->tunnel_users);
836} 837}
837 838
839static inline int xfrm_id_proto_match(u8 proto, u8 userproto)
840{
841 return (userproto == IPSEC_PROTO_ANY || proto == userproto);
842}
843
838/* 844/*
839 * xfrm algorithm information 845 * xfrm algorithm information
840 */ 846 */