aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
Diffstat (limited to 'include/net')
-rw-r--r--include/net/xfrm.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 6ae4bc5ce8a7..65ea31348631 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -957,6 +957,15 @@ struct sec_path {
957 struct xfrm_state *xvec[XFRM_MAX_DEPTH]; 957 struct xfrm_state *xvec[XFRM_MAX_DEPTH];
958}; 958};
959 959
960static inline int secpath_exists(struct sk_buff *skb)
961{
962#ifdef CONFIG_XFRM
963 return skb->sp != NULL;
964#else
965 return 0;
966#endif
967}
968
960static inline struct sec_path * 969static inline struct sec_path *
961secpath_get(struct sec_path *sp) 970secpath_get(struct sec_path *sp)
962{ 971{