Home
last modified time | relevance | path

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

/net/netfilter/
Dnf_conntrack_helper.c57 struct nf_conntrack_helper *helper; in __nf_ct_helper_find() local
65 hlist_for_each_entry_rcu(helper, &nf_ct_helper_hash[h], hnode) { in __nf_ct_helper_find()
66 if (nf_ct_tuple_src_mask_cmp(tuple, &helper->tuple, &mask)) in __nf_ct_helper_find()
67 return helper; in __nf_ct_helper_find()
127 void nf_conntrack_helper_put(struct nf_conntrack_helper *helper) in nf_conntrack_helper_put() argument
129 refcount_dec(&helper->refcnt); in nf_conntrack_helper_put()
130 module_put(helper->me); in nf_conntrack_helper_put()
186 void nf_nat_helper_put(struct nf_conntrack_helper *helper) in nf_nat_helper_put() argument
190 nat = nf_conntrack_nat_helper_find(helper->nat_mod_name); in nf_nat_helper_put()
235 struct nf_conntrack_helper *helper = NULL; in __nf_ct_try_assign_helper() local
[all …]
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()
103 if (help->helper->data_len == 0) in nfnl_cthelper_from_nlattr()
115 if (help->helper->data_len && in nfnl_cthelper_to_nlattr()
116 nla_put(skb, CTA_HELP_INFO, help->helper->data_len, &help->data)) in nfnl_cthelper_to_nlattr()
168 nfnl_cthelper_parse_expect_policy(struct nf_conntrack_helper *helper, in nfnl_cthelper_parse_expect_policy() argument
[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 help->helper = helper; in xt_ct_set_helper()
183 if (info->helper[0]) { in xt_ct_tg_check()
184 if (strnlen(info->helper, sizeof(info->helper)) == sizeof(info->helper)) { in xt_ct_tg_check()
189 ret = xt_ct_set_helper(ct, info->helper, par); in xt_ct_tg_check()
213 nf_conntrack_helper_put(help->helper); in xt_ct_tg_check()
236 memcpy(info_v1.helper, info->helper, sizeof(info->helper)); in xt_ct_tg_check_v0()
[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_expect.c312 exp->helper = NULL; in nf_ct_expect_init()
372 struct nf_conntrack_helper *helper; in nf_ct_expect_insert() local
380 helper = rcu_dereference_protected(master_help->helper, in nf_ct_expect_insert()
382 if (helper) { in nf_ct_expect_insert()
384 helper->expect_policy[exp->class].timeout * HZ; in nf_ct_expect_insert()
420 struct nf_conntrack_helper *helper; in __nf_ct_expect_check() local
446 helper = rcu_dereference_protected(master_help->helper, in __nf_ct_expect_check()
448 if (helper) { in __nf_ct_expect_check()
449 p = &helper->expect_policy[expect->class]; in __nf_ct_expect_check()
609 struct nf_conntrack_helper *helper; in exp_seq_show() local
[all …]
Dnf_conntrack_netlink.c209 struct nf_conntrack_helper *helper; in ctnetlink_dump_helpinfo() local
215 helper = rcu_dereference(help->helper); in ctnetlink_dump_helpinfo()
216 if (!helper) in ctnetlink_dump_helpinfo()
222 if (nla_put_string(skb, CTA_HELP_NAME, helper->name)) in ctnetlink_dump_helpinfo()
225 if (helper->to_nlattr) in ctnetlink_dump_helpinfo()
226 helper->to_nlattr(skb, ct); in ctnetlink_dump_helpinfo()
1609 struct nf_conntrack_helper *helper; in ctnetlink_change_helper() local
1628 helper = rcu_dereference(help->helper); in ctnetlink_change_helper()
1629 if (helper && !strcmp(helper->name, helpname)) in ctnetlink_change_helper()
1638 if (help && help->helper) { in ctnetlink_change_helper()
[all …]
Dnf_conntrack_netbios_ns.c46 static struct nf_conntrack_helper helper __read_mostly = {
61 return nf_conntrack_helper_register(&helper); in nf_conntrack_netbios_ns_init()
66 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.c68 const struct nf_conntrack_helper *helper; in nft_ct_get_eval() local
116 helper = rcu_dereference(help->helper); in nft_ct_get_eval()
117 if (helper == NULL) in nft_ct_get_eval()
119 strncpy((char *)dest, helper->name, NF_CT_HELPER_NAME_LEN); in nft_ct_get_eval()
1096 rcu_assign_pointer(help->helper, to_assign); in nft_ct_helper_obj_eval()
1105 const struct nf_conntrack_helper *helper; in nft_ct_helper_obj_dump() local
1110 helper = priv->helper4; in nft_ct_helper_obj_dump()
1113 helper = priv->helper6; in nft_ct_helper_obj_dump()
1116 helper = priv->helper4; in nft_ct_helper_obj_dump()
1119 if (nla_put_string(skb, NFTA_CT_HELPER_NAME, helper->name)) in nft_ct_helper_obj_dump()
Dnf_conntrack_broadcast.c61 exp->tuple.src.u.udp.port = help->helper->tuple.src.u.udp.port; in nf_conntrack_broadcast_help()
69 exp->helper = NULL; in nf_conntrack_broadcast_help()
Dnf_conntrack_proto.c131 const struct nf_conntrack_helper *helper; in nf_confirm() local
135 helper = rcu_dereference(help->helper); in nf_confirm()
136 if (helper) { in nf_confirm()
137 ret = helper->help(skb, in nf_confirm()
Dnf_conntrack_core.c1031 if (help && help->helper) in __nf_conntrack_confirm()
1470 if (exp->helper) { in init_conntrack()
1473 rcu_assign_pointer(help->helper, exp->helper); in init_conntrack()
1941 const struct nf_conntrack_helper *helper; in nf_confirm_cthelper() local
1949 helper = rcu_dereference(help->helper); in nf_confirm_cthelper()
1950 if (!helper) in nf_confirm_cthelper()
1953 if (!(helper->flags & NF_CT_HELPER_F_USERSPACE)) in nf_confirm_cthelper()
Dnf_conntrack_h323_main.c692 exp->helper = &nf_conntrack_helper_h245; in expect_h245()
815 exp->helper = nf_conntrack_helper_q931; in expect_callforwarding()
1278 exp->helper = nf_conntrack_helper_q931; in expect_q931()
1350 exp->helper = nf_conntrack_helper_ras; in process_gcf()
1562 exp->helper = nf_conntrack_helper_q931; in process_acf()
1616 exp->helper = nf_conntrack_helper_q931; in process_lcf()
Dnf_conntrack_sip.c927 nfct_help(exp->master)->helper != nfct_help(ct)->helper || in set_expected_rtp_rtcp()
1295 exp->helper = nfct_help(ct)->helper; in process_register_request()
DKconfig274 tracking doesn't deal with broadcasts. This helper tracks locally
294 tracking doesn't deal with broadcasts. This helper tracks locally
349 TFTP connection tracking helper, this is required depending
835 the helper to be used.
1309 tristate '"helper" match support'
1314 tracked by a conntrack-helper, ie. nf_conntrack_ftp
/net/openvswitch/
Dconntrack.c58 struct nf_conntrack_helper *helper; member
436 const struct nf_conntrack_helper *helper; in ovs_ct_helper() local
451 helper = rcu_dereference(help->helper); in ovs_ct_helper()
452 if (!helper) in ovs_ct_helper()
478 err = helper->help(skb, protoff, ct, ctinfo); in ovs_ct_helper()
701 if (info->helper) { in skb_nfct_cached()
705 if (help && rcu_access_pointer(help->helper) != info->helper) in skb_nfct_cached()
1013 info->helper && !nfct_help(ct)) { in __ovs_ct_lookup()
1332 struct nf_conntrack_helper *helper; in ovs_ct_add_helper() local
1336 helper = nf_conntrack_helper_try_module_get(name, info->family, in ovs_ct_add_helper()
[all …]
/net/bpfilter/
DKconfig11 tristate "bpfilter kernel module with user mode helper"
15 This builds bpfilter kernel module with embedded user mode helper
/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/
DKconfig308 comment 'IPVS application helper'
311 tristate "FTP protocol helper"
319 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.