Home
last modified time | relevance | path

Searched refs:ctinfo (Results 1 – 25 of 98) sorted by relevance

1234

/linux-6.6.21/net/netfilter/
Dxt_nat.c56 enum ip_conntrack_info ctinfo; in xt_snat_target_v0() local
59 ct = nf_ct_get(skb, &ctinfo); in xt_snat_target_v0()
61 (ctinfo == IP_CT_NEW || ctinfo == IP_CT_RELATED || in xt_snat_target_v0()
62 ctinfo == IP_CT_RELATED_REPLY))); in xt_snat_target_v0()
73 enum ip_conntrack_info ctinfo; in xt_dnat_target_v0() local
76 ct = nf_ct_get(skb, &ctinfo); in xt_dnat_target_v0()
78 (ctinfo == IP_CT_NEW || ctinfo == IP_CT_RELATED))); in xt_dnat_target_v0()
89 enum ip_conntrack_info ctinfo; in xt_snat_target_v1() local
92 ct = nf_ct_get(skb, &ctinfo); in xt_snat_target_v1()
94 (ctinfo == IP_CT_NEW || ctinfo == IP_CT_RELATED || in xt_snat_target_v1()
[all …]
Dnf_conntrack_h323_main.c65 struct nf_conn *ct, enum ip_conntrack_info ctinfo, in get_tpkt_data() argument
69 int dir = CTINFO2DIR(ctinfo); in get_tpkt_data()
206 enum ip_conntrack_info ctinfo, in expect_rtp_rtcp() argument
212 int dir = CTINFO2DIR(ctinfo); in expect_rtp_rtcp()
256 ret = nathook->nat_rtp_rtcp(skb, ct, ctinfo, protoff, data, dataoff, in expect_rtp_rtcp()
281 enum ip_conntrack_info ctinfo, in expect_t120() argument
287 int dir = CTINFO2DIR(ctinfo); in expect_t120()
316 ret = nathook->nat_t120(skb, ct, ctinfo, protoff, data, in expect_t120()
333 enum ip_conntrack_info ctinfo, in process_h245_channel() argument
342 ret = expect_rtp_rtcp(skb, ct, ctinfo, protoff, data, dataoff, in process_h245_channel()
[all …]
Dnf_nat_ovs.c11 enum ip_conntrack_info ctinfo, int *action, in nf_ct_nat_execute() argument
24 switch (ctinfo) { in nf_ct_nat_execute()
29 if (!nf_nat_icmp_reply_translation(skb, ct, ctinfo, in nf_ct_nat_execute()
42 ctinfo, in nf_ct_nat_execute()
77 err = nf_nat_packet(ct, ctinfo, hooknum, skb); in nf_ct_nat_execute()
86 enum ip_conntrack_info ctinfo, int *action, in nf_ct_nat() argument
98 if (ctinfo != IP_CT_NEW && (ct->status & IPS_NAT_MASK) && in nf_ct_nat()
99 (ctinfo != IP_CT_RELATED || commit)) { in nf_ct_nat()
101 if (CTINFO2DIR(ctinfo) == IP_CT_DIR_REPLY) in nf_ct_nat()
119 err = nf_ct_nat_execute(skb, ct, ctinfo, action, range, maniptype); in nf_ct_nat()
[all …]
Dnf_nat_sip.c40 enum ip_conntrack_info ctinfo; in mangle_packet() local
41 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in mangle_packet()
50 if (!__nf_nat_mangle_tcp_packet(skb, ct, ctinfo, in mangle_packet()
58 if (!nf_nat_mangle_udp_packet(skb, ct, ctinfo, in mangle_packet()
98 enum ip_conntrack_info ctinfo; in map_addr() local
99 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in map_addr()
100 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in map_addr()
132 enum ip_conntrack_info ctinfo; in map_sip_addr() local
133 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in map_sip_addr()
149 enum ip_conntrack_info ctinfo; in nf_nat_sip() local
[all …]
Dnft_ct_fast.c13 enum ip_conntrack_info ctinfo; in nft_ct_get_fast_eval() local
17 ct = nf_ct_get(pkt->skb, &ctinfo); in nft_ct_get_fast_eval()
22 state = NF_CT_STATE_BIT(ctinfo); in nft_ct_get_fast_eval()
23 else if (ctinfo == IP_CT_UNTRACKED) in nft_ct_get_fast_eval()
40 nft_reg_store8(dest, CTINFO2DIR(ctinfo)); in nft_ct_get_fast_eval()
Dnf_conntrack_seqadj.c10 int nf_ct_seqadj_init(struct nf_conn *ct, enum ip_conntrack_info ctinfo, in nf_ct_seqadj_init() argument
13 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_ct_seqadj_init()
30 int nf_ct_seqadj_set(struct nf_conn *ct, enum ip_conntrack_info ctinfo, in nf_ct_seqadj_set() argument
34 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_ct_seqadj_set()
61 struct nf_conn *ct, enum ip_conntrack_info ctinfo, in nf_ct_tcp_seqadj_set() argument
70 nf_ct_seqadj_set(ct, ctinfo, th->seq, off); in nf_ct_tcp_seqadj_set()
120 enum ip_conntrack_info ctinfo) in nf_ct_sack_adjust() argument
133 dir = CTINFO2DIR(ctinfo); in nf_ct_sack_adjust()
165 struct nf_conn *ct, enum ip_conntrack_info ctinfo, in nf_ct_seq_adjust() argument
168 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_ct_seq_adjust()
[all …]
Dnf_conntrack_core.c963 static void nf_ct_acct_merge(struct nf_conn *ct, enum ip_conntrack_info ctinfo, in nf_ct_acct_merge() argument
974 bytes = atomic64_read(&counter[CTINFO2DIR(ctinfo)].bytes); in nf_ct_acct_merge()
975 nf_ct_acct_update(ct, CTINFO2DIR(ctinfo), bytes); in nf_ct_acct_merge()
997 enum ip_conntrack_info ctinfo; in __nf_ct_resolve_clash() local
1000 loser_ct = nf_ct_get(skb, &ctinfo); in __nf_ct_resolve_clash()
1011 nf_ct_acct_merge(ct, ctinfo, loser_ct); in __nf_ct_resolve_clash()
1013 nf_ct_set(skb, ct, ctinfo); in __nf_ct_resolve_clash()
1123 enum ip_conntrack_info ctinfo; in nf_ct_resolve_clash() local
1128 loser_ct = nf_ct_get(skb, &ctinfo); in nf_ct_resolve_clash()
1160 enum ip_conntrack_info ctinfo; in __nf_conntrack_confirm() local
[all …]
Dnf_nat_proto.c561 enum ip_conntrack_info ctinfo, in nf_nat_icmp_reply_translation() argument
568 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_nat_icmp_reply_translation()
574 WARN_ON(ctinfo != IP_CT_RELATED && ctinfo != IP_CT_RELATED_REPLY); in nf_nat_icmp_reply_translation()
629 enum ip_conntrack_info ctinfo; in nf_nat_ipv4_fn() local
631 ct = nf_ct_get(skb, &ctinfo); in nf_nat_ipv4_fn()
635 if (ctinfo == IP_CT_RELATED || ctinfo == IP_CT_RELATED_REPLY) { in nf_nat_ipv4_fn()
637 if (!nf_nat_icmp_reply_translation(skb, ct, ctinfo, in nf_nat_ipv4_fn()
723 enum ip_conntrack_info ctinfo; in nf_nat_ipv4_out() local
736 ct = nf_ct_get(skb, &ctinfo); in nf_nat_ipv4_out()
738 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_nat_ipv4_out()
[all …]
Dnf_nat_masquerade.c34 enum ip_conntrack_info ctinfo; in nf_nat_masquerade_ipv4() local
41 ct = nf_ct_get(skb, &ctinfo); in nf_nat_masquerade_ipv4()
43 WARN_ON(!(ct && (ctinfo == IP_CT_NEW || ctinfo == IP_CT_RELATED || in nf_nat_masquerade_ipv4()
44 ctinfo == IP_CT_RELATED_REPLY))); in nf_nat_masquerade_ipv4()
244 enum ip_conntrack_info ctinfo; in nf_nat_masquerade_ipv6() local
250 ct = nf_ct_get(skb, &ctinfo); in nf_nat_masquerade_ipv6()
251 WARN_ON(!(ct && (ctinfo == IP_CT_NEW || ctinfo == IP_CT_RELATED || in nf_nat_masquerade_ipv6()
252 ctinfo == IP_CT_RELATED_REPLY))); in nf_nat_masquerade_ipv6()
Dxt_state.c24 enum ip_conntrack_info ctinfo; in state_mt() local
26 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in state_mt()
29 statebit = XT_STATE_BIT(ctinfo); in state_mt()
30 else if (ctinfo == IP_CT_UNTRACKED) in state_mt()
Dnf_conntrack_snmp.c31 enum ip_conntrack_info ctinfo);
36 enum ip_conntrack_info ctinfo) in snmp_conntrack_help() argument
40 nf_conntrack_broadcast_help(skb, ct, ctinfo, timeout); in snmp_conntrack_help()
44 return nf_nat_snmp(skb, protoff, ct, ctinfo); in snmp_conntrack_help()
Dxt_CONNSECMARK.c36 enum ip_conntrack_info ctinfo; in secmark_save() local
38 ct = nf_ct_get(skb, &ctinfo); in secmark_save()
54 enum ip_conntrack_info ctinfo; in secmark_restore() local
56 ct = nf_ct_get(skb, &ctinfo); in secmark_restore()
Dnf_synproxy_core.c187 enum ip_conntrack_info ctinfo, in synproxy_tstamp_adjust() argument
218 if (CTINFO2DIR(ctinfo) == IP_CT_DIR_REPLY) { in synproxy_tstamp_adjust()
420 struct nf_conntrack *nfct, enum ip_conntrack_info ctinfo, in synproxy_send_tcp() argument
435 nf_ct_set(nskb, (struct nf_conn *)nfct, ctinfo); in synproxy_send_tcp()
644 enum ip_conntrack_info ctinfo; in ipv4_synproxy_hook() local
652 ct = nf_ct_get(skb, &ctinfo); in ipv4_synproxy_hook()
672 if (th->rst && CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) { in ipv4_synproxy_hook()
673 nf_ct_seqadj_init(ct, ctinfo, synproxy->isn - in ipv4_synproxy_hook()
679 CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) in ipv4_synproxy_hook()
686 nf_ct_seqadj_init(ct, ctinfo, 0); in ipv4_synproxy_hook()
[all …]
Dnf_conntrack_sip.c854 enum ip_conntrack_info ctinfo; in set_expected_rtp_rtcp() local
855 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in set_expected_rtp_rtcp()
857 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in set_expected_rtp_rtcp()
1031 enum ip_conntrack_info ctinfo; in process_sdp() local
1032 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in process_sdp()
1140 enum ip_conntrack_info ctinfo; in process_invite_response() local
1141 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in process_invite_response()
1157 enum ip_conntrack_info ctinfo; in process_update_response() local
1158 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in process_update_response()
1174 enum ip_conntrack_info ctinfo; in process_prack_response() local
[all …]
Dnf_conntrack_irc.c34 enum ip_conntrack_info ctinfo,
108 struct nf_conn *ct, enum ip_conntrack_info ctinfo) in help() argument
116 int dir = CTINFO2DIR(ctinfo); in help()
132 if (ctinfo != IP_CT_ESTABLISHED && ctinfo != IP_CT_ESTABLISHED_REPLY) in help()
244 ret = nf_nat_irc(skb, ctinfo, protoff, in help()
Dnf_conntrack_proto_udp.c87 enum ip_conntrack_info ctinfo, in nf_conntrack_udp_packet() argument
117 nf_ct_refresh_acct(ct, ctinfo, skb, extra); in nf_conntrack_udp_packet()
127 nf_ct_refresh_acct(ct, ctinfo, skb, timeouts[UDP_CT_UNREPLIED]); in nf_conntrack_udp_packet()
186 enum ip_conntrack_info ctinfo, in nf_conntrack_udplite_packet() argument
201 nf_ct_refresh_acct(ct, ctinfo, skb, in nf_conntrack_udplite_packet()
211 nf_ct_refresh_acct(ct, ctinfo, skb, timeouts[UDP_CT_UNREPLIED]); in nf_conntrack_udplite_packet()
/linux-6.6.21/include/linux/netfilter/
Dnf_conntrack_h323.h49 enum ip_conntrack_info ctinfo,
54 enum ip_conntrack_info ctinfo,
59 enum ip_conntrack_info ctinfo,
68 enum ip_conntrack_info ctinfo,
75 enum ip_conntrack_info ctinfo,
82 enum ip_conntrack_info ctinfo,
89 enum ip_conntrack_info ctinfo,
/linux-6.6.21/include/net/netfilter/
Dnf_nat.h58 enum ip_conntrack_info ctinfo, in nf_nat_oif_changed() argument
64 CTINFO2DIR(ctinfo) == IP_CT_DIR_ORIGINAL && in nf_nat_oif_changed()
76 unsigned int nf_nat_packet(struct nf_conn *ct, enum ip_conntrack_info ctinfo,
87 enum ip_conntrack_info ctinfo,
91 enum ip_conntrack_info ctinfo,
108 enum ip_conntrack_info ctinfo, int *action,
Dnf_nat_helper.h12 enum ip_conntrack_info ctinfo,
19 enum ip_conntrack_info ctinfo, in nf_nat_mangle_tcp_packet() argument
26 return __nf_nat_mangle_tcp_packet(skb, ct, ctinfo, protoff, in nf_nat_mangle_tcp_packet()
32 enum ip_conntrack_info ctinfo,
Dnf_conntrack_seqadj.h34 int nf_ct_seqadj_init(struct nf_conn *ct, enum ip_conntrack_info ctinfo,
36 int nf_ct_seqadj_set(struct nf_conn *ct, enum ip_conntrack_info ctinfo,
39 enum ip_conntrack_info ctinfo, s32 off);
42 enum ip_conntrack_info ctinfo, unsigned int protoff);
Dnf_conntrack_act_ct.h24 enum ip_conntrack_info ctinfo) in nf_conn_act_ct_ext_fill() argument
31 act_ct_ext->ifindex[CTINFO2DIR(ctinfo)] = skb->dev->ifindex; in nf_conn_act_ct_ext_fill()
38 enum ip_conntrack_info ctinfo) in nf_conn_act_ct_ext_add() argument
47 nf_conn_act_ct_ext_fill(skb, ct, ctinfo); in nf_conn_act_ct_ext_add()
Dnf_conntrack_l4proto.h97 enum ip_conntrack_info ctinfo,
102 enum ip_conntrack_info ctinfo,
108 enum ip_conntrack_info ctinfo,
113 enum ip_conntrack_info ctinfo,
118 enum ip_conntrack_info ctinfo,
123 enum ip_conntrack_info ctinfo,
128 enum ip_conntrack_info ctinfo,
133 enum ip_conntrack_info ctinfo,
/linux-6.6.21/net/bridge/netfilter/
Dnf_conntrack_bridge.c149 enum ip_conntrack_info ctinfo; in nf_ct_br_defrag4() local
157 ct = nf_ct_get(skb, &ctinfo); in nf_ct_br_defrag4()
159 zone_id = nf_ct_zone_id(nf_ct_zone(ct), CTINFO2DIR(ctinfo)); in nf_ct_br_defrag4()
180 enum ip_conntrack_info ctinfo; in nf_ct_br_defrag6() local
185 ct = nf_ct_get(skb, &ctinfo); in nf_ct_br_defrag6()
187 zone_id = nf_ct_zone_id(nf_ct_zone(ct), CTINFO2DIR(ctinfo)); in nf_ct_br_defrag6()
244 enum ip_conntrack_info ctinfo; in nf_ct_bridge_pre() local
249 ct = nf_ct_get(skb, &ctinfo); in nf_ct_bridge_pre()
251 ctinfo == IP_CT_UNTRACKED) in nf_ct_bridge_pre()
297 enum ip_conntrack_info ctinfo; in nf_ct_bridge_in() local
[all …]
/linux-6.6.21/net/ipv4/netfilter/
Dnf_nat_h323.c27 enum ip_conntrack_info ctinfo; in set_addr() local
28 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in set_addr()
41 if (!nf_nat_mangle_tcp_packet(skb, ct, ctinfo, in set_addr()
55 if (!nf_nat_mangle_udp_packet(skb, ct, ctinfo, in set_addr()
93 enum ip_conntrack_info ctinfo, in set_sig_addr() argument
98 int dir = CTINFO2DIR(ctinfo); in set_sig_addr()
146 enum ip_conntrack_info ctinfo, in set_ras_addr() argument
150 int dir = CTINFO2DIR(ctinfo); in set_ras_addr()
175 enum ip_conntrack_info ctinfo, in nat_rtp_rtcp() argument
183 int dir = CTINFO2DIR(ctinfo); in nat_rtp_rtcp()
[all …]
/linux-6.6.21/net/sched/
Dact_ct.c173 enum ip_conntrack_info ctinfo, in tcf_ct_flow_table_add_action_meta() argument
186 entry->ct_metadata.cookie = (unsigned long)ct | ctinfo; in tcf_ct_flow_table_add_action_meta()
245 enum ip_conntrack_info ctinfo; in tcf_ct_flow_table_fill_actions() local
252 ctinfo = test_bit(IPS_SEEN_REPLY_BIT, &ct->status) ? in tcf_ct_flow_table_fill_actions()
254 if (ctinfo == IP_CT_ESTABLISHED) in tcf_ct_flow_table_fill_actions()
259 ctinfo = IP_CT_ESTABLISHED_REPLY; in tcf_ct_flow_table_fill_actions()
269 tcf_ct_flow_table_add_action_meta(ct, dir, ctinfo, action); in tcf_ct_flow_table_fill_actions()
456 enum ip_conntrack_info ctinfo) in tcf_ct_flow_table_process_conn() argument
462 if ((ctinfo != IP_CT_ESTABLISHED && in tcf_ct_flow_table_process_conn()
463 ctinfo != IP_CT_ESTABLISHED_REPLY) || in tcf_ct_flow_table_process_conn()
[all …]

1234