Home
last modified time | relevance | path

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

12

/linux-6.1.9/net/netfilter/
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()
Dnf_conntrack_core.c321 tuple->dst.dir = IP_CT_DIR_ORIGINAL; in nf_ct_get_tuple()
507 d = (unsigned long)siphash(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in nf_ct_get_id()
508 sizeof(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple), in nf_ct_get_id()
522 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode); in clean_from_lists()
624 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in __nf_ct_delete_from_lists()
625 nf_ct_zone_id(nf_ct_zone(ct), IP_CT_DIR_ORIGINAL)); in __nf_ct_delete_from_lists()
651 hlist_nulls_add_head_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode, in nf_ct_add_to_ecache_list()
718 return nf_ct_tuple_equal(&ct1->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in nf_ct_match()
719 &ct2->tuplehash[IP_CT_DIR_ORIGINAL].tuple) && in nf_ct_match()
722 nf_ct_zone_equal(ct1, nf_ct_zone(ct2), IP_CT_DIR_ORIGINAL) && in nf_ct_match()
[all …]
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()
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()
Dnf_conntrack_proto_dccp.c409 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_CLIENT; in dccp_new()
413 ct->proto.dccp.last_dir = IP_CT_DIR_ORIGINAL; in dccp_new()
608 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL]) || in dccp_to_nlattr()
661 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_CLIENT; in nlattr_to_dccp()
664 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_SERVER; in nlattr_to_dccp()
Dnf_conntrack_sane.c93 if (dir == IP_CT_DIR_ORIGINAL) { in help()
151 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in help()
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()
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()
Dnf_nat_tftp.c30 = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.udp.port; in help()
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()
Dnf_conntrack_proto.c288 sin.sin_port = ct->tuplehash[IP_CT_DIR_ORIGINAL] in getorigdst()
290 sin.sin_addr.s_addr = ct->tuplehash[IP_CT_DIR_ORIGINAL] in getorigdst()
357 sin6.sin6_port = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u.tcp.port; in ipv6_getorigdst()
360 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u3.in6, in ipv6_getorigdst()
Dnf_nat_amanda.c40 exp->dir = IP_CT_DIR_ORIGINAL; in help()
Dnf_conntrack_proto_sctp.c272 new_state = sctp_new_state(IP_CT_DIR_ORIGINAL, in sctp_new()
301 ct->proto.sctp.vtag[IP_CT_DIR_ORIGINAL] = sh->vtag; in sctp_new()
563 ct->proto.sctp.vtag[IP_CT_DIR_ORIGINAL]) || in sctp_to_nlattr()
612 ct->proto.sctp.vtag[IP_CT_DIR_ORIGINAL] = in nlattr_to_sctp()
Dnf_conntrack_broadcast.c36 if (CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) in nf_conntrack_broadcast_help()
Dnf_nat_core.c135 if (dir == IP_CT_DIR_ORIGINAL) in __nf_nat_decode_session()
268 t = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in same_src()
288 nf_ct_zone_equal(ct, zone, IP_CT_DIR_ORIGINAL)) { in find_appropriate_src()
630 &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in nf_nat_setup_info()
808 h = hash_by_src(nf_ct_net(ct), nf_ct_zone(ct), &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in nf_nat_cleanup_conntrack()
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()
Dnf_conntrack_tftp.c61 nf_ct_dump_tuple(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in tftp_help()
/linux-6.1.9/include/uapi/linux/netfilter/
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-6.1.9/net/ipv4/netfilter/
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()
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()
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-6.1.9/net/netfilter/ipvs/
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-6.1.9/include/linux/netfilter/
Dnf_conntrack_zones_common.h9 #define NF_CT_ZONE_DIR_ORIG (1 << IP_CT_DIR_ORIGINAL)
/linux-6.1.9/include/net/netfilter/
Dnf_conntrack.h137 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.l3num; in nf_ct_l3num()
142 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum; in nf_ct_protonum()
Dnf_nat.h64 CTINFO2DIR(ctinfo) == IP_CT_DIR_ORIGINAL && in nf_nat_oif_changed()

12