/linux-4.1.27/include/net/ |
D | xfrm.h | 128 struct xfrm_state { struct 179 struct xfrm_state *tunnel; argument 234 static inline struct net *xs_net(struct xfrm_state *x) in xs_net() argument 269 void (*advance)(struct xfrm_state *x, __be32 net_seq); 270 int (*check)(struct xfrm_state *x, 273 int (*recheck)(struct xfrm_state *x, 276 void (*notify)(struct xfrm_state *x, int event); 277 int (*overflow)(struct xfrm_state *x, struct sk_buff *skb); 310 void km_state_notify(struct xfrm_state *x, const struct km_event *c); 313 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, [all …]
|
D | ipcomp.h | 17 struct xfrm_state; 19 int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb); 20 int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb); 21 void ipcomp_destroy(struct xfrm_state *x); 22 int ipcomp_init_state(struct xfrm_state *x);
|
D | dst.h | 43 struct xfrm_state *xfrm; 539 static inline struct xfrm_state *dst_xfrm(const struct dst_entry *dst) in dst_xfrm() 554 static inline struct xfrm_state *dst_xfrm(const struct dst_entry *dst) in dst_xfrm()
|
/linux-4.1.27/net/xfrm/ |
D | xfrm_state.c | 71 struct xfrm_state *x; in xfrm_hash_transfer() 154 int __xfrm_state_delete(struct xfrm_state *x); 156 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol); 158 void km_state_expired(struct xfrm_state *x, int hard, u32 portid); 331 static void xfrm_state_gc_destroy(struct xfrm_state *x) in xfrm_state_gc_destroy() 359 struct xfrm_state *x; in xfrm_state_gc_task() 382 struct xfrm_state *x = container_of(thr, struct xfrm_state, mtimer); in xfrm_timer_handler() 468 struct xfrm_state *xfrm_state_alloc(struct net *net) in xfrm_state_alloc() 470 struct xfrm_state *x; in xfrm_state_alloc() 472 x = kzalloc(sizeof(struct xfrm_state), GFP_ATOMIC); in xfrm_state_alloc() [all …]
|
D | xfrm_replay.c | 24 u32 xfrm_replay_seqhi(struct xfrm_state *x, __be32 net_seq) in xfrm_replay_seqhi() 49 static void xfrm_replay_notify(struct xfrm_state *x, int event) in xfrm_replay_notify() 95 static int xfrm_replay_overflow(struct xfrm_state *x, struct sk_buff *skb) in xfrm_replay_overflow() 117 static int xfrm_replay_check(struct xfrm_state *x, in xfrm_replay_check() 149 static void xfrm_replay_advance(struct xfrm_state *x, __be32 net_seq) in xfrm_replay_advance() 173 static int xfrm_replay_overflow_bmp(struct xfrm_state *x, struct sk_buff *skb) in xfrm_replay_overflow_bmp() 196 static int xfrm_replay_check_bmp(struct xfrm_state *x, in xfrm_replay_check_bmp() 240 static void xfrm_replay_advance_bmp(struct xfrm_state *x, __be32 net_seq) in xfrm_replay_advance_bmp() 288 static void xfrm_replay_notify_bmp(struct xfrm_state *x, int event) in xfrm_replay_notify_bmp() 339 static void xfrm_replay_notify_esn(struct xfrm_state *x, int event) in xfrm_replay_notify_esn() [all …]
|
D | xfrm_ipcomp.c | 42 static int ipcomp_decompress(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_decompress() 110 int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_input() 138 static int ipcomp_compress(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_compress() 171 int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_output() 328 void ipcomp_destroy(struct xfrm_state *x) in ipcomp_destroy() 341 int ipcomp_init_state(struct xfrm_state *x) in ipcomp_init_state()
|
D | xfrm_user.c | 439 static void copy_from_user_state(struct xfrm_state *x, struct xfrm_usersa_info *p) in copy_from_user_state() 461 static void xfrm_update_ae_params(struct xfrm_state *x, struct nlattr **attrs, in xfrm_update_ae_params() 502 static struct xfrm_state *xfrm_state_construct(struct net *net, in xfrm_state_construct() 507 struct xfrm_state *x = xfrm_state_alloc(net); in xfrm_state_construct() 595 struct xfrm_state *x; in xfrm_add_sa() 631 static struct xfrm_state *xfrm_user_state_lookup(struct net *net, in xfrm_user_state_lookup() 636 struct xfrm_state *x = NULL; in xfrm_user_state_lookup() 669 struct xfrm_state *x; in xfrm_del_sa() 702 static void copy_to_user_state(struct xfrm_state *x, struct xfrm_usersa_info *p) in copy_to_user_state() 766 static int copy_to_user_state_extra(struct xfrm_state *x, in copy_to_user_state_extra() [all …]
|
D | Makefile | 5 obj-$(CONFIG_XFRM) := xfrm_policy.o xfrm_state.o xfrm_hash.o \
|
D | xfrm_output.c | 44 struct xfrm_state *x = dst->xfrm; in xfrm_output_one() 204 int xfrm_inner_extract_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm_inner_extract_output()
|
D | xfrm_input.c | 162 int xfrm_prepare_input(struct xfrm_state *x, struct sk_buff *skb) in xfrm_prepare_input() 188 struct xfrm_state *x = NULL; in xfrm_input()
|
D | xfrm_policy.c | 137 static inline struct dst_entry *xfrm_dst_lookup(struct xfrm_state *x, int tos, in xfrm_dst_lookup() 1396 struct xfrm_state **xfrm, unsigned short family) in xfrm_tmpl_resolve_one() 1406 struct xfrm_state *x; in xfrm_tmpl_resolve_one() 1452 struct xfrm_state **xfrm, unsigned short family) in xfrm_tmpl_resolve() 1454 struct xfrm_state *tp[XFRM_MAX_DEPTH]; in xfrm_tmpl_resolve() 1455 struct xfrm_state **tpp = (npols > 1) ? tp : xfrm; in xfrm_tmpl_resolve() 1635 struct xfrm_state **xfrm, int nx, in xfrm_bundle_create() 1847 struct xfrm_state *xfrm[XFRM_MAX_DEPTH]; in xfrm_resolve_and_create_bundle() 2353 struct xfrm_state *x; in xfrm_secpath_reject() 2370 xfrm_state_ok(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x, in xfrm_state_ok() [all …]
|
/linux-4.1.27/security/selinux/include/ |
D | xfrm.h | 19 int selinux_xfrm_state_alloc(struct xfrm_state *x, 21 int selinux_xfrm_state_alloc_acquire(struct xfrm_state *x, 23 void selinux_xfrm_state_free(struct xfrm_state *x); 24 int selinux_xfrm_state_delete(struct xfrm_state *x); 26 int selinux_xfrm_state_pol_flow_match(struct xfrm_state *x,
|
/linux-4.1.27/security/selinux/ |
D | xfrm.c | 71 static inline int selinux_authorizable_xfrm(struct xfrm_state *x) in selinux_authorizable_xfrm() 178 int selinux_xfrm_state_pol_flow_match(struct xfrm_state *x, in selinux_xfrm_state_pol_flow_match() 216 struct xfrm_state *x; in selinux_xfrm_skb_sid_egress() 237 struct xfrm_state *x = sp->xvec[i]; in selinux_xfrm_skb_sid_ingress() 334 int selinux_xfrm_state_alloc(struct xfrm_state *x, in selinux_xfrm_state_alloc() 344 int selinux_xfrm_state_alloc_acquire(struct xfrm_state *x, in selinux_xfrm_state_alloc_acquire() 384 void selinux_xfrm_state_free(struct xfrm_state *x) in selinux_xfrm_state_free() 392 int selinux_xfrm_state_delete(struct xfrm_state *x) in selinux_xfrm_state_delete() 413 struct xfrm_state *x = sp->xvec[i]; in selinux_xfrm_sock_rcv_skb() 459 struct xfrm_state *x = iter->xfrm; in selinux_xfrm_postroute_last()
|
/linux-4.1.27/net/ipv6/ |
D | ipcomp6.c | 64 struct xfrm_state *x; in ipcomp6_err() 85 static struct xfrm_state *ipcomp6_tunnel_create(struct xfrm_state *x) in ipcomp6_tunnel_create() 88 struct xfrm_state *t = NULL; in ipcomp6_tunnel_create() 121 static int ipcomp6_tunnel_attach(struct xfrm_state *x) in ipcomp6_tunnel_attach() 125 struct xfrm_state *t = NULL; in ipcomp6_tunnel_attach() 149 static int ipcomp6_init_state(struct xfrm_state *x) in ipcomp6_init_state()
|
D | mip6.c | 131 static int mip6_destopt_input(struct xfrm_state *x, struct sk_buff *skb) in mip6_destopt_input() 150 static int mip6_destopt_output(struct xfrm_state *x, struct sk_buff *skb) in mip6_destopt_output() 210 static int mip6_destopt_reject(struct xfrm_state *x, struct sk_buff *skb, in mip6_destopt_reject() 264 static int mip6_destopt_offset(struct xfrm_state *x, struct sk_buff *skb, in mip6_destopt_offset() 312 static int mip6_destopt_init_state(struct xfrm_state *x) in mip6_destopt_init_state() 336 static void mip6_destopt_destroy(struct xfrm_state *x) in mip6_destopt_destroy() 353 static int mip6_rthdr_input(struct xfrm_state *x, struct sk_buff *skb) in mip6_rthdr_input() 371 static int mip6_rthdr_output(struct xfrm_state *x, struct sk_buff *skb) in mip6_rthdr_output() 400 static int mip6_rthdr_offset(struct xfrm_state *x, struct sk_buff *skb, in mip6_rthdr_offset() 447 static int mip6_rthdr_init_state(struct xfrm_state *x) in mip6_rthdr_init_state() [all …]
|
D | xfrm6_state.c | 44 xfrm6_init_temprop(struct xfrm_state *x, const struct xfrm_tmpl *tmpl, in xfrm6_init_temprop() 96 struct xfrm_state *v = p; in __xfrm6_state_sort_cmp() 117 __xfrm6_state_sort(struct xfrm_state **dst, struct xfrm_state **src, int n) in __xfrm6_state_sort()
|
D | xfrm6_output.c | 23 int xfrm6_find_1stfragopt(struct xfrm_state *x, struct sk_buff *skb, in xfrm6_find_1stfragopt() 95 int xfrm6_extract_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_extract_output() 108 int xfrm6_prepare_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_prepare_output() 137 struct xfrm_state *x = dst->xfrm; in __xfrm6_output()
|
D | esp6.c | 54 static u32 esp6_get_mtu(struct xfrm_state *x, int mtu); 144 static int esp6_output(struct xfrm_state *x, struct sk_buff *skb) in esp6_output() 270 struct xfrm_state *x = xfrm_input_state(skb); in esp_input_done2() 321 static int esp6_input(struct xfrm_state *x, struct sk_buff *skb) in esp6_input() 411 static u32 esp6_get_mtu(struct xfrm_state *x, int mtu) in esp6_get_mtu() 432 struct xfrm_state *x; in esp6_err() 452 static void esp6_destroy(struct xfrm_state *x) in esp6_destroy() 462 static int esp_init_aead(struct xfrm_state *x) in esp_init_aead() 487 static int esp_init_authenc(struct xfrm_state *x) in esp_init_authenc() 576 static int esp6_init_state(struct xfrm_state *x) in esp6_init_state()
|
D | xfrm6_mode_transport.c | 22 static int xfrm6_transport_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_transport_output() 47 static int xfrm6_transport_input(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_transport_input()
|
D | xfrm6_tunnel.c | 221 static int xfrm6_tunnel_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_tunnel_output() 227 static int xfrm6_tunnel_input(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_tunnel_input() 283 static int xfrm6_tunnel_init_state(struct xfrm_state *x) in xfrm6_tunnel_init_state() 296 static void xfrm6_tunnel_destroy(struct xfrm_state *x) in xfrm6_tunnel_destroy()
|
D | ah6.c | 303 struct xfrm_state *x = skb_dst(skb)->xfrm; in ah6_output_done() 332 static int ah6_output(struct xfrm_state *x, struct sk_buff *skb) in ah6_output() 471 struct xfrm_state *x = xfrm_input_state(skb); in ah6_input_done() 501 static int ah6_input(struct xfrm_state *x, struct sk_buff *skb) in ah6_input() 652 struct xfrm_state *x; in ah6_err() 671 static int ah6_init_state(struct xfrm_state *x) in ah6_init_state() 740 static void ah6_destroy(struct xfrm_state *x) in ah6_destroy()
|
D | xfrm6_mode_tunnel.c | 34 static int xfrm6_mode_tunnel_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_mode_tunnel_output() 72 static int xfrm6_mode_tunnel_input(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_mode_tunnel_input()
|
D | xfrm6_input.c | 19 int xfrm6_extract_input(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_extract_input() 62 struct xfrm_state *x = NULL; in xfrm6_input_addr()
|
D | xfrm6_mode_beet.c | 40 static int xfrm6_beet_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_beet_output() 80 static int xfrm6_beet_input(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_beet_input()
|
D | xfrm6_mode_ro.c | 41 static int xfrm6_ro_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_ro_output()
|
D | ip6_vti.c | 342 struct xfrm_state *x; in vti6_rcv_cb() 400 static bool vti6_state_check(const struct xfrm_state *x, in vti6_state_check() 436 struct xfrm_state *x; in vti6_xmit() 558 struct xfrm_state *x; in vti6_err()
|
/linux-4.1.27/net/ipv4/ |
D | ipcomp.c | 32 struct xfrm_state *x; in ipcomp4_err() 60 static struct xfrm_state *ipcomp_tunnel_create(struct xfrm_state *x) in ipcomp_tunnel_create() 63 struct xfrm_state *t; in ipcomp_tunnel_create() 98 static int ipcomp_tunnel_attach(struct xfrm_state *x) in ipcomp_tunnel_attach() 102 struct xfrm_state *t; in ipcomp_tunnel_attach() 122 static int ipcomp4_init_state(struct xfrm_state *x) in ipcomp4_init_state()
|
D | xfrm4_tunnel.c | 15 static int ipip_output(struct xfrm_state *x, struct sk_buff *skb) in ipip_output() 21 static int ipip_xfrm_rcv(struct xfrm_state *x, struct sk_buff *skb) in ipip_xfrm_rcv() 26 static int ipip_init_state(struct xfrm_state *x) in ipip_init_state() 39 static void ipip_destroy(struct xfrm_state *x) in ipip_destroy()
|
D | xfrm4_output.c | 44 int xfrm4_extract_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_extract_output() 57 int xfrm4_prepare_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_prepare_output() 85 struct xfrm_state *x = skb_dst(skb)->xfrm; in __xfrm4_output()
|
D | esp4.c | 28 static u32 esp4_get_mtu(struct xfrm_state *x, int mtu); 116 static int esp_output(struct xfrm_state *x, struct sk_buff *skb) in esp_output() 279 struct xfrm_state *x = xfrm_input_state(skb); in esp_input_done2() 372 static int esp_input(struct xfrm_state *x, struct sk_buff *skb) in esp_input() 457 static u32 esp4_get_mtu(struct xfrm_state *x, int mtu) in esp4_get_mtu() 484 struct xfrm_state *x; in esp4_err() 510 static void esp_destroy(struct xfrm_state *x) in esp_destroy() 520 static int esp_init_aead(struct xfrm_state *x) in esp_init_aead() 545 static int esp_init_authenc(struct xfrm_state *x) in esp_init_authenc() 634 static int esp_init_state(struct xfrm_state *x) in esp_init_state()
|
D | xfrm4_mode_transport.c | 21 static int xfrm4_transport_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_transport_output() 43 static int xfrm4_transport_input(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_transport_input()
|
D | ah4.c | 123 struct xfrm_state *x = skb_dst(skb)->xfrm; in ah_output_done() 145 static int ah_output(struct xfrm_state *x, struct sk_buff *skb) in ah_output() 267 struct xfrm_state *x = xfrm_input_state(skb); in ah_input_done() 296 static int ah_input(struct xfrm_state *x, struct sk_buff *skb) in ah_input() 436 struct xfrm_state *x; in ah4_err() 462 static int ah_init_state(struct xfrm_state *x) in ah_init_state() 528 static void ah_destroy(struct xfrm_state *x) in ah_destroy()
|
D | xfrm4_mode_tunnel.c | 30 static int xfrm4_mode_tunnel_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_mode_tunnel_output() 71 static int xfrm4_mode_tunnel_input(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_mode_tunnel_input()
|
D | xfrm4_state.c | 17 static int xfrm4_init_flags(struct xfrm_state *x) in xfrm4_init_flags() 43 xfrm4_init_temprop(struct xfrm_state *x, const struct xfrm_tmpl *tmpl, in xfrm4_init_temprop()
|
D | xfrm4_mode_beet.c | 39 static int xfrm4_beet_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_beet_output() 84 static int xfrm4_beet_input(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_beet_input()
|
D | xfrm4_input.c | 20 int xfrm4_extract_input(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_extract_input()
|
D | ip_vti.c | 91 struct xfrm_state *x; in vti_rcv_cb() 131 static bool vti_state_check(const struct xfrm_state *x, __be32 dst, __be32 src) in vti_state_check() 249 struct xfrm_state *x; in vti4_err()
|
/linux-4.1.27/include/linux/ |
D | security.h | 113 struct xfrm_state; 1727 int (*xfrm_state_alloc) (struct xfrm_state *x, 1729 int (*xfrm_state_alloc_acquire) (struct xfrm_state *x, 1732 void (*xfrm_state_free_security) (struct xfrm_state *x); 1733 int (*xfrm_state_delete_security) (struct xfrm_state *x); 1735 int (*xfrm_state_pol_flow_match) (struct xfrm_state *x, 2936 int security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx); 2937 int security_xfrm_state_alloc_acquire(struct xfrm_state *x, 2939 int security_xfrm_state_delete(struct xfrm_state *x); 2940 void security_xfrm_state_free(struct xfrm_state *x); [all …]
|
/linux-4.1.27/security/ |
D | capability.c | 804 static int cap_xfrm_state_alloc(struct xfrm_state *x, in cap_xfrm_state_alloc() 810 static int cap_xfrm_state_alloc_acquire(struct xfrm_state *x, in cap_xfrm_state_alloc_acquire() 817 static void cap_xfrm_state_free_security(struct xfrm_state *x) in cap_xfrm_state_free_security() 821 static int cap_xfrm_state_delete_security(struct xfrm_state *x) in cap_xfrm_state_delete_security() 831 static int cap_xfrm_state_pol_flow_match(struct xfrm_state *x, in cap_xfrm_state_pol_flow_match()
|
D | security.c | 1391 int security_xfrm_state_alloc(struct xfrm_state *x, in security_xfrm_state_alloc() 1398 int security_xfrm_state_alloc_acquire(struct xfrm_state *x, in security_xfrm_state_alloc_acquire() 1404 int security_xfrm_state_delete(struct xfrm_state *x) in security_xfrm_state_delete() 1410 void security_xfrm_state_free(struct xfrm_state *x) in security_xfrm_state_free() 1420 int security_xfrm_state_pol_flow_match(struct xfrm_state *x, in security_xfrm_state_pol_flow_match()
|
/linux-4.1.27/net/key/ |
D | af_key.c | 613 static struct xfrm_state *pfkey_xfrm_state_lookup(struct net *net, const struct sadb_msg *hdr, voi… in pfkey_xfrm_state_lookup() 721 static struct sk_buff *__pfkey_xfrm_state2msg(const struct xfrm_state *x, in __pfkey_xfrm_state2msg() 1014 static inline struct sk_buff *pfkey_xfrm_state2msg(const struct xfrm_state *x) in pfkey_xfrm_state2msg() 1023 static inline struct sk_buff *pfkey_xfrm_state2msg_expire(const struct xfrm_state *x, in pfkey_xfrm_state2msg_expire() 1029 static struct xfrm_state * pfkey_msg2xfrm_state(struct net *net, in pfkey_msg2xfrm_state() 1033 struct xfrm_state *x; in pfkey_msg2xfrm_state() 1275 struct xfrm_state *x = NULL; in pfkey_getspi() 1375 struct xfrm_state *x; in pfkey_acquire() 1435 static int key_notify_sa(struct xfrm_state *x, const struct km_event *c) in key_notify_sa() 1462 struct xfrm_state *x; in pfkey_add() [all …]
|
/linux-4.1.27/net/netfilter/ |
D | xt_policy.c | 38 match_xfrm_state(const struct xfrm_state *x, const struct xt_policy_elem *e, in match_xfrm_state()
|
/linux-4.1.27/net/core/ |
D | pktgen.c | 231 struct xfrm_state *x; 2278 struct xfrm_state *x = pkt_dev->flows[flow].x; in get_ipsec_sa() 2538 struct xfrm_state *x = pkt_dev->flows[pkt_dev->curfl].x; in pktgen_output_ipsec() 2581 struct xfrm_state *x = pkt_dev->flows[i].x; in free_SAs() 2594 struct xfrm_state *x = pkt_dev->flows[pkt_dev->curfl].x; in process_ipsec()
|