Home
last modified time | relevance | path

Searched refs:l3num (Results 1 – 25 of 36) sorted by relevance

12

/Linux-v5.15/net/netfilter/
Dnf_conntrack_helper.c50 return (((tuple->src.l3num << 8) | tuple->dst.protonum) ^ in helper_hash()
73 __nf_conntrack_helper_find(const char *name, u16 l3num, u8 protonum) in __nf_conntrack_helper_find() argument
83 if (h->tuple.src.l3num != NFPROTO_UNSPEC && in __nf_conntrack_helper_find()
84 h->tuple.src.l3num != l3num) in __nf_conntrack_helper_find()
96 nf_conntrack_helper_try_module_get(const char *name, u16 l3num, u8 protonum) in nf_conntrack_helper_try_module_get() argument
102 h = __nf_conntrack_helper_find(name, l3num, protonum); in nf_conntrack_helper_try_module_get()
108 h = __nf_conntrack_helper_find(name, l3num, protonum); in nf_conntrack_helper_try_module_get()
150 nf_nat_helper_try_module_get(const char *name, u16 l3num, u8 protonum) in nf_nat_helper_try_module_get() argument
158 h = __nf_conntrack_helper_find(name, l3num, protonum); in nf_nat_helper_try_module_get()
415 (cur->tuple.src.l3num == NFPROTO_UNSPEC || in nf_conntrack_helper_register()
[all …]
Dnf_conntrack_timeout.c59 u8 l3num, u8 l4num, const char *timeout_name) in nf_ct_set_timeout() argument
83 if (timeout->l3num != l3num) { in nf_ct_set_timeout()
87 timeout_name, 3, timeout->l3num); in nf_ct_set_timeout()
Dnfnetlink_cttimeout.c91 __u16 l3num; in cttimeout_new_timeout() local
105 l3num = ntohs(nla_get_be16(cda[CTA_TIMEOUT_L3PROTO])); in cttimeout_new_timeout()
124 if (matching->timeout.l3num != l3num || in cttimeout_new_timeout()
158 timeout->timeout.l3num = l3num; in cttimeout_new_timeout()
188 htons(timeout->timeout.l3num)) || in ctnl_timeout_fill_info()
382 u32 seq, u32 type, int event, u16 l3num, in cttimeout_default_fill_info() argument
397 if (nla_put_be16(skb, CTA_TIMEOUT_L3PROTO, htons(l3num)) || in cttimeout_default_fill_info()
427 __u16 l3num; in cttimeout_default_get() local
434 l3num = ntohs(nla_get_be16(cda[CTA_TIMEOUT_L3PROTO])); in cttimeout_default_get()
490 l3num, l4proto, timeouts); in cttimeout_default_get()
Dnft_ct.c871 int l3num = ctx->family; in nft_ct_timeout_obj_init() local
880 l3num = ntohs(nla_get_be16(tb[NFTA_CT_TIMEOUT_L3PROTO])); in nft_ct_timeout_obj_init()
904 timeout->l3num = l3num; in nft_ct_timeout_obj_init()
940 nla_put_be16(skb, NFTA_CT_TIMEOUT_L3PROTO, htons(timeout->l3num))) in nft_ct_timeout_obj_dump()
1162 u16 l3num; member
1181 priv->l3num = ctx->family; in nft_ct_expect_obj_init()
1183 priv->l3num = ntohs(nla_get_be16(tb[NFTA_CT_EXPECT_L3PROTO])); in nft_ct_expect_obj_init()
1204 if (nla_put_be16(skb, NFTA_CT_EXPECT_L3PROTO, htons(priv->l3num)) || in nft_ct_expect_obj_dump()
1223 u16 l3num = priv->l3num; in nft_ct_expect_obj_eval() local
1245 if (l3num == NFPROTO_INET) in nft_ct_expect_obj_eval()
[all …]
Dnfnetlink_cthelper.c89 tuple->src.l3num = ntohs(nla_get_be16(tb[NFCTH_TUPLE_L3PROTONUM])); in nfnl_cthelper_parse_tuple()
442 if ((tuple.src.l3num != cur->tuple.src.l3num || in nfnl_cthelper_new()
472 htons(helper->tuple.src.l3num))) in nfnl_cthelper_dump_tuple()
651 (tuple.src.l3num != cur->tuple.src.l3num || in nfnl_cthelper_get()
711 (tuple.src.l3num != cur->tuple.src.l3num || in nfnl_cthelper_del()
Dnf_conntrack_ftp.c243 if ((cmd->l3num == PF_INET && data[1] != '1') || in try_eprt()
244 (cmd->l3num == PF_INET6 && data[1] != '2')) { in try_eprt()
445 cmd.l3num = nf_ct_l3num(ct); in help()
491 if ((cmd.l3num == nf_ct_l3num(ct)) && in help()
498 if (cmd.l3num == PF_INET) { in help()
519 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, cmd.l3num, in help()
Dxt_HMARK.c49 hmark_addr_mask(int l3num, const __be32 *addr32, const __be32 *mask) in hmark_addr_mask() argument
51 switch (l3num) { in hmark_addr_mask()
92 t->src = hmark_addr_mask(otuple->src.l3num, otuple->src.u3.ip6, in hmark_ct_set_htuple()
94 t->dst = hmark_addr_mask(otuple->src.l3num, rtuple->src.u3.ip6, in hmark_ct_set_htuple()
Dnf_conntrack_expect.c88 u8 l3num; in nf_ct_expect_dst_hash() member
100 combined.l3num = tuple->src.l3num; in nf_ct_expect_dst_hash()
329 exp->tuple.src.l3num = family; in nf_ct_expect_init()
641 expect->tuple.src.l3num, in exp_seq_show()
Dnf_conntrack_amanda.c183 .tuple.src.l3num = AF_INET,
193 .tuple.src.l3num = AF_INET6,
Dnf_conntrack_netbios_ns.c48 .tuple.src.l3num = NFPROTO_IPV4,
Dnf_conntrack_core.c264 u_int16_t l3num, in nf_ct_get_tuple() argument
275 tuple->src.l3num = l3num; in nf_ct_get_tuple()
276 switch (l3num) { in nf_ct_get_tuple()
293 switch (l3num) { in nf_ct_get_tuple()
416 u_int16_t l3num, in nf_ct_get_tuplepr() argument
422 protoff = get_l4proto(skb, nhoff, l3num, &protonum); in nf_ct_get_tuplepr()
426 return nf_ct_get_tuple(skb, nhoff, protoff, l3num, protonum, net, tuple); in nf_ct_get_tuplepr()
436 inverse->src.l3num = orig->src.l3num; in nf_ct_invert_tuple()
438 switch (orig->src.l3num) { in nf_ct_invert_tuple()
2092 u16 l3num; in __nf_conntrack_update() local
[all …]
Dnf_conntrack_snmp.c55 .tuple.src.l3num = NFPROTO_IPV4,
Dnf_conntrack_proto_gre.c61 return km->tuple.src.l3num == t->src.l3num && in gre_key_cmpfn()
Dnf_conntrack_netlink.c113 switch (tuple->src.l3num) { in ctnetlink_dump_tuples_ip()
909 u32 type, u_int8_t l3num,
1317 switch (tuple->src.l3num) { in ctnetlink_parse_tuple_ip()
1426 u_int8_t l3num, struct nf_conntrack_zone *zone, in ctnetlink_parse_tuple_filter() argument
1439 if (l3num != NFPROTO_IPV4 && l3num != NFPROTO_IPV6) in ctnetlink_parse_tuple_filter()
1441 tuple->src.l3num = l3num; in ctnetlink_parse_tuple_filter()
1487 u_int8_t l3num, struct nf_conntrack_zone *zone) in ctnetlink_parse_tuple() argument
1489 return ctnetlink_parse_tuple_filter(cda, tuple, type, l3num, zone, in ctnetlink_parse_tuple()
2970 m.src.l3num = tuple->src.l3num; in ctnetlink_exp_dump_mask()
3052 nat_tuple.src.l3num = nf_ct_l3num(master); in ctnetlink_exp_dump_expect()
[all …]
Dnf_conntrack_irc.c209 tuple->src.l3num, in help()
Dnf_conntrack_proto.c252 tuple.src.l3num = PF_INET; in getorigdst()
307 struct nf_conntrack_tuple tuple = { .src.l3num = NFPROTO_IPV6 }; in ipv6_getorigdst()
Dnf_flow_table_core.c29 switch (ctt->src.l3num) { in flow_offload_fill_dir()
40 ft->l3proto = ctt->src.l3num; in flow_offload_fill_dir()
/Linux-v5.15/include/net/netfilter/
Dnf_conntrack_tuple.h33 u_int16_t l3num; member
104 switch (t->src.l3num) { in nf_ct_dump_tuple()
129 t1->src.l3num == t2->src.l3num); in __nf_ct_tuple_src_equal()
171 if (t1->src.l3num != t2->src.l3num || in nf_ct_tuple_src_mask_cmp()
Dnf_conntrack_helper.h87 u16 l3num, u8 protonum);
90 u16 l3num,
95 u16 l3num, u16 protonum, const char *name,
177 int nf_nat_helper_try_module_get(const char *name, u16 l3num,
Dnf_conntrack_timeout.h15 __u16 l3num; member
95 int nf_ct_set_timeout(struct net *net, struct nf_conn *ct, u8 l3num, u8 l4num,
110 u8 l3num, u8 l4num, in nf_ct_set_timeout() argument
Dnf_conntrack.h133 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.l3num; in nf_ct_l3num()
197 u_int16_t l3num, struct net *net,
Dnf_tables_offload.h30 __be16 l3num; member
/Linux-v5.15/net/netfilter/ipvs/
Dip_vs_nfct.c55 #define ARG_TUPLE(T) IP_VS_DBG_ADDR((T)->src.l3num, &(T)->src.u3), \
57 IP_VS_DBG_ADDR((T)->src.l3num, &(T)->dst.u3), \
158 ip_vs_conn_fill_param(net_ipvs(net), exp->tuple.src.l3num, orig->dst.protonum, in ip_vs_nfct_expect_callback()
255 tuple.src.l3num = cp->af; in ip_vs_conn_drop_conntrack()
/Linux-v5.15/net/ipv4/netfilter/
Dnf_nat_pptp.c66 t.src.l3num = AF_INET; in pptp_nat_expected()
75 t.src.l3num = AF_INET; in pptp_nat_expected()
Dnf_nat_snmp_basic_main.c210 .tuple.src.l3num = AF_INET,

12