Home
last modified time | relevance | path

Searched refs:IP_CT_DIR_ORIGINAL (Results 1 – 25 of 44) sorted by relevance

12

/linux/net/netfilter/
H A Dxt_connbytes.c45 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].packets); in connbytes_mt()
51 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].packets); in connbytes_mt()
59 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); in connbytes_mt()
65 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); in connbytes_mt()
73 bytes = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); in connbytes_mt()
74 pkts = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].packets); in connbytes_mt()
81 bytes = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes) + in connbytes_mt()
83 pkts = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].packets) + in connbytes_mt()
H A Dnf_conntrack_core.c311 tuple->dst.dir = IP_CT_DIR_ORIGINAL; in nf_ct_get_tuple()
497 d = (unsigned long)siphash(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in nf_ct_get_id()
498 sizeof(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple), in nf_ct_get_id()
511 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode); in clean_from_lists()
611 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in __nf_ct_delete_from_lists()
612 nf_ct_zone_id(nf_ct_zone(ct), IP_CT_DIR_ORIGINAL)); in __nf_ct_delete_from_lists()
638 hlist_nulls_add_head_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode, in nf_ct_add_to_ecache_list()
705 return nf_ct_tuple_equal(&ct1->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in nf_ct_match()
706 &ct2->tuplehash[IP_CT_DIR_ORIGINAL].tuple) && in nf_ct_match()
709 nf_ct_zone_equal(ct1, nf_ct_zone(ct2), IP_CT_DIR_ORIGINAL) && in nf_ct_match()
[all …]
H A Dxt_conntrack.c44 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3, in conntrack_mt_origsrc()
53 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u3, in conntrack_mt_origdst()
81 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ct_proto_port_check()
125 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ct_proto_port_check_v3()
194 (CTINFO2DIR(ctinfo) == IP_CT_DIR_ORIGINAL) ^ in conntrack_mt()
H A Dxt_cluster.c18 return (__force u32)ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip; in nf_ct_orig_ipv4_src()
23 return (__force u32 *)ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip6; in nf_ct_orig_ipv6_src()
H A Dnf_conntrack_proto_dccp.c411 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_CLIENT; in dccp_new()
415 ct->proto.dccp.last_dir = IP_CT_DIR_ORIGINAL; in dccp_new()
656 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL]) || in dccp_to_nlattr()
709 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_CLIENT; in nlattr_to_dccp()
712 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_SERVER; in nlattr_to_dccp()
H A Dnf_conntrack_sane.c93 if (dir == IP_CT_DIR_ORIGINAL) { in help()
151 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in help()
H A Dnf_synproxy_core.c564 nth->window = htons(state->seen[IP_CT_DIR_ORIGINAL].td_maxwin); in synproxy_send_server_ack()
672 if (th->rst && CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) { in ipv4_synproxy_hook()
679 CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) in ipv4_synproxy_hook()
695 CTINFO2DIR(ctinfo) == IP_CT_DIR_ORIGINAL) { in ipv4_synproxy_hook()
978 nth->window = htons(state->seen[IP_CT_DIR_ORIGINAL].td_maxwin); in synproxy_send_server_ack_ipv6()
1095 if (th->rst && CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) { in ipv6_synproxy_hook()
1102 CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) in ipv6_synproxy_hook()
1118 CTINFO2DIR(ctinfo) == IP_CT_DIR_ORIGINAL) { in ipv6_synproxy_hook()
H A Dnf_nat_core.c138 if (dir == IP_CT_DIR_ORIGINAL) in __nf_nat_decode_session()
307 if (nf_ct_tuple_equal(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in nf_nat_used_tuple_new()
310 &ignored_ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple)) { in nf_nat_used_tuple_new()
380 if (thash->tuple.dst.dir == IP_CT_DIR_ORIGINAL) in nf_nat_used_tuple_harder()
469 t = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in same_src()
489 nf_ct_zone_equal(ct, zone, IP_CT_DIR_ORIGINAL)) { in find_appropriate_src()
833 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in nf_nat_setup_info()
1011 h = hash_by_src(nf_ct_net(ct), nf_ct_zone(ct), &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in nf_nat_cleanup_conntrack()
H A Dnf_conntrack_amanda.c104 if (CTINFO2DIR(ctinfo) == IP_CT_DIR_ORIGINAL) in amanda_help()
152 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in amanda_help()
H A Dnf_conntrack_pptp.c170 memcpy(&t, &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, sizeof(t)); in pptp_destroy_siblings()
203 dir = IP_CT_DIR_ORIGINAL; in exp_gre()
229 if (nf_ct_gre_keymap_add(ct, IP_CT_DIR_ORIGINAL, &exp_orig->tuple) != 0) in exp_gre()
568 if (dir == IP_CT_DIR_ORIGINAL) in conntrack_pptp_help()
H A Dnf_conntrack_proto.c299 sin.sin_port = ct->tuplehash[IP_CT_DIR_ORIGINAL] in getorigdst()
301 sin.sin_addr.s_addr = ct->tuplehash[IP_CT_DIR_ORIGINAL] in getorigdst()
359 sin6.sin6_port = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u.tcp.port; in ipv6_getorigdst()
362 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u3.in6, in ipv6_getorigdst()
H A Dnf_nat_tftp.c30 = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.udp.port; in help()
H A Dnf_nat_amanda.c40 exp->dir = IP_CT_DIR_ORIGINAL; in help()
H A Dnf_conntrack_proto_sctp.c256 new_state = sctp_new_state(IP_CT_DIR_ORIGINAL, in sctp_new()
285 ct->proto.sctp.vtag[IP_CT_DIR_ORIGINAL] = sh->vtag; in sctp_new()
573 ct->proto.sctp.vtag[IP_CT_DIR_ORIGINAL]) || in sctp_to_nlattr()
622 ct->proto.sctp.vtag[IP_CT_DIR_ORIGINAL] = in nlattr_to_sctp()
H A Dnf_conntrack_broadcast.c36 if (CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) in nf_conntrack_broadcast_help()
H A Dnf_nat_sip.c342 pair_exp->tuple.dst.protonum == ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum && in nf_nat_sip_expected()
343 nf_inet_addr_cmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3, &pair_exp->saved_addr) && in nf_nat_sip_expected()
344 ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.all == pair_exp->saved_proto.all) { in nf_nat_sip_expected()
360 nf_inet_addr_cmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3, in nf_nat_sip_expected()
H A Dnf_conntrack_tftp.c61 nf_ct_dump_tuple(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in tftp_help()
/linux/include/uapi/linux/netfilter/
H A Dnf_conntrack_tuple_common.h12 IP_CT_DIR_ORIGINAL, enumerator
44 #define CTINFO2DIR(ctinfo) ((ctinfo) >= IP_CT_IS_REPLY ? IP_CT_DIR_REPLY : IP_CT_DIR_ORIGINAL)
/linux/net/ipv4/netfilter/
H A Dnf_socket_ipv4.c139 daddr = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip; in nf_sk_lookup_slow_v4()
141 ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.tcp.port : in nf_sk_lookup_slow_v4()
142 ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.udp.port; in nf_sk_lookup_slow_v4()
H A Dnf_nat_pptp.c63 if (exp->dir == IP_CT_DIR_ORIGINAL) { in pptp_nat_expected()
101 if (exp->dir == IP_CT_DIR_ORIGINAL) { in pptp_nat_expected()
220 expect_orig->dir = IP_CT_DIR_ORIGINAL; in pptp_exp_gre()
H A Dnf_nat_snmp_basic_main.c135 if (dir == IP_CT_DIR_ORIGINAL) { in snmp_translate()
172 if (udph->dest == htons(SNMP_TRAP_PORT) && dir != IP_CT_DIR_ORIGINAL) in help()
/linux/net/netfilter/ipvs/
H A Dip_vs_nfct.c90 if (CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) in ip_vs_update_conntrack()
157 orig = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ip_vs_nfct_expect_callback()
252 .dst = { .protonum = cp->protocol, .dir = IP_CT_DIR_ORIGINAL } }; in ip_vs_conn_drop_conntrack()
/linux/include/linux/netfilter/
H A Dnf_conntrack_zones_common.h9 #define NF_CT_ZONE_DIR_ORIG (1 << IP_CT_DIR_ORIGINAL)
/linux/include/net/netfilter/
H A Dnf_conntrack.h143 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.l3num; in nf_ct_l3num()
148 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum; in nf_ct_protonum()
H A Dnf_nat.h64 CTINFO2DIR(ctinfo) == IP_CT_DIR_ORIGINAL && in nf_nat_oif_changed()

12