diff options
Diffstat (limited to 'include/net/xfrm.h')
| -rw-r--r-- | include/net/xfrm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 6ae4bc5ce8a..65ea3134863 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 | ||
| 960 | static 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 | |||
| 960 | static inline struct sec_path * | 969 | static inline struct sec_path * |
| 961 | secpath_get(struct sec_path *sp) | 970 | secpath_get(struct sec_path *sp) |
| 962 | { | 971 | { |
