Home
last modified time | relevance | path

Searched refs:zone (Results 1 – 14 of 14) sorted by relevance

/net/sched/
Dact_connmark.c40 struct nf_conntrack_zone zone; in tcf_connmark() local
74 zone.id = ca->zone; in tcf_connmark()
75 zone.dir = NF_CT_DEFAULT_ZONE_DIR; in tcf_connmark()
77 thash = nf_conntrack_find_get(ca->net, &zone, &tuple); in tcf_connmark()
126 ci->zone = parm->zone; in tcf_connmark_init()
139 ci->zone = parm->zone; in tcf_connmark_init()
156 .zone = ci->zone, in tcf_connmark_dump()
/net/openvswitch/
Dconntrack.c48 struct nf_conntrack_zone zone; member
133 const struct nf_conntrack_zone *zone, in __ovs_ct_update_key() argument
137 key->ct.zone = zone->id; in __ovs_ct_update_key()
149 const struct nf_conntrack_zone *zone = &nf_ct_zone_dflt; in ovs_ct_update_key() local
161 zone = nf_ct_zone(ct); in ovs_ct_update_key()
165 zone = &info->zone; in ovs_ct_update_key()
167 __ovs_ct_update_key(key, state, zone, ct); in ovs_ct_update_key()
181 nla_put_u16(skb, OVS_KEY_ATTR_CT_ZONE, key->ct.zone)) in ovs_ct_put_key()
305 u16 zone, struct sk_buff *skb) in handle_fragments() argument
310 enum ip_defrag_users user = IP_DEFRAG_CONNTRACK_IN + zone; in handle_fragments()
[all …]
Dconntrack.h78 key->ct.zone = 0; in ovs_ct_fill_key()
Dflow.h117 u16 zone; member
Dflow_netlink.c881 SW_FLOW_KEY_PUT(match, ct.zone, ct_zone, is_mask); in metadata_from_nlattrs()
/net/netfilter/
Dxt_CT.c205 struct nf_conntrack_zone zone; in xt_ct_tg_check() local
216 if (info->zone || info->flags & (XT_CT_ZONE_DIR_ORIG | in xt_ct_tg_check()
226 memset(&zone, 0, sizeof(zone)); in xt_ct_tg_check()
227 zone.id = info->zone; in xt_ct_tg_check()
228 zone.dir = xt_ct_flags_to_dir(info); in xt_ct_tg_check()
230 zone.flags |= NF_CT_FLAG_MARK; in xt_ct_tg_check()
232 ct = nf_ct_tmpl_alloc(par->net, &zone, GFP_KERNEL); in xt_ct_tg_check()
280 .zone = info->zone, in xt_ct_tg_check_v0()
363 .zone = info->zone, in xt_ct_tg_destroy_v0()
Dnf_conntrack_netlink.c135 const struct nf_conntrack_zone *zone, int dir) in ctnetlink_dump_zone_id() argument
137 if (zone->id == NF_CT_DEFAULT_ZONE_ID || zone->dir != dir) in ctnetlink_dump_zone_id()
139 if (nla_put_be16(skb, attrtype, htons(zone->id))) in ctnetlink_dump_zone_id()
480 const struct nf_conntrack_zone *zone; in ctnetlink_fill_info() local
496 zone = nf_ct_zone(ct); in ctnetlink_fill_info()
503 if (ctnetlink_dump_zone_id(skb, CTA_TUPLE_ZONE, zone, in ctnetlink_fill_info()
513 if (ctnetlink_dump_zone_id(skb, CTA_TUPLE_ZONE, zone, in ctnetlink_fill_info()
518 if (ctnetlink_dump_zone_id(skb, CTA_ZONE, zone, in ctnetlink_fill_info()
640 const struct nf_conntrack_zone *zone; in ctnetlink_conntrack_event() local
687 zone = nf_ct_zone(ct); in ctnetlink_conntrack_event()
[all …]
Dnf_conntrack_core.c329 const struct nf_conntrack_zone *zone, in nf_ct_tmpl_alloc() argument
341 if (nf_ct_zone_add(tmpl, flags, zone) < 0) in nf_ct_tmpl_alloc()
465 const struct nf_conntrack_zone *zone) in nf_ct_key_equal() argument
473 nf_ct_zone_equal(ct, zone, NF_CT_DIRECTION(h)) && in nf_ct_key_equal()
483 ____nf_conntrack_find(struct net *net, const struct nf_conntrack_zone *zone, in ____nf_conntrack_find() argument
496 if (nf_ct_key_equal(h, tuple, zone)) { in ____nf_conntrack_find()
519 __nf_conntrack_find_get(struct net *net, const struct nf_conntrack_zone *zone, in __nf_conntrack_find_get() argument
527 h = ____nf_conntrack_find(net, zone, tuple, hash); in __nf_conntrack_find_get()
534 if (unlikely(!nf_ct_key_equal(h, tuple, zone))) { in __nf_conntrack_find_get()
546 nf_conntrack_find_get(struct net *net, const struct nf_conntrack_zone *zone, in nf_conntrack_find_get() argument
[all …]
Dxt_connlimit.c137 const struct nf_conntrack_zone *zone, in check_hlist() argument
151 found = nf_conntrack_find_get(net, zone, &conn->tuple); in check_hlist()
204 u8 family, const struct nf_conntrack_zone *zone) in count_tree() argument
232 count = check_hlist(net, &rbconn->hhead, tuple, zone, &addit); in count_tree()
248 check_hlist(net, &rbconn->hhead, tuple, zone, &addit); in count_tree()
294 const struct nf_conntrack_zone *zone) in count_them() argument
310 count = count_tree(net, root, tuple, addr, mask, family, zone); in count_them()
325 const struct nf_conntrack_zone *zone = &nf_ct_zone_dflt; in connlimit_mt() local
333 zone = nf_ct_zone(ct); in connlimit_mt()
350 &info->mask, par->family, zone); in connlimit_mt()
Dnf_conntrack_standalone.c147 const struct nf_conntrack_zone *zone = nf_ct_zone(ct); in ct_show_zone() local
149 if (zone->dir != dir) in ct_show_zone()
151 switch (zone->dir) { in ct_show_zone()
153 seq_printf(s, "zone=%u ", zone->id); in ct_show_zone()
156 seq_printf(s, "zone-orig=%u ", zone->id); in ct_show_zone()
159 seq_printf(s, "zone-reply=%u ", zone->id); in ct_show_zone()
Dnf_nat_core.c188 const struct nf_conntrack_zone *zone, in find_appropriate_src() argument
202 nf_ct_zone_equal(ct, zone, IP_CT_DIR_ORIGINAL)) { in find_appropriate_src()
222 find_best_ips_proto(const struct nf_conntrack_zone *zone, in find_best_ips_proto() argument
263 0 : (__force u32)tuple->dst.u3.all[max] ^ zone->id); in find_best_ips_proto()
302 const struct nf_conntrack_zone *zone; in get_unique_tuple() local
307 zone = nf_ct_zone(ct); in get_unique_tuple()
330 } else if (find_appropriate_src(net, zone, l3proto, l4proto, in get_unique_tuple()
340 find_best_ips_proto(zone, tuple, range, ct, maniptype); in get_unique_tuple()
Dnf_conntrack_expect.c92 const struct nf_conntrack_zone *zone, in __nf_ct_expect_find() argument
104 nf_ct_zone_equal_any(i->master, zone)) in __nf_ct_expect_find()
114 const struct nf_conntrack_zone *zone, in nf_ct_expect_find_get() argument
120 i = __nf_ct_expect_find(net, zone, tuple); in nf_ct_expect_find_get()
133 const struct nf_conntrack_zone *zone, in nf_ct_find_expectation() argument
146 nf_ct_zone_equal_any(i->master, zone)) { in nf_ct_find_expectation()
Dnf_conntrack_pptp.c154 const struct nf_conntrack_zone *zone; in destroy_sibling_or_exp() local
161 zone = nf_ct_zone(ct); in destroy_sibling_or_exp()
162 h = nf_conntrack_find_get(net, zone, t); in destroy_sibling_or_exp()
173 exp = nf_ct_expect_find_get(net, zone, t); in destroy_sibling_or_exp()
/net/ipv4/netfilter/
Dnf_conntrack_proto_icmp.c137 const struct nf_conntrack_zone *zone; in icmp_error_message() local
141 zone = nf_ct_zone_tmpl(tmpl, skb, &tmp); in icmp_error_message()
165 h = nf_conntrack_find_get(net, zone, &innertuple); in icmp_error_message()