Home
last modified time | relevance | path

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

123

/net/netfilter/
Dxt_nat.c47 enum ip_conntrack_info ctinfo; in xt_snat_target_v0() local
50 ct = nf_ct_get(skb, &ctinfo); in xt_snat_target_v0()
52 (ctinfo == IP_CT_NEW || ctinfo == IP_CT_RELATED || in xt_snat_target_v0()
53 ctinfo == IP_CT_RELATED_REPLY)); in xt_snat_target_v0()
64 enum ip_conntrack_info ctinfo; in xt_dnat_target_v0() local
67 ct = nf_ct_get(skb, &ctinfo); in xt_dnat_target_v0()
69 (ctinfo == IP_CT_NEW || ctinfo == IP_CT_RELATED)); in xt_dnat_target_v0()
79 enum ip_conntrack_info ctinfo; in xt_snat_target_v1() local
82 ct = nf_ct_get(skb, &ctinfo); in xt_snat_target_v1()
84 (ctinfo == IP_CT_NEW || ctinfo == IP_CT_RELATED || in xt_snat_target_v1()
[all …]
Dnf_conntrack_h323_main.c65 enum ip_conntrack_info ctinfo,
70 enum ip_conntrack_info ctinfo,
75 enum ip_conntrack_info ctinfo,
84 enum ip_conntrack_info ctinfo,
91 enum ip_conntrack_info ctinfo,
98 enum ip_conntrack_info ctinfo,
105 enum ip_conntrack_info ctinfo,
120 struct nf_conn *ct, enum ip_conntrack_info ctinfo, in get_tpkt_data() argument
124 int dir = CTINFO2DIR(ctinfo); in get_tpkt_data()
259 enum ip_conntrack_info ctinfo, in expect_rtp_rtcp() argument
[all …]
Dnf_nat_sip.c38 enum ip_conntrack_info ctinfo; in mangle_packet() local
39 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in mangle_packet()
48 if (!__nf_nat_mangle_tcp_packet(skb, ct, ctinfo, in mangle_packet()
56 if (!nf_nat_mangle_udp_packet(skb, ct, ctinfo, in mangle_packet()
96 enum ip_conntrack_info ctinfo; in map_addr() local
97 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in map_addr()
98 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in map_addr()
130 enum ip_conntrack_info ctinfo; in map_sip_addr() local
131 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in map_sip_addr()
147 enum ip_conntrack_info ctinfo; in nf_nat_sip() local
[all …]
Dnf_conntrack_seqadj.c9 int nf_ct_seqadj_init(struct nf_conn *ct, enum ip_conntrack_info ctinfo, in nf_ct_seqadj_init() argument
12 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_ct_seqadj_init()
29 int nf_ct_seqadj_set(struct nf_conn *ct, enum ip_conntrack_info ctinfo, in nf_ct_seqadj_set() argument
33 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_ct_seqadj_set()
60 struct nf_conn *ct, enum ip_conntrack_info ctinfo, in nf_ct_tcp_seqadj_set() argument
69 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
131 dir = CTINFO2DIR(ctinfo); in nf_ct_sack_adjust()
163 struct nf_conn *ct, enum ip_conntrack_info ctinfo, in nf_ct_seq_adjust() argument
166 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_ct_seq_adjust()
[all …]
Dnf_nat_redirect.c37 enum ip_conntrack_info ctinfo; in nf_nat_redirect_ipv4() local
44 ct = nf_ct_get(skb, &ctinfo); in nf_nat_redirect_ipv4()
45 NF_CT_ASSERT(ct && (ctinfo == IP_CT_NEW || ctinfo == IP_CT_RELATED)); in nf_nat_redirect_ipv4()
90 enum ip_conntrack_info ctinfo; in nf_nat_redirect_ipv6() local
93 ct = nf_ct_get(skb, &ctinfo); in nf_nat_redirect_ipv6()
Dnf_conntrack_sip.c852 enum ip_conntrack_info ctinfo; in set_expected_rtp_rtcp() local
853 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in set_expected_rtp_rtcp()
855 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in set_expected_rtp_rtcp()
991 enum ip_conntrack_info ctinfo; in process_sdp() local
992 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in process_sdp()
1100 enum ip_conntrack_info ctinfo; in process_invite_response() local
1101 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in process_invite_response()
1117 enum ip_conntrack_info ctinfo; in process_update_response() local
1118 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in process_update_response()
1134 enum ip_conntrack_info ctinfo; in process_prack_response() local
[all …]
Dnf_conntrack_snmp.c35 enum ip_conntrack_info ctinfo);
39 struct nf_conn *ct, enum ip_conntrack_info ctinfo) in snmp_conntrack_help() argument
43 nf_conntrack_broadcast_help(skb, protoff, ct, ctinfo, timeout); in snmp_conntrack_help()
47 return nf_nat_snmp(skb, protoff, ct, ctinfo); in snmp_conntrack_help()
Dnf_conntrack_core.c651 enum ip_conntrack_info ctinfo, in nf_ct_acct_update() argument
660 atomic64_inc(&counter[CTINFO2DIR(ctinfo)].packets); in nf_ct_acct_update()
661 atomic64_add(len, &counter[CTINFO2DIR(ctinfo)].bytes); in nf_ct_acct_update()
665 static void nf_ct_acct_merge(struct nf_conn *ct, enum ip_conntrack_info ctinfo, in nf_ct_acct_merge() argument
676 bytes = atomic64_read(&counter[CTINFO2DIR(ctinfo)].bytes); in nf_ct_acct_merge()
677 nf_ct_acct_update(ct, ctinfo, bytes); in nf_ct_acct_merge()
683 enum ip_conntrack_info ctinfo, in nf_ct_resolve_clash() argument
695 nf_ct_acct_merge(ct, ctinfo, (struct nf_conn *)skb->nfct); in nf_ct_resolve_clash()
718 enum ip_conntrack_info ctinfo; in __nf_conntrack_confirm() local
723 ct = nf_ct_get(skb, &ctinfo); in __nf_conntrack_confirm()
[all …]
Dnf_conntrack_irc.c38 enum ip_conntrack_info ctinfo,
109 struct nf_conn *ct, enum ip_conntrack_info ctinfo) in help() argument
117 int dir = CTINFO2DIR(ctinfo); in help()
132 if (ctinfo != IP_CT_ESTABLISHED && ctinfo != IP_CT_ESTABLISHED_REPLY) in help()
214 ret = nf_nat_irc(skb, ctinfo, protoff, in help()
Dnf_conntrack_pptp.c49 struct nf_conn *ct, enum ip_conntrack_info ctinfo,
56 struct nf_conn *ct, enum ip_conntrack_info ctinfo,
272 enum ip_conntrack_info ctinfo) in pptp_inbound_pkt() argument
381 return nf_nat_pptp_inbound(skb, ct, ctinfo, in pptp_inbound_pkt()
400 enum ip_conntrack_info ctinfo) in pptp_outbound_pkt() argument
477 return nf_nat_pptp_outbound(skb, ct, ctinfo, in pptp_outbound_pkt()
509 struct nf_conn *ct, enum ip_conntrack_info ctinfo) in conntrack_pptp_help() argument
512 int dir = CTINFO2DIR(ctinfo); in conntrack_pptp_help()
527 if (ctinfo != IP_CT_ESTABLISHED && ctinfo != IP_CT_ESTABLISHED_REPLY) in conntrack_pptp_help()
578 ctinfo); in conntrack_pptp_help()
[all …]
Dxt_CONNSECMARK.c40 enum ip_conntrack_info ctinfo; in secmark_save() local
42 ct = nf_ct_get(skb, &ctinfo); in secmark_save()
58 enum ip_conntrack_info ctinfo; in secmark_restore() local
60 ct = nf_ct_get(skb, &ctinfo); in secmark_restore()
Dxt_connmark.c42 enum ip_conntrack_info ctinfo; in connmark_tg() local
46 ct = nf_ct_get(skb, &ctinfo); in connmark_tg()
96 enum ip_conntrack_info ctinfo; in connmark_mt() local
99 ct = nf_ct_get(skb, &ctinfo); in connmark_mt()
Dxt_state.c27 enum ip_conntrack_info ctinfo; in state_mt() local
29 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in state_mt()
37 statebit = XT_STATE_BIT(ctinfo); in state_mt()
/net/ipv4/netfilter/
Dnf_nat_l3proto_ipv4.c179 enum ip_conntrack_info ctinfo, in nf_nat_icmp_reply_translation() argument
186 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_nat_icmp_reply_translation()
193 NF_CT_ASSERT(ctinfo == IP_CT_RELATED || ctinfo == IP_CT_RELATED_REPLY); in nf_nat_icmp_reply_translation()
253 enum ip_conntrack_info ctinfo; in nf_nat_ipv4_fn() local
258 ct = nf_ct_get(skb, &ctinfo); in nf_nat_ipv4_fn()
275 switch (ctinfo) { in nf_nat_ipv4_fn()
279 if (!nf_nat_icmp_reply_translation(skb, ct, ctinfo, in nf_nat_ipv4_fn()
307 if (nf_nat_oif_changed(state->hook, ctinfo, nat, in nf_nat_ipv4_fn()
315 NF_CT_ASSERT(ctinfo == IP_CT_ESTABLISHED || in nf_nat_ipv4_fn()
316 ctinfo == IP_CT_ESTABLISHED_REPLY); in nf_nat_ipv4_fn()
[all …]
Dnf_nat_h323.c28 enum ip_conntrack_info ctinfo; in set_addr() local
29 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in set_addr()
42 if (!nf_nat_mangle_tcp_packet(skb, ct, ctinfo, in set_addr()
56 if (!nf_nat_mangle_udp_packet(skb, ct, ctinfo, in set_addr()
94 enum ip_conntrack_info ctinfo, in set_sig_addr() argument
99 int dir = CTINFO2DIR(ctinfo); in set_sig_addr()
147 enum ip_conntrack_info ctinfo, in set_ras_addr() argument
151 int dir = CTINFO2DIR(ctinfo); in set_ras_addr()
176 enum ip_conntrack_info ctinfo, in nat_rtp_rtcp() argument
184 int dir = CTINFO2DIR(ctinfo); in nat_rtp_rtcp()
[all …]
Dnf_nat_masquerade_ipv4.c32 enum ip_conntrack_info ctinfo; in nf_nat_masquerade_ipv4() local
39 ct = nf_ct_get(skb, &ctinfo); in nf_nat_masquerade_ipv4()
42 NF_CT_ASSERT(ct && (ctinfo == IP_CT_NEW || ctinfo == IP_CT_RELATED || in nf_nat_masquerade_ipv4()
43 ctinfo == IP_CT_RELATED_REPLY)); in nf_nat_masquerade_ipv4()
Dnf_conntrack_proto_icmp.c93 enum ip_conntrack_info ctinfo, in icmp_packet() argument
101 nf_ct_refresh_acct(ct, ctinfo, skb, *timeout); in icmp_packet()
131 enum ip_conntrack_info *ctinfo, in icmp_error_message() argument
163 *ctinfo = IP_CT_RELATED; in icmp_error_message()
172 *ctinfo += IP_CT_IS_REPLY; in icmp_error_message()
176 skb->nfctinfo = *ctinfo; in icmp_error_message()
184 enum ip_conntrack_info *ctinfo, u_int8_t pf, unsigned int hooknum) in icmp_error() argument
228 return icmp_error_message(net, tmpl, skb, ctinfo, hooknum); in icmp_error()
Dnf_conntrack_l3proto_ipv4.c100 enum ip_conntrack_info ctinfo; in ipv4_helper() local
105 ct = nf_ct_get(skb, &ctinfo); in ipv4_helper()
106 if (!ct || ctinfo == IP_CT_RELATED_REPLY) in ipv4_helper()
119 ct, ctinfo); in ipv4_helper()
127 enum ip_conntrack_info ctinfo; in ipv4_confirm() local
129 ct = nf_ct_get(skb, &ctinfo); in ipv4_confirm()
130 if (!ct || ctinfo == IP_CT_RELATED_REPLY) in ipv4_confirm()
136 if (!nf_ct_seq_adjust(skb, ct, ctinfo, ip_hdrlen(skb))) { in ipv4_confirm()
Dipt_SYNPROXY.c45 struct nf_conntrack *nfct, enum ip_conntrack_info ctinfo, in synproxy_send_tcp() argument
61 nskb->nfctinfo = ctinfo; in synproxy_send_tcp()
314 enum ip_conntrack_info ctinfo; in ipv4_synproxy_hook() local
322 ct = nf_ct_get(skb, &ctinfo); in ipv4_synproxy_hook()
342 nf_ct_seqadj_init(ct, ctinfo, synproxy->isn - in ipv4_synproxy_hook()
348 CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) in ipv4_synproxy_hook()
355 nf_ct_seqadj_init(ct, ctinfo, 0); in ipv4_synproxy_hook()
365 CTINFO2DIR(ctinfo) == IP_CT_DIR_ORIGINAL) { in ipv4_synproxy_hook()
398 nf_ct_seqadj_init(ct, ctinfo, synproxy->isn - ntohl(th->seq)); in ipv4_synproxy_hook()
409 synproxy_tstamp_adjust(skb, thoff, th, ct, ctinfo, synproxy); in ipv4_synproxy_hook()
/net/ipv6/netfilter/
Dnf_nat_l3proto_ipv6.c189 enum ip_conntrack_info ctinfo, in nf_nat_icmpv6_reply_translation() argument
197 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_nat_icmpv6_reply_translation()
203 NF_CT_ASSERT(ctinfo == IP_CT_RELATED || ctinfo == IP_CT_RELATED_REPLY); in nf_nat_icmpv6_reply_translation()
264 enum ip_conntrack_info ctinfo; in nf_nat_ipv6_fn() local
271 ct = nf_ct_get(skb, &ctinfo); in nf_nat_ipv6_fn()
288 switch (ctinfo) { in nf_nat_ipv6_fn()
296 if (!nf_nat_icmpv6_reply_translation(skb, ct, ctinfo, in nf_nat_ipv6_fn()
325 if (nf_nat_oif_changed(state->hook, ctinfo, nat, state->out)) in nf_nat_ipv6_fn()
332 NF_CT_ASSERT(ctinfo == IP_CT_ESTABLISHED || in nf_nat_ipv6_fn()
333 ctinfo == IP_CT_ESTABLISHED_REPLY); in nf_nat_ipv6_fn()
[all …]
Dnf_nat_masquerade_ipv6.c32 enum ip_conntrack_info ctinfo; in nf_nat_masquerade_ipv6() local
37 ct = nf_ct_get(skb, &ctinfo); in nf_nat_masquerade_ipv6()
38 NF_CT_ASSERT(ct && (ctinfo == IP_CT_NEW || ctinfo == IP_CT_RELATED || in nf_nat_masquerade_ipv6()
39 ctinfo == IP_CT_RELATED_REPLY)); in nf_nat_masquerade_ipv6()
Dnf_conntrack_proto_icmpv6.c106 enum ip_conntrack_info ctinfo, in icmpv6_packet() argument
114 nf_ct_refresh_acct(ct, ctinfo, skb, *timeout); in icmpv6_packet()
148 enum ip_conntrack_info *ctinfo, in icmpv6_error_message() argument
179 *ctinfo = IP_CT_RELATED; in icmpv6_error_message()
188 *ctinfo += IP_CT_IS_REPLY; in icmpv6_error_message()
193 skb->nfctinfo = *ctinfo; in icmpv6_error_message()
200 enum ip_conntrack_info *ctinfo, u_int8_t pf, unsigned int hooknum) in icmpv6_error() argument
235 return icmpv6_error_message(net, tmpl, skb, dataoff, ctinfo, hooknum); in icmpv6_error()
Dnf_conntrack_l3proto_ipv6.c105 enum ip_conntrack_info ctinfo; in ipv6_helper() local
111 ct = nf_ct_get(skb, &ctinfo); in ipv6_helper()
112 if (!ct || ctinfo == IP_CT_RELATED_REPLY) in ipv6_helper()
131 return helper->help(skb, protoff, ct, ctinfo); in ipv6_helper()
139 enum ip_conntrack_info ctinfo; in ipv6_confirm() local
144 ct = nf_ct_get(skb, &ctinfo); in ipv6_confirm()
145 if (!ct || ctinfo == IP_CT_RELATED_REPLY) in ipv6_confirm()
158 if (!nf_ct_seq_adjust(skb, ct, ctinfo, protoff)) { in ipv6_confirm()
Dip6t_SYNPROXY.c43 struct nf_conntrack *nfct, enum ip_conntrack_info ctinfo, in synproxy_send_tcp() argument
75 nskb->nfctinfo = ctinfo; in synproxy_send_tcp()
328 enum ip_conntrack_info ctinfo; in ipv6_synproxy_hook() local
338 ct = nf_ct_get(skb, &ctinfo); in ipv6_synproxy_hook()
363 nf_ct_seqadj_init(ct, ctinfo, synproxy->isn - in ipv6_synproxy_hook()
369 CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) in ipv6_synproxy_hook()
376 nf_ct_seqadj_init(ct, ctinfo, 0); in ipv6_synproxy_hook()
386 CTINFO2DIR(ctinfo) == IP_CT_DIR_ORIGINAL) { in ipv6_synproxy_hook()
419 nf_ct_seqadj_init(ct, ctinfo, synproxy->isn - ntohl(th->seq)); in ipv6_synproxy_hook()
430 synproxy_tstamp_adjust(skb, thoff, th, ct, ctinfo, synproxy); in ipv6_synproxy_hook()
/net/openvswitch/
Dconntrack.c91 static u8 ovs_ct_get_state(enum ip_conntrack_info ctinfo) in ovs_ct_get_state() argument
95 switch (ctinfo) { in ovs_ct_get_state()
104 switch (ctinfo) { in ovs_ct_get_state()
171 enum ip_conntrack_info ctinfo; in ovs_ct_update_key() local
175 ct = nf_ct_get(skb, &ctinfo); in ovs_ct_update_key()
177 state = ovs_ct_get_state(ctinfo); in ovs_ct_update_key()
236 enum ip_conntrack_info ctinfo; in ovs_ct_set_mark() local
241 ct = nf_ct_get(skb, &ctinfo); in ovs_ct_set_mark()
262 enum ip_conntrack_info ctinfo; in ovs_ct_set_labels() local
268 ct = nf_ct_get(skb, &ctinfo); in ovs_ct_set_labels()
[all …]

123