Home
last modified time | relevance | path

Searched refs:km (Results 1 – 10 of 10) sorted by relevance

/net/netfilter/
Dnf_conntrack_proto_gre.c58 static inline int gre_key_cmpfn(const struct nf_ct_gre_keymap *km, in gre_key_cmpfn() argument
61 return km->tuple.src.l3num == t->src.l3num && in gre_key_cmpfn()
62 !memcmp(&km->tuple.src.u3, &t->src.u3, sizeof(t->src.u3)) && in gre_key_cmpfn()
63 !memcmp(&km->tuple.dst.u3, &t->dst.u3, sizeof(t->dst.u3)) && in gre_key_cmpfn()
64 km->tuple.dst.protonum == t->dst.protonum && in gre_key_cmpfn()
65 km->tuple.dst.u.all == t->dst.u.all; in gre_key_cmpfn()
72 struct nf_ct_gre_keymap *km; in gre_keymap_lookup() local
75 list_for_each_entry_rcu(km, &net_gre->keymap_list, list) { in gre_keymap_lookup()
76 if (gre_key_cmpfn(km, t)) { in gre_keymap_lookup()
77 key = km->tuple.src.u.gre.key; in gre_keymap_lookup()
[all …]
/net/xfrm/
Dxfrm_state.c116 if (x->km.seq) { in xfrm_hash_transfer()
117 h = __xfrm_seq_hash(x->km.seq, nhashmask); in xfrm_hash_transfer()
551 if (x->km.state == XFRM_STATE_DEAD) in xfrm_timer_handler()
553 if (x->km.state == XFRM_STATE_EXPIRED) in xfrm_timer_handler()
580 if (x->km.dying) in xfrm_timer_handler()
603 x->km.dying = warn; in xfrm_timer_handler()
615 if (x->km.state == XFRM_STATE_ACQ && x->id.spi == 0) in xfrm_timer_handler()
616 x->km.state = XFRM_STATE_EXPIRED; in xfrm_timer_handler()
641 INIT_LIST_HEAD(&x->km.all); in xfrm_state_alloc()
664 WARN_ON(x->km.state != XFRM_STATE_DEAD); in __xfrm_state_destroy()
[all …]
Dxfrm_input.c482 if (unlikely(x->km.state != XFRM_STATE_VALID)) { in xfrm_input()
483 if (x->km.state == XFRM_STATE_ACQ) in xfrm_input()
602 if (unlikely(x->km.state != XFRM_STATE_VALID)) { in xfrm_input()
603 if (x->km.state == XFRM_STATE_ACQ) in xfrm_input()
Dxfrm_user.c650 x->km.seq = p->seq; in xfrm_state_construct()
672 x->km.state = XFRM_STATE_DEAD; in xfrm_state_construct()
705 x->km.state = XFRM_STATE_DEAD; in xfrm_add_sa()
711 if (x->km.state == XFRM_STATE_VOID) in xfrm_add_sa()
712 x->km.state = XFRM_STATE_VALID; in xfrm_add_sa()
811 p->seq = x->km.seq; in copy_to_user_state()
2368 if (x->km.state != XFRM_STATE_VALID) in xfrm_new_ae()
2503 if (x->km.state != XFRM_STATE_VALID) in xfrm_add_sa_expire()
2628 struct xfrm_kmaddress km, *kmp; in xfrm_do_migrate() local
2639 kmp = attrs[XFRMA_KMADDRESS] ? &km : NULL; in xfrm_do_migrate()
[all …]
Dxfrm_output.c515 if (unlikely(x->km.state != XFRM_STATE_VALID)) { in xfrm_output_one()
Dxfrm_policy.c2396 if (x && x->km.state == XFRM_STATE_VALID) { in xfrm_tmpl_resolve_one()
2403 error = (x->km.state == XFRM_STATE_ERROR ? in xfrm_tmpl_resolve_one()
3828 if (dst->xfrm->km.state != XFRM_STATE_VALID) in xfrm_bundle_ok()
/net/ipv4/
Dipcomp.c86 t->km.state = XFRM_STATE_DEAD; in ipcomp_tunnel_create()
/net/ipv6/
Dipcomp6.c105 t->km.state = XFRM_STATE_DEAD; in ipcomp6_tunnel_create()
Dxfrm6_input.c224 likely(x->km.state == XFRM_STATE_VALID) && in xfrm6_input_addr()
/net/key/
Daf_key.c840 switch (x->km.state) { in __pfkey_xfrm_state2msg()
842 sa->sadb_sa_state = x->km.dying ? in __pfkey_xfrm_state2msg()
1291 x->km.seq = hdr->sadb_msg_seq; in pfkey_msg2xfrm_state()
1295 x->km.state = XFRM_STATE_DEAD; in pfkey_msg2xfrm_state()
1426 if (x->km.state == XFRM_STATE_ACQ) in pfkey_acquire()
1427 x->km.state = XFRM_STATE_ERROR; in pfkey_acquire()
1517 x->km.state = XFRM_STATE_DEAD; in pfkey_add()
3197 hdr->sadb_msg_seq = x->km.seq = get_acqseq(); in pfkey_send_acquire()
3401 hdr->sadb_msg_seq = x->km.seq; in pfkey_send_new_mapping()