/kernel/linux/linux-5.10/net/netfilter/ |
D | xt_nat.c | 56 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 …]
|
D | nf_conntrack_h323_main.c | 65 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, 119 struct nf_conn *ct, enum ip_conntrack_info ctinfo, in get_tpkt_data() argument 123 int dir = CTINFO2DIR(ctinfo); in get_tpkt_data() 256 enum ip_conntrack_info ctinfo, in expect_rtp_rtcp() argument [all …]
|
D | nf_nat_sip.c | 40 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 …]
|
D | nf_conntrack_seqadj.c | 10 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 …]
|
D | nf_nat_redirect.c | 33 enum ip_conntrack_info ctinfo; in nf_nat_redirect_ipv4() local 40 ct = nf_ct_get(skb, &ctinfo); in nf_nat_redirect_ipv4() 41 WARN_ON(!(ct && (ctinfo == IP_CT_NEW || ctinfo == IP_CT_RELATED))); in nf_nat_redirect_ipv4() 86 enum ip_conntrack_info ctinfo; in nf_nat_redirect_ipv6() local 89 ct = nf_ct_get(skb, &ctinfo); in nf_nat_redirect_ipv6()
|
D | nf_nat_proto.c | 561 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() 685 enum ip_conntrack_info ctinfo; in nf_nat_ipv4_out() local 698 ct = nf_ct_get(skb, &ctinfo); in nf_nat_ipv4_out() 700 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_nat_ipv4_out() [all …]
|
D | nf_conntrack_core.c | 885 static void nf_ct_acct_merge(struct nf_conn *ct, enum ip_conntrack_info ctinfo, in nf_ct_acct_merge() argument 896 bytes = atomic64_read(&counter[CTINFO2DIR(ctinfo)].bytes); in nf_ct_acct_merge() 897 nf_ct_acct_update(ct, CTINFO2DIR(ctinfo), bytes); in nf_ct_acct_merge() 920 enum ip_conntrack_info ctinfo; in __nf_ct_resolve_clash() local 923 loser_ct = nf_ct_get(skb, &ctinfo); in __nf_ct_resolve_clash() 934 nf_ct_acct_merge(ct, ctinfo, loser_ct); in __nf_ct_resolve_clash() 937 nf_ct_set(skb, ct, ctinfo); in __nf_ct_resolve_clash() 1047 enum ip_conntrack_info ctinfo; in nf_ct_resolve_clash() local 1052 loser_ct = nf_ct_get(skb, &ctinfo); in nf_ct_resolve_clash() 1084 enum ip_conntrack_info ctinfo; in __nf_conntrack_confirm() local [all …]
|
D | nf_nat_masquerade.c | 33 enum ip_conntrack_info ctinfo; in nf_nat_masquerade_ipv4() local 40 ct = nf_ct_get(skb, &ctinfo); in nf_nat_masquerade_ipv4() 42 WARN_ON(!(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() 239 enum ip_conntrack_info ctinfo; in nf_nat_masquerade_ipv6() local 245 ct = nf_ct_get(skb, &ctinfo); in nf_nat_masquerade_ipv6() 246 WARN_ON(!(ct && (ctinfo == IP_CT_NEW || ctinfo == IP_CT_RELATED || in nf_nat_masquerade_ipv6() 247 ctinfo == IP_CT_RELATED_REPLY))); in nf_nat_masquerade_ipv6()
|
D | xt_state.c | 24 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()
|
D | nf_conntrack_snmp.c | 31 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()
|
D | xt_CONNSECMARK.c | 36 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()
|
D | nf_synproxy_core.c | 187 enum ip_conntrack_info ctinfo, in synproxy_tstamp_adjust() argument 218 if (CTINFO2DIR(ctinfo) == IP_CT_DIR_REPLY) { in synproxy_tstamp_adjust() 443 struct nf_conntrack *nfct, enum ip_conntrack_info ctinfo, in synproxy_send_tcp() argument 458 nf_ct_set(nskb, (struct nf_conn *)nfct, ctinfo); in synproxy_send_tcp() 667 enum ip_conntrack_info ctinfo; in ipv4_synproxy_hook() local 675 ct = nf_ct_get(skb, &ctinfo); in ipv4_synproxy_hook() 695 if (th->rst && CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) { in ipv4_synproxy_hook() 696 nf_ct_seqadj_init(ct, ctinfo, synproxy->isn - in ipv4_synproxy_hook() 702 CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) in ipv4_synproxy_hook() 709 nf_ct_seqadj_init(ct, ctinfo, 0); in ipv4_synproxy_hook() [all …]
|
D | nf_conntrack_proto.c | 125 struct nf_conn *ct, enum ip_conntrack_info ctinfo) in nf_confirm() argument 139 ct, ctinfo); in nf_confirm() 147 if (!nf_ct_seq_adjust(skb, ct, ctinfo, protoff)) { in nf_confirm() 162 enum ip_conntrack_info ctinfo; in ipv4_confirm() local 165 ct = nf_ct_get(skb, &ctinfo); in ipv4_confirm() 166 if (!ct || ctinfo == IP_CT_RELATED_REPLY) in ipv4_confirm() 171 ct, ctinfo); in ipv4_confirm() 186 enum ip_conntrack_info ctinfo; in ipv4_conntrack_local() local 189 tmpl = nf_ct_get(skb, &ctinfo); in ipv4_conntrack_local() 368 enum ip_conntrack_info ctinfo; in ipv6_confirm() local [all …]
|
D | nf_conntrack_irc.c | 34 enum ip_conntrack_info ctinfo, 107 struct nf_conn *ct, enum ip_conntrack_info ctinfo) in help() argument 115 int dir = CTINFO2DIR(ctinfo); in help() 130 if (ctinfo != IP_CT_ESTABLISHED && ctinfo != IP_CT_ESTABLISHED_REPLY) in help() 234 ret = nf_nat_irc(skb, ctinfo, protoff, in help()
|
D | nf_conntrack_pptp.c | 50 struct nf_conn *ct, enum ip_conntrack_info ctinfo, 57 struct nf_conn *ct, enum ip_conntrack_info ctinfo, 279 enum ip_conntrack_info ctinfo) in pptp_inbound_pkt() argument 388 return nf_nat_pptp_inbound(skb, ct, ctinfo, in pptp_inbound_pkt() 407 enum ip_conntrack_info ctinfo) in pptp_outbound_pkt() argument 484 return nf_nat_pptp_outbound(skb, ct, ctinfo, in pptp_outbound_pkt() 516 struct nf_conn *ct, enum ip_conntrack_info ctinfo) in conntrack_pptp_help() argument 519 int dir = CTINFO2DIR(ctinfo); in conntrack_pptp_help() 542 if (ctinfo != IP_CT_ESTABLISHED && ctinfo != IP_CT_ESTABLISHED_REPLY) in conntrack_pptp_help() 593 ctinfo); in conntrack_pptp_help() [all …]
|
D | nf_conntrack_sip.c | 854 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 …]
|
/kernel/linux/linux-5.10/include/linux/netfilter/ |
D | nf_conntrack_h323.h | 53 enum ip_conntrack_info ctinfo, 58 enum ip_conntrack_info ctinfo, 63 enum ip_conntrack_info ctinfo, 71 enum ip_conntrack_info ctinfo, 77 enum ip_conntrack_info ctinfo, 84 enum ip_conntrack_info ctinfo, 91 enum ip_conntrack_info ctinfo,
|
/kernel/linux/linux-5.10/include/net/netfilter/ |
D | nf_nat_helper.h | 12 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,
|
D | nf_conntrack_l4proto.h | 97 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,
|
D | nf_conntrack_seqadj.h | 34 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);
|
D | nf_nat.h | 58 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,
|
D | nf_conntrack.h | 150 nf_ct_get(const struct sk_buff *skb, enum ip_conntrack_info *ctinfo) in nf_ct_get() argument 154 *ctinfo = nfct & NFCT_INFOMASK; in nf_ct_get() 186 void __nf_ct_refresh_acct(struct nf_conn *ct, enum ip_conntrack_info ctinfo, 192 enum ip_conntrack_info ctinfo, in nf_ct_refresh_acct() argument 196 __nf_ct_refresh_acct(ct, ctinfo, skb, extra_jiffies, true); in nf_ct_refresh_acct() 208 bool nf_ct_kill_acct(struct nf_conn *ct, enum ip_conntrack_info ctinfo,
|
/kernel/linux/linux-5.10/net/bridge/netfilter/ |
D | nf_conntrack_bridge.c | 148 enum ip_conntrack_info ctinfo; in nf_ct_br_defrag4() local 156 ct = nf_ct_get(skb, &ctinfo); in nf_ct_br_defrag4() 158 zone_id = nf_ct_zone_id(nf_ct_zone(ct), CTINFO2DIR(ctinfo)); in nf_ct_br_defrag4() 179 enum ip_conntrack_info ctinfo; in nf_ct_br_defrag6() local 184 ct = nf_ct_get(skb, &ctinfo); in nf_ct_br_defrag6() 186 zone_id = nf_ct_zone_id(nf_ct_zone(ct), CTINFO2DIR(ctinfo)); in nf_ct_br_defrag6() 243 enum ip_conntrack_info ctinfo; in nf_ct_bridge_pre() local 248 ct = nf_ct_get(skb, &ctinfo); in nf_ct_bridge_pre() 250 ctinfo == IP_CT_UNTRACKED) in nf_ct_bridge_pre() 370 enum ip_conntrack_info ctinfo; in nf_ct_bridge_confirm() local [all …]
|
/kernel/linux/linux-5.10/net/ipv4/netfilter/ |
D | nf_nat_h323.c | 27 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 …]
|
/kernel/linux/linux-5.10/net/sched/ |
D | act_ct.c | 174 enum ip_conntrack_info ctinfo; in tcf_ct_flow_table_add_action_meta() local 182 ctinfo = dir == IP_CT_DIR_ORIGINAL ? IP_CT_ESTABLISHED : in tcf_ct_flow_table_add_action_meta() 185 entry->ct_metadata.cookie = (unsigned long)ct | ctinfo; in tcf_ct_flow_table_add_action_meta() 390 enum ip_conntrack_info ctinfo) in tcf_ct_flow_table_process_conn() argument 394 if (ctinfo != IP_CT_ESTABLISHED && ctinfo != IP_CT_ESTABLISHED_REPLY) in tcf_ct_flow_table_process_conn() 511 enum ip_conntrack_info ctinfo; in tcf_ct_flow_table_lookup() local 518 ct = nf_ct_get(skb, &ctinfo); in tcf_ct_flow_table_lookup() 519 if ((ct && !nf_ct_is_template(ct)) || ctinfo == IP_CT_UNTRACKED) in tcf_ct_flow_table_lookup() 548 ctinfo = dir == FLOW_OFFLOAD_DIR_ORIGINAL ? IP_CT_ESTABLISHED : in tcf_ct_flow_table_lookup() 553 nf_ct_set(skb, ct, ctinfo); in tcf_ct_flow_table_lookup() [all …]
|