aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/xfrm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r--include/net/xfrm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 503d0d294a4c..fe881b6e2bd0 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -1317,4 +1317,9 @@ static inline void xfrm_states_delete(struct xfrm_state **states, int n)
1317} 1317}
1318#endif 1318#endif
1319 1319
1320static inline struct xfrm_state *xfrm_input_state(struct sk_buff *skb)
1321{
1322 return skb->sp->xvec[skb->sp->len - 1];
1323}
1324
1320#endif /* _NET_XFRM_H */ 1325#endif /* _NET_XFRM_H */