/linux-4.4.14/include/net/ |
D | xfrm.h | 128 struct xfrm_state { struct 180 struct xfrm_state *tunnel; argument 235 static inline struct net *xs_net(struct xfrm_state *x) in xs_net() argument 270 void (*advance)(struct xfrm_state *x, __be32 net_seq); 271 int (*check)(struct xfrm_state *x, 274 int (*recheck)(struct xfrm_state *x, 277 void (*notify)(struct xfrm_state *x, int event); 278 int (*overflow)(struct xfrm_state *x, struct sk_buff *skb); 312 void km_state_notify(struct xfrm_state *x, const struct km_event *c); 315 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; 537 static inline struct xfrm_state *dst_xfrm(const struct dst_entry *dst) in dst_xfrm() 552 static inline struct xfrm_state *dst_xfrm(const struct dst_entry *dst) in dst_xfrm()
|
/linux-4.4.14/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 | 293 static int attach_crypt(struct xfrm_state *x, struct nlattr *rta) in attach_crypt() 378 static int attach_aead(struct xfrm_state *x, struct nlattr *rta) in attach_aead() 465 static void copy_from_user_state(struct xfrm_state *x, struct xfrm_usersa_info *p) in copy_from_user_state() 487 static void xfrm_update_ae_params(struct xfrm_state *x, struct nlattr **attrs, in xfrm_update_ae_params() 528 static struct xfrm_state *xfrm_state_construct(struct net *net, in xfrm_state_construct() 533 struct xfrm_state *x = xfrm_state_alloc(net); in xfrm_state_construct() 618 struct xfrm_state *x; in xfrm_add_sa() 654 static struct xfrm_state *xfrm_user_state_lookup(struct net *net, in xfrm_user_state_lookup() 659 struct xfrm_state *x = NULL; in xfrm_user_state_lookup() 692 struct xfrm_state *x; in xfrm_del_sa() [all …]
|
D | Makefile | 5 obj-$(CONFIG_XFRM) := xfrm_policy.o xfrm_state.o xfrm_hash.o \
|
D | xfrm_output.c | 56 struct xfrm_state *x = dst->xfrm; in xfrm_output_one() 218 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 | 138 static inline struct dst_entry *xfrm_dst_lookup(struct xfrm_state *x, in xfrm_dst_lookup() 1415 struct xfrm_state **xfrm, unsigned short family) in xfrm_tmpl_resolve_one() 1425 struct xfrm_state *x; in xfrm_tmpl_resolve_one() 1473 struct xfrm_state **xfrm, unsigned short family) in xfrm_tmpl_resolve() 1475 struct xfrm_state *tp[XFRM_MAX_DEPTH]; in xfrm_tmpl_resolve() 1476 struct xfrm_state **tpp = (npols > 1) ? tp : xfrm; in xfrm_tmpl_resolve() 1654 struct xfrm_state **xfrm, int nx, in xfrm_bundle_create() 1866 struct xfrm_state *xfrm[XFRM_MAX_DEPTH]; in xfrm_resolve_and_create_bundle() 2372 struct xfrm_state *x; in xfrm_secpath_reject() 2389 xfrm_state_ok(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x, in xfrm_state_ok() [all …]
|
/linux-4.4.14/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.4.14/security/selinux/ |
D | xfrm.c | 68 static inline int selinux_authorizable_xfrm(struct xfrm_state *x) in selinux_authorizable_xfrm() 175 int selinux_xfrm_state_pol_flow_match(struct xfrm_state *x, in selinux_xfrm_state_pol_flow_match() 213 struct xfrm_state *x; in selinux_xfrm_skb_sid_egress() 234 struct xfrm_state *x = sp->xvec[i]; in selinux_xfrm_skb_sid_ingress() 331 int selinux_xfrm_state_alloc(struct xfrm_state *x, in selinux_xfrm_state_alloc() 341 int selinux_xfrm_state_alloc_acquire(struct xfrm_state *x, in selinux_xfrm_state_alloc_acquire() 381 void selinux_xfrm_state_free(struct xfrm_state *x) in selinux_xfrm_state_free() 389 int selinux_xfrm_state_delete(struct xfrm_state *x) in selinux_xfrm_state_delete() 410 struct xfrm_state *x = sp->xvec[i]; in selinux_xfrm_sock_rcv_skb() 456 struct xfrm_state *x = iter->xfrm; in selinux_xfrm_postroute_last()
|
/linux-4.4.14/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() 208 static int mip6_destopt_reject(struct xfrm_state *x, struct sk_buff *skb, in mip6_destopt_reject() 262 static int mip6_destopt_offset(struct xfrm_state *x, struct sk_buff *skb, in mip6_destopt_offset() 310 static int mip6_destopt_init_state(struct xfrm_state *x) in mip6_destopt_init_state() 334 static void mip6_destopt_destroy(struct xfrm_state *x) in mip6_destopt_destroy() 351 static int mip6_rthdr_input(struct xfrm_state *x, struct sk_buff *skb) in mip6_rthdr_input() 369 static int mip6_rthdr_output(struct xfrm_state *x, struct sk_buff *skb) in mip6_rthdr_output() 398 static int mip6_rthdr_offset(struct xfrm_state *x, struct sk_buff *skb, in mip6_rthdr_offset() 445 static int mip6_rthdr_init_state(struct xfrm_state *x) in mip6_rthdr_init_state() [all …]
|
D | xfrm6_output.c | 23 int xfrm6_find_1stfragopt(struct xfrm_state *x, struct sk_buff *skb, in xfrm6_find_1stfragopt() 96 int xfrm6_extract_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_extract_output() 109 int xfrm6_prepare_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_prepare_output() 137 struct xfrm_state *x = skb_dst(skb)->xfrm; in __xfrm6_output_finish() 145 struct xfrm_state *x = dst->xfrm; in __xfrm6_output()
|
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 | esp6.c | 54 static u32 esp6_get_mtu(struct xfrm_state *x, int mtu); 149 static int esp6_output(struct xfrm_state *x, struct sk_buff *skb) in esp6_output() 289 struct xfrm_state *x = xfrm_input_state(skb); in esp_input_done2() 354 static int esp6_input(struct xfrm_state *x, struct sk_buff *skb) in esp6_input() 444 static u32 esp6_get_mtu(struct xfrm_state *x, int mtu) in esp6_get_mtu() 465 struct xfrm_state *x; in esp6_err() 485 static void esp6_destroy(struct xfrm_state *x) in esp6_destroy() 495 static int esp_init_aead(struct xfrm_state *x) in esp_init_aead() 526 static int esp_init_authenc(struct xfrm_state *x) in esp_init_authenc() 619 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 | xfrm6_mode_tunnel.c | 33 static int xfrm6_mode_tunnel_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_mode_tunnel_output() 71 static int xfrm6_mode_tunnel_input(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_mode_tunnel_input()
|
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() 654 struct xfrm_state *x; in ah6_err() 673 static int ah6_init_state(struct xfrm_state *x) in ah6_init_state() 742 static void ah6_destroy(struct xfrm_state *x) in ah6_destroy()
|
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.4.14/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 | 46 int xfrm4_extract_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_extract_output() 59 int xfrm4_prepare_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_prepare_output() 87 struct xfrm_state *x = skb_dst(skb)->xfrm; in __xfrm4_output()
|
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 | esp4.c | 28 static u32 esp4_get_mtu(struct xfrm_state *x, int mtu); 121 static int esp_output(struct xfrm_state *x, struct sk_buff *skb) in esp_output() 298 struct xfrm_state *x = xfrm_input_state(skb); in esp_input_done2() 405 static int esp_input(struct xfrm_state *x, struct sk_buff *skb) in esp_input() 490 static u32 esp4_get_mtu(struct xfrm_state *x, int mtu) in esp4_get_mtu() 517 struct xfrm_state *x; in esp4_err() 543 static void esp_destroy(struct xfrm_state *x) in esp_destroy() 553 static int esp_init_aead(struct xfrm_state *x) in esp_init_aead() 584 static int esp_init_authenc(struct xfrm_state *x) in esp_init_authenc() 677 static int esp_init_state(struct xfrm_state *x) in esp_init_state()
|
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() 438 struct xfrm_state *x; in ah4_err() 464 static int ah_init_state(struct xfrm_state *x) in ah_init_state() 530 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.4.14/include/linux/ |
D | security.h | 107 struct xfrm_state; 1355 int security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx); 1356 int security_xfrm_state_alloc_acquire(struct xfrm_state *x, 1358 int security_xfrm_state_delete(struct xfrm_state *x); 1359 void security_xfrm_state_free(struct xfrm_state *x); 1361 int security_xfrm_state_pol_flow_match(struct xfrm_state *x, 1390 static inline int security_xfrm_state_alloc(struct xfrm_state *x, in security_xfrm_state_alloc() 1396 static inline int security_xfrm_state_alloc_acquire(struct xfrm_state *x, in security_xfrm_state_alloc_acquire() 1402 static inline void security_xfrm_state_free(struct xfrm_state *x) in security_xfrm_state_free() 1406 static inline int security_xfrm_state_delete(struct xfrm_state *x) in security_xfrm_state_delete() [all …]
|
D | lsm_hooks.h | 1583 int (*xfrm_state_alloc)(struct xfrm_state *x, 1585 int (*xfrm_state_alloc_acquire)(struct xfrm_state *x, 1588 void (*xfrm_state_free_security)(struct xfrm_state *x); 1589 int (*xfrm_state_delete_security)(struct xfrm_state *x); 1592 int (*xfrm_state_pol_flow_match)(struct xfrm_state *x,
|
/linux-4.4.14/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() 1276 struct xfrm_state *x = NULL; in pfkey_getspi() 1376 struct xfrm_state *x; in pfkey_acquire() 1436 static int key_notify_sa(struct xfrm_state *x, const struct km_event *c) in key_notify_sa() 1463 struct xfrm_state *x; in pfkey_add() [all …]
|
/linux-4.4.14/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.4.14/security/ |
D | security.c | 1420 int security_xfrm_state_alloc(struct xfrm_state *x, in security_xfrm_state_alloc() 1427 int security_xfrm_state_alloc_acquire(struct xfrm_state *x, in security_xfrm_state_alloc_acquire() 1433 int security_xfrm_state_delete(struct xfrm_state *x) in security_xfrm_state_delete() 1439 void security_xfrm_state_free(struct xfrm_state *x) in security_xfrm_state_free() 1449 int security_xfrm_state_pol_flow_match(struct xfrm_state *x, in security_xfrm_state_pol_flow_match()
|
/linux-4.4.14/net/core/ |
D | pktgen.c | 235 struct xfrm_state *x; 2326 struct xfrm_state *x = pkt_dev->flows[flow].x; in get_ipsec_sa() 2586 struct xfrm_state *x = pkt_dev->flows[pkt_dev->curfl].x; in pktgen_output_ipsec() 2629 struct xfrm_state *x = pkt_dev->flows[i].x; in free_SAs() 2642 struct xfrm_state *x = pkt_dev->flows[pkt_dev->curfl].x; in process_ipsec()
|