/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() 257 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_conntrack_core.c | 958 static void nf_ct_acct_merge(struct nf_conn *ct, enum ip_conntrack_info ctinfo, in nf_ct_acct_merge() argument 969 bytes = atomic64_read(&counter[CTINFO2DIR(ctinfo)].bytes); in nf_ct_acct_merge() 970 nf_ct_acct_update(ct, CTINFO2DIR(ctinfo), bytes); in nf_ct_acct_merge() 993 enum ip_conntrack_info ctinfo; in __nf_ct_resolve_clash() local 996 loser_ct = nf_ct_get(skb, &ctinfo); in __nf_ct_resolve_clash() 1007 nf_ct_acct_merge(ct, ctinfo, loser_ct); in __nf_ct_resolve_clash() 1010 nf_ct_set(skb, ct, ctinfo); in __nf_ct_resolve_clash() 1120 enum ip_conntrack_info ctinfo; in nf_ct_resolve_clash() local 1125 loser_ct = nf_ct_get(skb, &ctinfo); in nf_ct_resolve_clash() 1158 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 | 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 | 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() 442 struct nf_conntrack *nfct, enum ip_conntrack_info ctinfo, in synproxy_send_tcp() argument 457 nf_ct_set(nskb, (struct nf_conn *)nfct, ctinfo); in synproxy_send_tcp() 666 enum ip_conntrack_info ctinfo; in ipv4_synproxy_hook() local 674 ct = nf_ct_get(skb, &ctinfo); in ipv4_synproxy_hook() 694 if (th->rst && CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) { in ipv4_synproxy_hook() 695 nf_ct_seqadj_init(ct, ctinfo, synproxy->isn - in ipv4_synproxy_hook() 701 CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) in ipv4_synproxy_hook() 708 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 | 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_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_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 | 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() 595 ctinfo); in conntrack_pptp_help() [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() 238 ret = nf_nat_irc(skb, ctinfo, protoff, in 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_conntrack_proto_udp.c | 87 enum ip_conntrack_info ctinfo, in nf_conntrack_udp_packet() argument 115 nf_ct_refresh_acct(ct, ctinfo, skb, extra); in nf_conntrack_udp_packet() 125 nf_ct_refresh_acct(ct, ctinfo, skb, timeouts[UDP_CT_UNREPLIED]); in nf_conntrack_udp_packet() 184 enum ip_conntrack_info ctinfo, in nf_conntrack_udplite_packet() argument 199 nf_ct_refresh_acct(ct, ctinfo, skb, in nf_conntrack_udplite_packet() 209 nf_ct_refresh_acct(ct, ctinfo, skb, timeouts[UDP_CT_UNREPLIED]); in nf_conntrack_udplite_packet()
|
D | nf_conntrack_proto_icmp.c | 72 enum ip_conntrack_info ctinfo, in nf_conntrack_icmp_packet() argument 101 nf_ct_refresh_acct(ct, ctinfo, skb, *timeout); in nf_conntrack_icmp_packet() 114 enum ip_conntrack_info ctinfo; in nf_conntrack_inet_error() local 187 ctinfo = IP_CT_RELATED; in nf_conntrack_inet_error() 189 ctinfo += IP_CT_IS_REPLY; in nf_conntrack_inet_error() 192 nf_ct_set(skb, ct, ctinfo); in nf_conntrack_inet_error()
|
D | nf_conntrack_sane.c | 65 enum ip_conntrack_info ctinfo) in help() argument 72 int dir = CTINFO2DIR(ctinfo); in help() 80 if (ctinfo != IP_CT_ESTABLISHED && in help() 81 ctinfo != IP_CT_ESTABLISHED_REPLY) in help()
|
D | nf_nat_core.c | 124 enum ip_conntrack_info ctinfo; in __nf_nat_decode_session() local 129 ct = nf_ct_get(skb, &ctinfo); in __nf_nat_decode_session() 134 dir = CTINFO2DIR(ctinfo); in __nf_nat_decode_session() 676 enum ip_conntrack_info ctinfo, in nf_nat_packet() argument 681 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_nat_packet() 707 enum ip_conntrack_info ctinfo; in nf_nat_inet_fn() local 712 ct = nf_ct_get(skb, &ctinfo); in nf_nat_inet_fn() 723 switch (ctinfo) { in nf_nat_inet_fn() 756 if (nf_nat_oif_changed(state->hook, ctinfo, nat, in nf_nat_inet_fn() 763 WARN_ON(ctinfo != IP_CT_ESTABLISHED && in nf_nat_inet_fn() [all …]
|
/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() 296 enum ip_conntrack_info ctinfo; in nf_ct_bridge_in() local [all …]
|
/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 …]
|
D | nf_socket_ipv4.c | 93 enum ip_conntrack_info ctinfo; in nf_sk_lookup_slow_v4() local 131 ct = nf_ct_get(skb, &ctinfo); in nf_sk_lookup_slow_v4() 134 ctinfo == IP_CT_ESTABLISHED_REPLY) || in nf_sk_lookup_slow_v4() 136 ctinfo == IP_CT_RELATED_REPLY)) && in nf_sk_lookup_slow_v4()
|
/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() 392 enum ip_conntrack_info ctinfo) in tcf_ct_flow_table_process_conn() argument 396 if (ctinfo != IP_CT_ESTABLISHED && ctinfo != IP_CT_ESTABLISHED_REPLY) in tcf_ct_flow_table_process_conn() 513 enum ip_conntrack_info ctinfo; in tcf_ct_flow_table_lookup() local 545 ctinfo = dir == FLOW_OFFLOAD_DIR_ORIGINAL ? IP_CT_ESTABLISHED : in tcf_ct_flow_table_lookup() 550 nf_ct_set(skb, ct, ctinfo); in tcf_ct_flow_table_lookup() 579 enum ip_conntrack_info ctinfo; in tcf_ct_skb_nfct_cached() local 582 ct = nf_ct_get(skb, &ctinfo); in tcf_ct_skb_nfct_cached() [all …]
|
/net/openvswitch/ |
D | conntrack.c | 118 static u8 ovs_ct_get_state(enum ip_conntrack_info ctinfo) in ovs_ct_get_state() argument 122 switch (ctinfo) { in ovs_ct_get_state() 131 switch (ctinfo) { in ovs_ct_get_state() 239 enum ip_conntrack_info ctinfo; in ovs_ct_update_key() local 243 ct = nf_ct_get(skb, &ctinfo); in ovs_ct_update_key() 245 state = ovs_ct_get_state(ctinfo); in ovs_ct_update_key() 440 enum ip_conntrack_info ctinfo; in ovs_ct_helper() local 445 ct = nf_ct_get(skb, &ctinfo); in ovs_ct_helper() 446 if (!ct || ctinfo == IP_CT_RELATED_REPLY) in ovs_ct_helper() 480 err = helper->help(skb, protoff, ct, ctinfo); in ovs_ct_helper() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_nfct.c | 73 enum ip_conntrack_info ctinfo; in ip_vs_update_conntrack() local 74 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in ip_vs_update_conntrack() 90 if (CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) in ip_vs_update_conntrack() 121 __func__, ct, ct->status, ctinfo, in ip_vs_update_conntrack() 125 __func__, ct, ct->status, ctinfo, in ip_vs_update_conntrack()
|