/linux-6.6.21/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 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 …]
|
D | nf_nat_ovs.c | 11 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 …]
|
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 | nft_ct_fast.c | 13 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()
|
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_conntrack_core.c | 963 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 …]
|
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() 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 …]
|
D | nf_nat_masquerade.c | 34 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()
|
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() 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 …]
|
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 …]
|
D | nf_conntrack_irc.c | 34 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()
|
D | nf_conntrack_proto_udp.c | 87 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/ |
D | nf_conntrack_h323.h | 49 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/ |
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, 108 enum ip_conntrack_info ctinfo, int *action,
|
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_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_conntrack_act_ct.h | 24 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()
|
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,
|
/linux-6.6.21/net/bridge/netfilter/ |
D | nf_conntrack_bridge.c | 149 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/ |
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 …]
|
/linux-6.6.21/net/sched/ |
D | act_ct.c | 173 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 …]
|