Home
last modified time | relevance | path

Searched refs:protonum (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v5.15/include/net/netfilter/
Dnf_conntrack_tuple.h68 u_int8_t protonum; member
86 t, t->dst.protonum, in nf_ct_dump_tuple_ip()
96 t, t->dst.protonum, in nf_ct_dump_tuple_ipv6()
137 t1->dst.protonum == t2->dst.protonum); in __nf_ct_tuple_dst_equal()
172 t1->dst.protonum != t2->dst.protonum) in nf_ct_tuple_src_mask_cmp()
Dnf_conntrack_helper.h87 u16 l3num, u8 protonum);
91 u8 protonum);
95 u16 l3num, u16 protonum, const char *name,
178 u8 protonum);
Dnf_conntrack_l4proto.h170 u8 protonum,
176 u8 protonum, in nf_l4proto_log_invalid() argument
Dnf_tables_offload.h31 u8 protonum; member
Dnf_conntrack.h138 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum; in nf_ct_protonum()
/Linux-v5.15/net/netfilter/
Dnf_nat_core.c66 if (t->dst.protonum == IPPROTO_TCP || in nf_nat_ipv4_decode_session()
67 t->dst.protonum == IPPROTO_UDP || in nf_nat_ipv4_decode_session()
68 t->dst.protonum == IPPROTO_UDPLITE || in nf_nat_ipv4_decode_session()
69 t->dst.protonum == IPPROTO_DCCP || in nf_nat_ipv4_decode_session()
70 t->dst.protonum == IPPROTO_SCTP) in nf_nat_ipv4_decode_session()
78 if (t->dst.protonum == IPPROTO_TCP || in nf_nat_ipv4_decode_session()
79 t->dst.protonum == IPPROTO_UDP || in nf_nat_ipv4_decode_session()
80 t->dst.protonum == IPPROTO_UDPLITE || in nf_nat_ipv4_decode_session()
81 t->dst.protonum == IPPROTO_DCCP || in nf_nat_ipv4_decode_session()
82 t->dst.protonum == IPPROTO_SCTP) in nf_nat_ipv4_decode_session()
[all …]
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
87 if (h->tuple.dst.protonum == protonum) 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()
417 cur->tuple.dst.protonum == me->tuple.dst.protonum) { in nf_conntrack_helper_register()
480 u16 l3num, u16 protonum, const char *name, in nf_ct_helper_init() argument
[all …]
Dnf_conntrack_proto.c51 u8 protonum, in nf_l4proto_log_invalid() argument
58 if (net->ct.sysctl_log_invalid != protonum && in nf_l4proto_log_invalid()
67 NULL, "nf_ct_proto_%d: %pV ", protonum, &vaf); in nf_l4proto_log_invalid()
253 tuple.dst.protonum = sk->sk_protocol; in getorigdst()
257 if (tuple.dst.protonum != IPPROTO_TCP && in getorigdst()
258 tuple.dst.protonum != IPPROTO_SCTP) { in getorigdst()
321 tuple.dst.protonum = sk->sk_protocol; in ipv6_getorigdst()
326 if (tuple.dst.protonum != IPPROTO_TCP && in ipv6_getorigdst()
327 tuple.dst.protonum != IPPROTO_SCTP) in ipv6_getorigdst()
Dnf_conntrack_core.c217 combined.proto = tuple->dst.protonum; in hash_conntrack_raw()
265 u_int8_t protonum, in nf_ct_get_tuple() argument
304 tuple->dst.protonum = protonum; in nf_ct_get_tuple()
307 switch (protonum) { in nf_ct_get_tuple()
341 u_int8_t *protonum) in ipv4_get_l4proto() argument
358 *protonum = iph->protocol; in ipv4_get_l4proto()
371 u8 *protonum) in ipv6_get_l4proto() argument
393 *protonum = nexthdr; in ipv6_get_l4proto()
419 u8 protonum; in nf_ct_get_tuplepr() local
422 protoff = get_l4proto(skb, nhoff, l3num, &protonum); in nf_ct_get_tuplepr()
[all …]
Dnfnetlink_cthelper.c90 tuple->dst.protonum = nla_get_u8(tb[NFCTH_TUPLE_L4PROTONUM]); in nfnl_cthelper_parse_tuple()
443 tuple.dst.protonum != cur->tuple.dst.protonum)) in nfnl_cthelper_new()
475 if (nla_put_u8(skb, NFCTH_TUPLE_L4PROTONUM, helper->tuple.dst.protonum)) in nfnl_cthelper_dump_tuple()
652 tuple.dst.protonum != cur->tuple.dst.protonum)) in nfnl_cthelper_get()
712 tuple.dst.protonum != cur->tuple.dst.protonum)) in nfnl_cthelper_del()
Dnf_conntrack_expect.c89 u8 protonum; in nf_ct_expect_dst_hash() member
101 combined.protonum = tuple->dst.protonum; in nf_ct_expect_dst_hash()
330 exp->tuple.dst.protonum = proto; in nf_ct_expect_init()
642 expect->tuple.dst.protonum); in exp_seq_show()
644 nf_ct_l4proto_find(expect->tuple.dst.protonum)); in exp_seq_show()
Dnf_conntrack_amanda.c185 .tuple.dst.protonum = IPPROTO_UDP,
195 .tuple.dst.protonum = IPPROTO_UDP,
Dnf_conntrack_netbios_ns.c50 .tuple.dst.protonum = IPPROTO_UDP,
Dnf_conntrack_snmp.c57 .tuple.dst.protonum = IPPROTO_UDP,
Dnf_nat_proto.c322 switch (tuple->dst.protonum) { in l4proto_manip_pkt()
616 target.dst.protonum = IPPROTO_ICMP; in nf_nat_icmp_reply_translation()
742 (ct->tuplehash[dir].tuple.dst.protonum != IPPROTO_ICMP && in nf_nat_ipv4_out()
779 ct->tuplehash[dir].tuple.dst.protonum != IPPROTO_ICMP && in nf_nat_ipv4_local_fn()
895 target.dst.protonum = IPPROTO_ICMPV6; in nf_nat_icmpv6_reply_translation()
979 (ct->tuplehash[dir].tuple.dst.protonum != IPPROTO_ICMPV6 && in nf_nat_ipv6_out()
1017 ct->tuplehash[dir].tuple.dst.protonum != IPPROTO_ICMPV6 && in nf_nat_ipv6_local_fn()
Dnf_conntrack_proto_gre.c64 km->tuple.dst.protonum == t->dst.protonum && in gre_key_cmpfn()
Dnf_conntrack_pptp.c193 t.dst.protonum = IPPROTO_GRE; in pptp_destroy_siblings()
201 t.dst.protonum = IPPROTO_GRE; in pptp_destroy_siblings()
618 .tuple.dst.protonum = IPPROTO_TCP,
Dnf_conntrack_netlink.c71 if (nla_put_u8(skb, CTA_PROTO_NUM, tuple->dst.protonum)) in ctnetlink_dump_tuples_proto()
140 l4proto = nf_ct_l4proto_find(tuple->dst.protonum); in ctnetlink_dump_tuples()
1079 filter_tuple->dst.protonum != ct_tuple->dst.protonum) in ctnetlink_filter_match_tuple()
1082 switch (ct_tuple->dst.protonum) { in ctnetlink_filter_match_tuple()
1352 tuple->dst.protonum = nla_get_u8(tb[CTA_PROTO_NUM]); in ctnetlink_parse_tuple_proto()
1355 l4proto = nf_ct_l4proto_find(tuple->dst.protonum); in ctnetlink_parse_tuple_proto()
2449 if (otuple.dst.protonum != rtuple.dst.protonum) in ctnetlink_new_conntrack()
2971 m.dst.protonum = tuple->dst.protonum; in ctnetlink_exp_dump_mask()
2980 l4proto = nf_ct_l4proto_find(tuple->dst.protonum); in ctnetlink_exp_dump_mask()
3054 nat_tuple.dst.protonum = nf_ct_protonum(master); in ctnetlink_exp_dump_expect()
Dnf_flow_table_offload.c436 u8 protonum = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.l4proto; in flow_offload_l4proto() local
439 switch (protonum) { in flow_offload_l4proto()
517 u8 protonum = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.l4proto; in flow_offload_ipv4_checksum() local
523 switch (protonum) { in flow_offload_ipv4_checksum()
Dnf_conntrack_h323_main.c632 .tuple.dst.protonum = IPPROTO_UDP,
1194 .tuple.dst.protonum = IPPROTO_TCP,
1203 .tuple.dst.protonum = IPPROTO_TCP,
1238 tuple.dst.protonum = IPPROTO_TCP; in find_expect()
1762 .tuple.dst.protonum = IPPROTO_UDP,
1771 .tuple.dst.protonum = IPPROTO_UDP,
Dnf_nat_sip.c342 pair_exp->tuple.dst.protonum == ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum && in nf_nat_sip_expected()
/Linux-v5.15/net/netfilter/ipvs/
Dip_vs_nfct.c59 (T)->dst.protonum
110 if (new_tuple.dst.protonum != IPPROTO_ICMP && in ip_vs_update_conntrack()
111 new_tuple.dst.protonum != IPPROTO_ICMPV6) in ip_vs_update_conntrack()
115 if (new_tuple.dst.protonum != IPPROTO_ICMP && in ip_vs_update_conntrack()
116 new_tuple.dst.protonum != IPPROTO_ICMPV6) in ip_vs_update_conntrack()
158 ip_vs_conn_fill_param(net_ipvs(net), exp->tuple.src.l3num, orig->dst.protonum, in ip_vs_nfct_expect_callback()
252 .dst = { .protonum = cp->protocol, .dir = IP_CT_DIR_ORIGINAL } }; in ip_vs_conn_drop_conntrack()
/Linux-v5.15/tools/testing/selftests/netfilter/
Dnft_zones_many.sh114 ip netns exec "$ns" conntrack -I -s 1.1.1.1 -d 2.2.2.2 --protonum 6 \
117 ip netns exec "$ns" conntrack -I -s 1.1.1.1 -d 2.2.2.2 --protonum 6 \
/Linux-v5.15/net/ipv4/netfilter/
Dnf_nat_pptp.c71 t.dst.protonum = IPPROTO_GRE; in pptp_nat_expected()
80 t.dst.protonum = IPPROTO_GRE; in pptp_nat_expected()
Dnf_nat_snmp_basic_main.c212 .tuple.dst.protonum = IPPROTO_UDP,

12