Home
last modified time | relevance | path

Searched refs:exp (Results 1 – 25 of 35) sorted by relevance

12

/net/netfilter/
A Dnf_conntrack_expect.c187 exp = i; in nf_ct_find_expectation()
191 if (!exp) in nf_ct_find_expectation()
216 return exp; in nf_ct_find_expectation()
219 return exp; in nf_ct_find_expectation()
343 memset(&exp->tuple.src.u3, 0x00, sizeof(exp->tuple.src.u3)); in nf_ct_expect_init()
344 memset(&exp->mask.src.u3, 0x00, sizeof(exp->mask.src.u3)); in nf_ct_expect_init()
364 memset(&exp->saved_addr, 0, sizeof(exp->saved_addr)); in nf_ct_expect_init()
365 memset(&exp->saved_proto, 0, sizeof(exp->saved_proto)); in nf_ct_expect_init()
424 last = exp; in evict_oldest_expect()
523 if (iter(exp, data) && timer_delete(&exp->timeout)) { in nf_ct_expect_iterate_destroy()
[all …]
A Dnf_conntrack_broadcast.c24 struct nf_conntrack_expect *exp; in nf_conntrack_broadcast_help() local
57 exp = nf_ct_expect_alloc(ct); in nf_conntrack_broadcast_help()
58 if (exp == NULL) in nf_conntrack_broadcast_help()
67 exp->mask.src.u3.ip = mask; in nf_conntrack_broadcast_help()
68 exp->mask.src.u.udp.port = htons(0xFFFF); in nf_conntrack_broadcast_help()
70 exp->expectfn = NULL; in nf_conntrack_broadcast_help()
71 exp->flags = NF_CT_EXPECT_PERMANENT; in nf_conntrack_broadcast_help()
72 exp->class = NF_CT_EXPECT_CLASS_DEFAULT; in nf_conntrack_broadcast_help()
73 exp->helper = NULL; in nf_conntrack_broadcast_help()
75 nf_ct_expect_related(exp, 0); in nf_conntrack_broadcast_help()
[all …]
A Dnf_nat_amanda.c33 struct nf_conntrack_expect *exp) in help() argument
39 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in help()
40 exp->dir = IP_CT_DIR_ORIGINAL; in help()
44 exp->expectfn = nf_nat_follow_master; in help()
47 port = nf_nat_exp_find_port(exp, ntohs(exp->saved_proto.tcp.port)); in help()
49 nf_ct_helper_log(skb, exp->master, "all ports in use"); in help()
54 if (!nf_nat_mangle_udp_packet(skb, exp->master, ctinfo, in help()
57 nf_ct_helper_log(skb, exp->master, "cannot mangle packet"); in help()
58 nf_ct_unexpect_related(exp); in help()
A Dnf_conntrack_h323_main.c326 nf_ct_expect_put(exp); in expect_t120()
665 nf_ct_expect_put(exp); in expect_h245()
781 taddr, port, exp); in expect_callforwarding()
790 nf_ct_expect_put(exp); in expect_callforwarding()
1198 if (exp && exp->master == ct) in find_expect()
1199 return exp; in find_expect()
1255 nf_ct_expect_put(exp); in expect_q931()
1316 nf_ct_expect_put(exp); in process_gcf()
1394 if (exp) { in process_rcf()
1533 nf_ct_expect_put(exp); in process_acf()
[all …]
A Dnf_nat_irc.c37 struct nf_conntrack_expect *exp) in help() argument
40 struct nf_conn *ct = exp->master; in help()
47 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in help()
48 exp->dir = IP_CT_DIR_REPLY; in help()
49 exp->expectfn = nf_nat_follow_master; in help()
51 port = nf_nat_exp_find_port(exp, in help()
52 ntohs(exp->saved_proto.tcp.port)); in help()
79 nf_ct_unexpect_related(exp); in help()
A Dnf_nat_ftp.c69 struct nf_conntrack_expect *exp) in nf_nat_ftp() argument
74 struct nf_conn *ct = exp->master; in nf_nat_ftp()
82 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nf_nat_ftp()
83 exp->dir = !dir; in nf_nat_ftp()
87 exp->expectfn = nf_nat_follow_master; in nf_nat_ftp()
89 port = nf_nat_exp_find_port(exp, ntohs(exp->saved_proto.tcp.port)); in nf_nat_ftp()
91 nf_ct_helper_log(skb, exp->master, "all ports in use"); in nf_nat_ftp()
110 nf_ct_unexpect_related(exp); in nf_nat_ftp()
A Dnf_nat_tftp.c25 struct nf_conntrack_expect *exp) in help() argument
27 const struct nf_conn *ct = exp->master; in help()
29 exp->saved_proto.udp.port in help()
31 exp->dir = IP_CT_DIR_REPLY; in help()
32 exp->expectfn = nf_nat_follow_master; in help()
33 if (nf_ct_expect_related(exp, 0) != 0) { in help()
34 nf_ct_helper_log(skb, exp->master, "cannot add expectation"); in help()
A Dnf_conntrack_tftp.c37 struct nf_conntrack_expect *exp) __read_mostly;
47 struct nf_conntrack_expect *exp; in tftp_help() local
64 exp = nf_ct_expect_alloc(ct); in tftp_help()
65 if (exp == NULL) { in tftp_help()
70 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, in tftp_help()
76 nf_ct_dump_tuple(&exp->tuple); in tftp_help()
80 ret = nf_nat_tftp(skb, ctinfo, exp); in tftp_help()
81 else if (nf_ct_expect_related(exp, 0) != 0) { in tftp_help()
85 nf_ct_expect_put(exp); in tftp_help()
A Dnf_conntrack_netlink.c2917 if (IS_ERR(exp)) in ctnetlink_glue_attach_expect()
3045 if (ctnetlink_exp_dump_mask(skb, &exp->tuple, &exp->mask) < 0) in ctnetlink_exp_dump_expect()
3127 struct nf_conntrack_expect *exp = item->exp; in ctnetlink_expect_event() local
3179 id += exp->class; in ctnetlink_exp_id()
3356 if (!exp) in ctnetlink_get_expect()
3377 exp); in ctnetlink_get_expect()
3431 if (!exp) in ctnetlink_del_expect()
3546 if (!exp) in ctnetlink_alloc_expect()
3553 exp->flags = 0; in ctnetlink_alloc_expect()
3581 return exp; in ctnetlink_alloc_expect()
[all …]
A Dnf_nat_sip.c319 struct nf_conntrack_expect *exp) in nf_nat_sip_expected() argument
393 newaddr = exp->tuple.dst.u3; in nf_nat_sip_expect()
407 exp->saved_addr = exp->tuple.dst.u3; in nf_nat_sip_expect()
408 exp->tuple.dst.u3 = newaddr; in nf_nat_sip_expect()
409 exp->saved_proto.udp.port = exp->tuple.dst.u.udp.port; in nf_nat_sip_expect()
410 exp->dir = !dir; in nf_nat_sip_expect()
411 exp->expectfn = nf_nat_sip_expected; in nf_nat_sip_expect()
413 port = nf_nat_exp_find_port(exp, port); in nf_nat_sip_expect()
419 if (!nf_inet_addr_cmp(&exp->tuple.dst.u3, &exp->saved_addr) || in nf_nat_sip_expect()
420 exp->tuple.dst.u.udp.port != exp->saved_proto.udp.port) { in nf_nat_sip_expect()
[all …]
A Dnf_conntrack_amanda.c45 struct nf_conntrack_expect *exp)
94 struct nf_conntrack_expect *exp; in amanda_help() local
146 exp = nf_ct_expect_alloc(ct); in amanda_help()
147 if (exp == NULL) { in amanda_help()
153 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, in amanda_help()
161 off - dataoff, len, exp); in amanda_help()
162 else if (nf_ct_expect_related(exp, 0) != 0) { in amanda_help()
166 nf_ct_expect_put(exp); in amanda_help()
A Dnf_conntrack_sane.c69 struct nf_conntrack_expect *exp; in help() local
145 exp = nf_ct_expect_alloc(ct); in help()
146 if (exp == NULL) { in help()
152 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, nf_ct_l3num(ct), in help()
157 nf_ct_dump_tuple(&exp->tuple); in help()
160 if (nf_ct_expect_related(exp, 0) != 0) { in help()
165 nf_ct_expect_put(exp); in help()
A Dnf_conntrack_sip.c807 struct nf_conntrack_expect *exp; in refresh_signalling_expectation() local
838 if (!nf_ct_remove_expect(exp)) in flush_expectations()
926 if (!exp || exp->master == ct || in set_expected_rtp_rtcp()
928 exp->class != class) in set_expected_rtp_rtcp()
932 (!nf_inet_addr_cmp(&exp->saved_addr, &exp->tuple.dst.u3) || in set_expected_rtp_rtcp()
933 exp->saved_proto.udp.port != exp->tuple.dst.u.udp.port) && in set_expected_rtp_rtcp()
935 *daddr = exp->saved_addr; in set_expected_rtp_rtcp()
1283 exp = nf_ct_expect_alloc(ct); in process_register_request()
1284 if (!exp) { in process_register_request()
1300 exp->helper = helper; in process_register_request()
[all …]
A Dnf_nat_helper.c180 struct nf_conntrack_expect *exp) in nf_nat_follow_master() argument
190 = ct->master->tuplehash[!exp->dir].tuple.dst.u3; in nf_nat_follow_master()
195 range.min_proto = range.max_proto = exp->saved_proto; in nf_nat_follow_master()
197 = ct->master->tuplehash[!exp->dir].tuple.src.u3; in nf_nat_follow_master()
202 u16 nf_nat_exp_find_port(struct nf_conntrack_expect *exp, u16 port) in nf_nat_exp_find_port() argument
218 exp->tuple.dst.u.tcp.port = htons(port); in nf_nat_exp_find_port()
219 res = nf_ct_expect_related(exp, 0); in nf_nat_exp_find_port()
A Dnf_conntrack_irc.c38 struct nf_conntrack_expect *exp) __read_mostly;
117 struct nf_conntrack_expect *exp; in help() local
228 exp = nf_ct_expect_alloc(ct); in help()
229 if (exp == NULL) { in help()
237 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, in help()
247 exp); in help()
248 else if (nf_ct_expect_related(exp, 0) != 0) { in help()
253 nf_ct_expect_put(exp); in help()
A Dnf_conntrack_pptp.c90 struct nf_conntrack_expect *exp) in pptp_expectfn() argument
105 hook->expectfn(ct, exp); in pptp_expectfn()
111 nf_ct_invert_tuple(&inv_t, &exp->tuple); in pptp_expectfn()
132 struct nf_conntrack_expect *exp; in destroy_sibling_or_exp() local
149 exp = nf_ct_expect_find_get(net, zone, t); in destroy_sibling_or_exp()
150 if (exp) { in destroy_sibling_or_exp()
151 pr_debug("unexpect_related of expect %p\n", exp); in destroy_sibling_or_exp()
152 nf_ct_unexpect_related(exp); in destroy_sibling_or_exp()
153 nf_ct_expect_put(exp); in destroy_sibling_or_exp()
A Dnf_conntrack_ftp.c52 struct nf_conntrack_expect *exp);
383 struct nf_conntrack_expect *exp; in help() local
474 exp = nf_ct_expect_alloc(ct); in help()
475 if (exp == NULL) { in help()
515 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, cmd.l3num, in help()
524 protoff, matchoff, matchlen, exp); in help()
527 if (nf_ct_expect_related(exp, 0) != 0) { in help()
535 nf_ct_expect_put(exp); in help()
A Dnf_conntrack_ecache.c242 struct nf_conntrack_expect *exp, in nf_ct_expect_event_report() argument
246 struct net *net = nf_ct_exp_net(exp); in nf_ct_expect_event_report()
255 e = nf_ct_ecache_find(exp->master); in nf_ct_expect_event_report()
261 .exp = exp, in nf_ct_expect_event_report()
A Dnf_conntrack_core.c1770 struct nf_conntrack_expect *exp = NULL; in init_conntrack() local
1816 if (exp) { in init_conntrack()
1820 ct->master = exp->master; in init_conntrack()
1821 if (exp->helper) { in init_conntrack()
1828 ct->mark = READ_ONCE(exp->master->mark); in init_conntrack()
1831 ct->secmark = exp->master->secmark; in init_conntrack()
1837 if (!exp && tmpl) in init_conntrack()
1853 if (exp) { in init_conntrack()
1854 if (exp->expectfn) in init_conntrack()
1855 exp->expectfn(ct, exp); in init_conntrack()
[all …]
/net/ipv4/netfilter/
A Dnf_nat_h323.c290 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nat_t120()
292 exp->dir = !dir; in nat_t120()
309 &exp->tuple.src.u3.ip, in nat_t120()
311 &exp->tuple.dst.u3.ip, in nat_t120()
329 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nat_h245()
331 exp->dir = !dir; in nat_h245()
408 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nat_q931()
410 exp->dir = !dir; in nat_q931()
490 exp->saved_addr = exp->tuple.dst.u3; in nat_callforwarding()
492 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nat_callforwarding()
[all …]
A Dnf_nat_pptp.c44 struct nf_conntrack_expect *exp) in pptp_nat_expected() argument
63 if (exp->dir == IP_CT_DIR_ORIGINAL) { in pptp_nat_expected()
67 t.src.u3.ip = master->tuplehash[!exp->dir].tuple.src.u3.ip; in pptp_nat_expected()
69 t.dst.u3.ip = master->tuplehash[!exp->dir].tuple.dst.u3.ip; in pptp_nat_expected()
76 t.src.u3.ip = master->tuplehash[!exp->dir].tuple.src.u3.ip; in pptp_nat_expected()
100 = ct->master->tuplehash[!exp->dir].tuple.dst.u3; in pptp_nat_expected()
101 if (exp->dir == IP_CT_DIR_ORIGINAL) { in pptp_nat_expected()
103 range.min_proto = range.max_proto = exp->saved_proto; in pptp_nat_expected()
110 = ct->master->tuplehash[!exp->dir].tuple.src.u3; in pptp_nat_expected()
111 if (exp->dir == IP_CT_DIR_REPLY) { in pptp_nat_expected()
[all …]
/net/netfilter/ipvs/
A Dip_vs_nfct.c141 struct nf_conntrack_expect *exp) in ip_vs_nfct_expect_callback() argument
158 ip_vs_conn_fill_param(net_ipvs(net), exp->tuple.src.l3num, orig->dst.protonum, in ip_vs_nfct_expect_callback()
215 struct nf_conntrack_expect *exp; in ip_vs_nfct_expect_related() local
220 exp = nf_ct_expect_alloc(ct); in ip_vs_nfct_expect_related()
221 if (!exp) in ip_vs_nfct_expect_related()
224 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, nf_ct_l3num(ct), in ip_vs_nfct_expect_related()
230 exp->expectfn = ip_vs_nfct_expect_callback; in ip_vs_nfct_expect_related()
233 __func__, ct, ARG_TUPLE(&exp->tuple)); in ip_vs_nfct_expect_related()
234 nf_ct_expect_related(exp, 0); in ip_vs_nfct_expect_related()
235 nf_ct_expect_put(exp); in ip_vs_nfct_expect_related()
/net/core/
A Dnet_test.c280 #define IP_TUNNEL_FLAGS_TEST(n, src, comp, eval, exp) { \ argument
286 .exp_bits = (exp), \
287 .exp_num = ARRAY_SIZE(exp), \
356 IP_TUNNEL_DECLARE_FLAGS(exp) = { }; in ip_tunnel_flags_test_run()
362 __set_bit(t->exp_bits[j], exp); in ip_tunnel_flags_test_run()
370 KUNIT_ASSERT_TRUE(test, __ipt_flag_op(bitmap_equal, exp, out)); in ip_tunnel_flags_test_run()
/net/atm/
A Dclip.c141 unsigned long exp = cv->last_use + cv->idle_timeout; in neigh_check_cb() local
143 if (cv->idle_timeout && time_after(jiffies, exp)) { in neigh_check_cb()
771 unsigned long exp; in atmarp_info() local
781 exp = entry->neigh->used; in atmarp_info()
783 exp = clip_vcc->last_use; in atmarp_info()
785 exp = (jiffies - exp) / HZ; in atmarp_info()
788 dev->name, svc ? "SVC" : "PVC", llc ? "LLC" : "NULL", exp); in atmarp_info()
/net/ipv4/
A Dtcp_fastopen.c398 valid_foc.exp = foc->exp; in tcp_try_fastopen()
414 valid_foc.exp = foc->exp; in tcp_try_fastopen()

Completed in 52 milliseconds

12