Home
last modified time | relevance | path

Searched refs:helper (Results 1 – 23 of 23) sorted by relevance

/net/netfilter/
Dnfnetlink_cthelper.c35 struct nf_conntrack_helper helper; member
45 struct nf_conntrack_helper *helper; in nfnl_userspace_cthelper() local
52 helper = rcu_dereference(help->helper); in nfnl_userspace_cthelper()
53 if (helper == NULL) in nfnl_userspace_cthelper()
57 if ((helper->flags & in nfnl_userspace_cthelper()
63 return NF_QUEUE_NR(helper->queue_num) | NF_VERDICT_FLAG_QUEUE_BYPASS; in nfnl_userspace_cthelper()
99 const struct nf_conntrack_helper *helper; in nfnl_cthelper_from_nlattr() local
104 helper = rcu_dereference(help->helper); in nfnl_cthelper_from_nlattr()
105 if (!helper || helper->data_len == 0) in nfnl_cthelper_from_nlattr()
116 const struct nf_conntrack_helper *helper; in nfnl_cthelper_to_nlattr() local
[all …]
Dnf_conntrack_helper.c106 void nf_conntrack_helper_put(struct nf_conntrack_helper *helper) in nf_conntrack_helper_put() argument
108 refcount_dec(&helper->refcnt); in nf_conntrack_helper_put()
109 module_put(helper->me); in nf_conntrack_helper_put()
165 void nf_nat_helper_put(struct nf_conntrack_helper *helper) in nf_nat_helper_put() argument
169 nat = nf_conntrack_nat_helper_find(helper->nat_mod_name); in nf_nat_helper_put()
194 struct nf_conntrack_helper *helper = NULL; in __nf_ct_try_assign_helper() local
211 helper = rcu_dereference(help->helper); in __nf_ct_try_assign_helper()
217 if (helper == NULL) { in __nf_ct_try_assign_helper()
219 RCU_INIT_POINTER(help->helper, NULL); in __nf_ct_try_assign_helper()
231 struct nf_conntrack_helper *tmp = rcu_dereference(help->helper); in __nf_ct_try_assign_helper()
[all …]
Dnf_conntrack_ovs.c15 const struct nf_conntrack_helper *helper; in nf_ct_helper() local
27 helper = rcu_dereference(help->helper); in nf_ct_helper()
28 if (!helper) in nf_ct_helper()
31 if (helper->tuple.src.l3num != NFPROTO_UNSPEC && in nf_ct_helper()
32 helper->tuple.src.l3num != proto) in nf_ct_helper()
60 if (helper->tuple.dst.protonum != proto) in nf_ct_helper()
63 err = helper->help(skb, protoff, ct, ctinfo); in nf_ct_helper()
81 struct nf_conntrack_helper *helper; in nf_ct_add_helper() local
85 helper = nf_conntrack_helper_try_module_get(name, family, proto); in nf_ct_add_helper()
86 if (!helper) in nf_ct_add_helper()
[all …]
Dxt_CT.c76 struct nf_conntrack_helper *helper; in xt_ct_set_helper() local
86 helper = nf_conntrack_helper_try_module_get(helper_name, par->family, in xt_ct_set_helper()
88 if (helper == NULL) { in xt_ct_set_helper()
95 nf_conntrack_helper_put(helper); in xt_ct_set_helper()
99 rcu_assign_pointer(help->helper, helper); in xt_ct_set_helper()
141 struct nf_conntrack_helper *helper; in xt_ct_put_helper() local
149 helper = rcu_dereference_raw(help->helper); in xt_ct_put_helper()
150 if (helper) in xt_ct_put_helper()
151 nf_conntrack_helper_put(helper); in xt_ct_put_helper()
197 if (info->helper[0]) { in xt_ct_tg_check()
[all …]
Dxt_helper.c29 const struct nf_conntrack_helper *helper; in helper_mt() local
42 helper = rcu_dereference(master_help->helper); in helper_mt()
43 if (!helper) in helper_mt()
49 ret ^= !strncmp(helper->name, info->name, in helper_mt()
50 strlen(helper->name)); in helper_mt()
Dnf_conntrack_broadcast.c23 const struct nf_conntrack_helper *helper; in nf_conntrack_broadcast_help() local
63 helper = rcu_dereference(help->helper); in nf_conntrack_broadcast_help()
64 if (helper) in nf_conntrack_broadcast_help()
65 exp->tuple.src.u.udp.port = helper->tuple.src.u.udp.port; in nf_conntrack_broadcast_help()
73 exp->helper = NULL; in nf_conntrack_broadcast_help()
Dnf_conntrack_expect.c328 exp->helper = NULL; in nf_ct_expect_init()
389 struct nf_conntrack_helper *helper; in nf_ct_expect_insert() local
397 helper = rcu_dereference_protected(master_help->helper, in nf_ct_expect_insert()
399 if (helper) { in nf_ct_expect_insert()
401 helper->expect_policy[exp->class].timeout * HZ; in nf_ct_expect_insert()
439 struct nf_conntrack_helper *helper; in __nf_ct_expect_check() local
465 helper = rcu_dereference_protected(master_help->helper, in __nf_ct_expect_check()
467 if (helper) { in __nf_ct_expect_check()
468 p = &helper->expect_policy[expect->class]; in __nf_ct_expect_check()
629 struct nf_conntrack_helper *helper; in exp_seq_show() local
[all …]
Dnf_conntrack_netlink.c227 struct nf_conntrack_helper *helper; in ctnetlink_dump_helpinfo() local
233 helper = rcu_dereference(help->helper); in ctnetlink_dump_helpinfo()
234 if (!helper) in ctnetlink_dump_helpinfo()
240 if (nla_put_string(skb, CTA_HELP_NAME, helper->name)) in ctnetlink_dump_helpinfo()
243 if (helper->to_nlattr) in ctnetlink_dump_helpinfo()
244 helper->to_nlattr(skb, ct); in ctnetlink_dump_helpinfo()
1924 struct nf_conntrack_helper *helper; in ctnetlink_change_helper() local
1943 helper = rcu_dereference(help->helper); in ctnetlink_change_helper()
1944 if (helper && !strcmp(helper->name, helpname)) in ctnetlink_change_helper()
1953 if (help && help->helper) { in ctnetlink_change_helper()
[all …]
Dnf_conntrack_netbios_ns.c47 static struct nf_conntrack_helper helper __read_mostly = {
62 return nf_conntrack_helper_register(&helper); in nf_conntrack_netbios_ns_init()
67 nf_conntrack_helper_unregister(&helper); in nf_conntrack_netbios_ns_fini()
Dnf_conntrack_snmp.c53 static struct nf_conntrack_helper helper __read_mostly = {
66 return nf_conntrack_helper_register(&helper); in nf_conntrack_snmp_init()
71 nf_conntrack_helper_unregister(&helper); in nf_conntrack_snmp_fini()
Dnft_ct.c60 const struct nf_conntrack_helper *helper; in nft_ct_get_eval() local
108 helper = rcu_dereference(help->helper); in nft_ct_get_eval()
109 if (helper == NULL) in nft_ct_get_eval()
111 strscpy_pad((char *)dest, helper->name, NF_CT_HELPER_NAME_LEN); in nft_ct_get_eval()
1172 rcu_assign_pointer(help->helper, to_assign); in nft_ct_helper_obj_eval()
1181 const struct nf_conntrack_helper *helper; in nft_ct_helper_obj_dump() local
1186 helper = priv->helper4; in nft_ct_helper_obj_dump()
1189 helper = priv->helper6; in nft_ct_helper_obj_dump()
1192 helper = priv->helper4; in nft_ct_helper_obj_dump()
1195 if (nla_put_string(skb, NFTA_CT_HELPER_NAME, helper->name)) in nft_ct_helper_obj_dump()
Dnf_conntrack_proto.c178 const struct nf_conntrack_helper *helper; in nf_confirm() local
182 helper = rcu_dereference(help->helper); in nf_confirm()
183 if (helper) { in nf_confirm()
184 ret = helper->help(skb, in nf_confirm()
Dnf_conntrack_sip.c927 nfct_help(exp->master)->helper != nfct_help(ct)->helper || in set_expected_rtp_rtcp()
1232 struct nf_conntrack_helper *helper; in process_register_request() local
1293 helper = rcu_dereference(nfct_help(ct)->helper); in process_register_request()
1294 if (!helper) in process_register_request()
1300 exp->helper = helper; in process_register_request()
Dnf_conntrack_core.c1274 if (help && help->helper) in __nf_conntrack_confirm()
1765 if (exp->helper) { in init_conntrack()
1768 rcu_assign_pointer(help->helper, exp->helper); in init_conntrack()
2248 const struct nf_conntrack_helper *helper; in nf_confirm_cthelper() local
2256 helper = rcu_dereference(help->helper); in nf_confirm_cthelper()
2257 if (!helper) in nf_confirm_cthelper()
2260 if (!(helper->flags & NF_CT_HELPER_F_USERSPACE)) in nf_confirm_cthelper()
Dnf_conntrack_h323_main.c645 exp->helper = &nf_conntrack_helper_h245; in expect_h245()
769 exp->helper = nf_conntrack_helper_q931; in expect_callforwarding()
1236 exp->helper = nf_conntrack_helper_q931; in expect_q931()
1308 exp->helper = nf_conntrack_helper_ras; in process_gcf()
1525 exp->helper = nf_conntrack_helper_q931; in process_acf()
1579 exp->helper = nf_conntrack_helper_q931; in process_lcf()
DKconfig305 tracking doesn't deal with broadcasts. This helper tracks locally
325 tracking doesn't deal with broadcasts. This helper tracks locally
380 TFTP connection tracking helper, this is required depending
877 the helper to be used.
1350 tristate '"helper" match support'
1355 tracked by a conntrack-helper, ie. nf_conntrack_ftp
/net/openvswitch/
Dconntrack.c62 struct nf_conntrack_helper *helper; member
583 if (info->helper) { in skb_nfct_cached()
587 if (help && rcu_access_pointer(help->helper) != info->helper) in skb_nfct_cached()
777 info->helper && !nfct_help(ct)) { in __ovs_ct_lookup()
1212 const char **helper, bool log) in parse_ct() argument
1275 *helper = nla_data(a); in parse_ct()
1276 if (!string_is_terminated(*helper, nla_len(a))) { in parse_ct()
1358 const char *helper = NULL; in ovs_ct_copy_action() local
1374 err = parse_ct(attr, &ct_info, &helper, log); in ovs_ct_copy_action()
1397 if (helper) { in ovs_ct_copy_action()
[all …]
/net/bpfilter/
DKconfig12 tristate "bpfilter kernel module with user mode helper"
17 This builds bpfilter kernel module with embedded user mode helper
/net/sched/
Dact_ct.c762 if (p->helper) { in tcf_ct_skb_nfct_cached()
766 if (help && rcu_access_pointer(help->helper) != p->helper) in tcf_ct_skb_nfct_cached()
874 if (params->helper) { in tcf_ct_params_free()
877 nf_nat_helper_put(params->helper); in tcf_ct_params_free()
879 nf_conntrack_helper_put(params->helper); in tcf_ct_params_free()
1050 if (!nf_ct_is_confirmed(ct) && commit && p->helper && !nfct_help(ct)) { in tcf_ct_act()
1294 p->ct_action & TCA_CT_ACT_NAT, &p->helper); in tcf_ct_fill_params()
1476 static int tcf_ct_dump_helper(struct sk_buff *skb, struct nf_conntrack_helper *helper) in tcf_ct_dump_helper() argument
1478 if (!helper) in tcf_ct_dump_helper()
1481 if (nla_put_string(skb, TCA_CT_HELPER_NAME, helper->name) || in tcf_ct_dump_helper()
[all …]
/net/mpls/
DKconfig22 This is helper module to allow segmentation of non-MPLS GSO packets
/net/dns_resolver/
DKconfig20 helper "/sbin/dns.resolver" via /etc/request-key.conf.
/net/netfilter/ipvs/
DKconfig319 comment 'IPVS application helper'
322 tristate "FTP protocol helper"
330 clients in ftp connections directly, so FTP protocol helper is
/net/ipv4/
DKconfig183 This is helper module to demultiplex GRE packets on GRE version field criteria.