Lines Matching refs:xfrm_state
173 struct xfrm_state { struct
234 struct xfrm_state *tunnel; argument
294 static inline struct net *xs_net(struct xfrm_state *x) in xs_net() argument
366 void km_state_notify(struct xfrm_state *x, const struct km_event *c);
369 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t,
371 void km_state_expired(struct xfrm_state *x, int hard, u32 portid);
372 int __xfrm_state_delete(struct xfrm_state *x);
410 void xfrm_state_delete_tunnel(struct xfrm_state *x);
421 int (*init_state)(struct xfrm_state *x,
423 void (*destructor)(struct xfrm_state *);
424 int (*input)(struct xfrm_state *, struct sk_buff *skb);
425 int (*output)(struct xfrm_state *, struct sk_buff *pskb);
426 int (*reject)(struct xfrm_state *, struct sk_buff *,
436 void (*encap)(struct xfrm_state *, struct sk_buff *pskb);
437 int (*input_tail)(struct xfrm_state *x, struct sk_buff *skb);
438 int (*xmit)(struct xfrm_state *, struct sk_buff *pskb, netdev_features_t features);
456 static inline const struct xfrm_mode *xfrm_ip2inner_mode(struct xfrm_state *x, int ipproto) in xfrm_ip2inner_mode()
593 int (*notify)(struct xfrm_state *x, const struct km_event *c);
594 int (*acquire)(struct xfrm_state *x, struct xfrm_tmpl *, struct xfrm_policy *xp);
596 int (*new_mapping)(struct xfrm_state *x, xfrm_address_t *ipaddr, __be16 sport);
725 void xfrm_audit_state_add(struct xfrm_state *x, int result, bool task_valid);
726 void xfrm_audit_state_delete(struct xfrm_state *x, int result, bool task_valid);
727 void xfrm_audit_state_replay_overflow(struct xfrm_state *x,
729 void xfrm_audit_state_replay(struct xfrm_state *x, struct sk_buff *skb,
734 void xfrm_audit_state_icvfail(struct xfrm_state *x, struct sk_buff *skb,
748 static inline void xfrm_audit_state_add(struct xfrm_state *x, int result, in xfrm_audit_state_add()
753 static inline void xfrm_audit_state_delete(struct xfrm_state *x, int result, in xfrm_audit_state_delete()
758 static inline void xfrm_audit_state_replay_overflow(struct xfrm_state *x, in xfrm_audit_state_replay_overflow()
763 static inline void xfrm_audit_state_replay(struct xfrm_state *x, in xfrm_audit_state_replay()
778 static inline void xfrm_audit_state_icvfail(struct xfrm_state *x, in xfrm_audit_state_icvfail()
805 void __xfrm_state_destroy(struct xfrm_state *, bool);
807 static inline void __xfrm_state_put(struct xfrm_state *x) in __xfrm_state_put()
812 static inline void xfrm_state_put(struct xfrm_state *x) in xfrm_state_put()
818 static inline void xfrm_state_put_sync(struct xfrm_state *x) in xfrm_state_put_sync()
824 static inline void xfrm_state_hold(struct xfrm_state *x) in xfrm_state_hold()
1059 struct xfrm_state *xvec[XFRM_MAX_DEPTH];
1086 __xfrm4_state_addr_cmp(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x) in __xfrm4_state_addr_cmp()
1093 __xfrm6_state_addr_cmp(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x) in __xfrm6_state_addr_cmp()
1100 xfrm_state_addr_cmp(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x, unsigned short family) in xfrm_state_addr_cmp()
1112 static inline struct xfrm_state *xfrm_input_state(struct sk_buff *skb) in xfrm_input_state()
1166 struct xfrm_state *x; in __xfrm_policy_check2()
1359 __xfrm4_state_addr_check(const struct xfrm_state *x, in __xfrm4_state_addr_check()
1369 __xfrm6_state_addr_check(const struct xfrm_state *x, in __xfrm6_state_addr_check()
1381 xfrm_state_addr_check(const struct xfrm_state *x, in xfrm_state_addr_check()
1395 xfrm_state_addr_flow_check(const struct xfrm_state *x, const struct flowi *fl, in xfrm_state_addr_flow_check()
1411 static inline int xfrm_state_kern(const struct xfrm_state *x) in xfrm_state_kern()
1562 int (*func)(struct xfrm_state *, int, void*), void *);
1564 struct xfrm_state *xfrm_state_alloc(struct net *net);
1565 void xfrm_state_free(struct xfrm_state *x);
1566 struct xfrm_state *xfrm_state_find(const xfrm_address_t *daddr,
1572 struct xfrm_state *xfrm_stateonly_find(struct net *net, u32 mark, u32 if_id,
1577 struct xfrm_state *xfrm_state_lookup_byspi(struct net *net, __be32 spi,
1579 int xfrm_state_check_expire(struct xfrm_state *x);
1581 static inline void xfrm_dev_state_update_curlft(struct xfrm_state *x) in xfrm_dev_state_update_curlft()
1595 static inline void xfrm_dev_state_update_curlft(struct xfrm_state *x) {} in xfrm_dev_state_update_curlft()
1597 void xfrm_state_insert(struct xfrm_state *x);
1598 int xfrm_state_add(struct xfrm_state *x);
1599 int xfrm_state_update(struct xfrm_state *x);
1600 struct xfrm_state *xfrm_state_lookup(struct net *net, u32 mark,
1603 struct xfrm_state *xfrm_state_lookup_byaddr(struct net *net, u32 mark,
1611 void xfrm_state_sort(struct xfrm_state **dst, struct xfrm_state **src, int n,
1619 static inline void xfrm_state_sort(struct xfrm_state **d, struct xfrm_state **s, in xfrm_state_sort()
1642 struct xfrm_state *xfrm_find_acq_byseq(struct net *net, u32 mark, u32 seq);
1643 int xfrm_state_delete(struct xfrm_state *x);
1650 u32 xfrm_replay_seqhi(struct xfrm_state *x, __be32 net_seq);
1651 int xfrm_init_replay(struct xfrm_state *x, struct netlink_ext_ack *extack);
1652 u32 xfrm_state_mtu(struct xfrm_state *x, int mtu);
1653 int __xfrm_init_state(struct xfrm_state *x, bool init_replay, bool offload,
1655 int xfrm_init_state(struct xfrm_state *x);
1668 int pktgen_xfrm_outer_mode_output(struct xfrm_state *x, struct sk_buff *skb);
1672 int xfrm4_extract_input(struct xfrm_state *x, struct sk_buff *skb);
1692 int xfrm6_extract_input(struct xfrm_state *x, struct sk_buff *skb);
1752 int xfrm_alloc_spi(struct xfrm_state *x, u32 minspi, u32 maxspi,
1754 struct xfrm_state *xfrm_find_acq(struct net *net, const struct xfrm_mark *mark,
1766 struct xfrm_state *xfrm_migrate_state_find(struct xfrm_migrate *m, struct net *net,
1768 struct xfrm_state *xfrm_state_migrate(struct xfrm_state *x,
1778 int km_new_mapping(struct xfrm_state *x, xfrm_address_t *ipaddr, __be16 sport);
1826 void xfrm_replay_advance(struct xfrm_state *x, __be32 net_seq);
1827 int xfrm_replay_check(struct xfrm_state *x, struct sk_buff *skb, __be32 net_seq);
1828 void xfrm_replay_notify(struct xfrm_state *x, int event);
1829 int xfrm_replay_overflow(struct xfrm_state *x, struct sk_buff *skb);
1830 int xfrm_replay_recheck(struct xfrm_state *x, struct sk_buff *skb, __be32 net_seq);
1881 static inline int xfrm_replay_clone(struct xfrm_state *x, in xfrm_replay_clone()
1882 struct xfrm_state *orig) in xfrm_replay_clone()
1915 static inline void xfrm_states_put(struct xfrm_state **states, int n) in xfrm_states_put()
1922 static inline void xfrm_states_delete(struct xfrm_state **states, int n) in xfrm_states_delete()
1936 int xfrm_dev_state_add(struct net *net, struct xfrm_state *x,
1942 bool xfrm_dev_offload_ok(struct sk_buff *skb, struct xfrm_state *x);
1944 static inline void xfrm_dev_state_advance_esn(struct xfrm_state *x) in xfrm_dev_state_advance_esn()
1954 struct xfrm_state *x = dst->xfrm; in xfrm_dst_offload_ok()
1970 static inline void xfrm_dev_state_delete(struct xfrm_state *x) in xfrm_dev_state_delete()
1978 static inline void xfrm_dev_state_free(struct xfrm_state *x) in xfrm_dev_state_free()
2027 static inline int xfrm_dev_state_add(struct net *net, struct xfrm_state *x, struct xfrm_user_offloa… in xfrm_dev_state_add()
2032 static inline void xfrm_dev_state_delete(struct xfrm_state *x) in xfrm_dev_state_delete()
2036 static inline void xfrm_dev_state_free(struct xfrm_state *x) in xfrm_dev_state_free()
2055 static inline bool xfrm_dev_offload_ok(struct sk_buff *skb, struct xfrm_state *x) in xfrm_dev_offload_ok()
2060 static inline void xfrm_dev_state_advance_esn(struct xfrm_state *x) in xfrm_dev_state_advance_esn()
2089 static inline __u32 xfrm_smark_get(__u32 mark, struct xfrm_state *x) in xfrm_smark_get()
2105 static inline int xfrm_tunnel_check(struct sk_buff *skb, struct xfrm_state *x, in xfrm_tunnel_check()