Home
last modified time | relevance | path

Searched refs:nf_conntrack_tuple (Results 1 – 25 of 46) sorted by relevance

12

/linux/include/net/netfilter/
H A Dnf_conntrack_tuple.h37 struct nf_conntrack_tuple { struct
85 static inline void nf_ct_dump_tuple_ip(const struct nf_conntrack_tuple *t) in nf_ct_dump_tuple_ip() argument
95 static inline void nf_ct_dump_tuple_ipv6(const struct nf_conntrack_tuple *t) in nf_ct_dump_tuple_ipv6()
105 static inline void nf_ct_dump_tuple(const struct nf_conntrack_tuple *t) in nf_ct_dump_tuple()
124 struct nf_conntrack_tuple tuple;
127 static inline bool __nf_ct_tuple_src_equal(const struct nf_conntrack_tuple *t1, in __nf_ct_tuple_src_equal()
128 const struct nf_conntrack_tuple *t2) in __nf_ct_tuple_src_equal()
135 static inline bool __nf_ct_tuple_dst_equal(const struct nf_conntrack_tuple *t1, in __nf_ct_tuple_dst_equal()
136 const struct nf_conntrack_tuple *t2) in __nf_ct_tuple_dst_equal()
143 static inline bool nf_ct_tuple_equal(const struct nf_conntrack_tuple *t1, in nf_ct_tuple_equal()
[all …]
H A Dnf_conntrack_l4proto.h41 const struct nf_conntrack_tuple *t);
45 struct nf_conntrack_tuple *t,
67 struct nf_conntrack_tuple *tuple);
72 struct nf_conntrack_tuple *tuple);
74 bool nf_conntrack_invert_icmp_tuple(struct nf_conntrack_tuple *tuple,
75 const struct nf_conntrack_tuple *orig);
76 bool nf_conntrack_invert_icmpv6_tuple(struct nf_conntrack_tuple *tuple,
77 const struct nf_conntrack_tuple *orig);
154 const struct nf_conntrack_tuple *tuple);
156 struct nf_conntrack_tuple *t,
H A Dnf_conntrack_core.h43 bool nf_ct_invert_tuple(struct nf_conntrack_tuple *inverse,
44 const struct nf_conntrack_tuple *orig);
50 const struct nf_conntrack_tuple *tuple);
76 void print_tuple(struct seq_file *s, const struct nf_conntrack_tuple *tuple,
H A Dnf_conntrack_expect.h26 struct nf_conntrack_tuple tuple;
93 const struct nf_conntrack_tuple *tuple);
98 const struct nf_conntrack_tuple *tuple);
103 const struct nf_conntrack_tuple *tuple, bool unlink);
H A Dnf_conntrack.h165 int nf_conntrack_tuple_taken(const struct nf_conntrack_tuple *tuple,
204 struct nf_conntrack_tuple *tuple);
257 const struct nf_conntrack_tuple *orig,
258 const struct nf_conntrack_tuple *repl,
284 const struct nf_conntrack_tuple *newreply) in nf_conntrack_alter_reply()
H A Dnf_conntrack_count.h24 const struct nf_conntrack_tuple *tuple,
28 const struct nf_conntrack_tuple *tuple,
/linux/include/linux/netfilter/
H A Dnf_conntrack_proto_gre.h20 struct nf_conntrack_tuple tuple;
26 struct nf_conntrack_tuple *t);
32 struct net *net, struct nf_conntrack_tuple *tuple);
/linux/net/netfilter/
H A Dnf_nat_core.c64 const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; in nf_nat_ipv4_decode_session()
97 const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; in nf_nat_ipv6_decode_session()
158 const struct nf_conntrack_tuple *tuple) in hash_by_src()
216 nf_nat_used_tuple(const struct nf_conntrack_tuple *tuple, in nf_nat_used_tuple()
225 struct nf_conntrack_tuple reply; in nf_nat_used_tuple()
248 nf_nat_used_tuple_new(const struct nf_conntrack_tuple *tuple, in nf_nat_used_tuple_new()
346 nf_nat_used_tuple_harder(const struct nf_conntrack_tuple *tuple, in nf_nat_used_tuple_harder()
353 struct nf_conntrack_tuple reply; in nf_nat_used_tuple_harder()
401 static bool nf_nat_inet_in_range(const struct nf_conntrack_tuple *t, in nf_nat_inet_in_range()
413 static bool l4proto_in_range(const struct nf_conntrack_tuple *tuple, in l4proto_in_range()
[all …]
H A Dnf_nat_proto.c35 const struct nf_conntrack_tuple *t,
41 const struct nf_conntrack_tuple *tuple, in __udp_manip_pkt()
67 const struct nf_conntrack_tuple *tuple, in udp_manip_pkt()
83 const struct nf_conntrack_tuple *tuple, in udplite_manip_pkt()
101 const struct nf_conntrack_tuple *tuple, in sctp_manip_pkt()
143 const struct nf_conntrack_tuple *tuple, in tcp_manip_pkt()
185 const struct nf_conntrack_tuple *tuple, in dccp_manip_pkt()
225 const struct nf_conntrack_tuple *tuple, in icmp_manip_pkt()
256 const struct nf_conntrack_tuple *tuple, in icmpv6_manip_pkt()
280 const struct nf_conntrack_tuple *tuple, in gre_manip_pkt()
[all …]
H A Dnf_conntrack_proto_icmp.c28 struct net *net, struct nf_conntrack_tuple *tuple) in icmp_pkt_to_tuple()
56 bool nf_conntrack_invert_icmp_tuple(struct nf_conntrack_tuple *tuple, in nf_conntrack_invert_icmp_tuple()
57 const struct nf_conntrack_tuple *orig) in nf_conntrack_invert_icmp_tuple()
111 struct nf_conntrack_tuple innertuple, origtuple; in nf_conntrack_inet_error()
256 const struct nf_conntrack_tuple *t) in icmp_tuple_to_nlattr()
275 struct nf_conntrack_tuple *tuple, in icmp_nlattr_to_tuple()
H A Dnf_conntrack_core.c210 static u32 hash_conntrack_raw(const struct nf_conntrack_tuple *tuple, in hash_conntrack_raw()
224 offsetofend(struct nf_conntrack_tuple, dst.__nfct_hash_offsetend), in hash_conntrack_raw()
234 const struct nf_conntrack_tuple *tuple, in __hash_conntrack()
242 const struct nf_conntrack_tuple *tuple, in hash_conntrack()
250 struct nf_conntrack_tuple *tuple) in nf_ct_get_tuple_ports()
273 struct nf_conntrack_tuple *tuple) in nf_ct_get_tuple()
421 struct net *net, struct nf_conntrack_tuple *tuple) in nf_ct_get_tuplepr()
435 nf_ct_invert_tuple(struct nf_conntrack_tuple *inverse, in nf_ct_invert_tuple()
436 const struct nf_conntrack_tuple *orig) in nf_ct_invert_tuple()
687 const struct nf_conntrack_tuple *tuple, in nf_ct_key_equal()
[all …]
H A Dnf_conntrack_proto_icmpv6.c34 struct nf_conntrack_tuple *tuple) in icmpv6_pkt_to_tuple()
70 bool nf_conntrack_invert_icmpv6_tuple(struct nf_conntrack_tuple *tuple, in nf_conntrack_invert_icmpv6_tuple()
71 const struct nf_conntrack_tuple *orig) in nf_conntrack_invert_icmpv6_tuple()
233 const struct nf_conntrack_tuple *t) in icmpv6_tuple_to_nlattr()
252 struct nf_conntrack_tuple *tuple, in icmpv6_nlattr_to_tuple()
H A Dnf_conntrack_netlink.c69 const struct nf_conntrack_tuple *tuple, in ctnetlink_dump_tuples_proto()
93 const struct nf_conntrack_tuple *tuple) in ipv4_tuple_to_nlattr()
102 const struct nf_conntrack_tuple *tuple) in ipv6_tuple_to_nlattr()
111 const struct nf_conntrack_tuple *tuple) in ctnetlink_dump_tuples_ip()
138 const struct nf_conntrack_tuple *tuple) in ctnetlink_dump_tuples()
881 struct nf_conntrack_tuple orig;
882 struct nf_conntrack_tuple reply;
923 struct nf_conntrack_tuple *tuple,
1067 static int ctnetlink_filter_match_tuple(struct nf_conntrack_tuple *filter_tuple, in ctnetlink_filter_match_tuple()
1068 struct nf_conntrack_tuple *ct_tuple, in ctnetlink_filter_match_tuple()
[all …]
H A Dnf_conntrack_proto_gre.c59 const struct nf_conntrack_tuple *t) in gre_key_cmpfn()
69 static __be16 gre_keymap_lookup(struct net *net, struct nf_conntrack_tuple *t) in gre_keymap_lookup()
90 struct nf_conntrack_tuple *t) in nf_ct_gre_keymap_add()
152 struct net *net, struct nf_conntrack_tuple *tuple) in gre_pkt_to_tuple()
H A Dnf_conncount.c43 struct nf_conntrack_tuple tuple;
127 const struct nf_conntrack_tuple *tuple, in __nf_conncount_add()
203 const struct nf_conntrack_tuple *tuple, in nf_conncount_add()
316 const struct nf_conntrack_tuple *tuple, in insert_tree()
398 const struct nf_conntrack_tuple *tuple, in count_tree()
518 const struct nf_conntrack_tuple *tuple, in nf_conncount_count()
H A Dnfnetlink_cthelper.c72 nfnl_cthelper_parse_tuple(struct nf_conntrack_tuple *tuple, in nfnl_cthelper_parse_tuple()
87 memset(tuple, 0, sizeof(struct nf_conntrack_tuple)); in nfnl_cthelper_parse_tuple()
221 struct nf_conntrack_tuple *tuple) in nfnl_cthelper_create()
250 memcpy(&helper->tuple, tuple, sizeof(struct nf_conntrack_tuple)); in nfnl_cthelper_create()
424 struct nf_conntrack_tuple tuple; in nfnl_cthelper_new()
623 struct nf_conntrack_tuple tuple; in nfnl_cthelper_get()
686 struct nf_conntrack_tuple tuple; in nfnl_cthelper_del()
H A Dxt_connlimit.c34 struct nf_conntrack_tuple tuple; in connlimit_mt()
35 const struct nf_conntrack_tuple *tuple_ptr = &tuple; in connlimit_mt()
H A Dnf_conntrack_expect.c82 static unsigned int nf_ct_expect_dst_hash(const struct net *n, const struct nf_conntrack_tuple *tup… in nf_ct_expect_dst_hash()
109 nf_ct_exp_equal(const struct nf_conntrack_tuple *tuple, in nf_ct_exp_equal()
133 const struct nf_conntrack_tuple *tuple) in __nf_ct_expect_find()
155 const struct nf_conntrack_tuple *tuple) in nf_ct_expect_find_get()
174 const struct nf_conntrack_tuple *tuple, bool unlink) in nf_ct_find_expectation()
H A Dnf_conntrack_bpf.c69 struct nf_conntrack_tuple *tuple) in bpf_nf_ct_tuple_parse()
112 struct nf_conntrack_tuple otuple, rtuple; in __bpf_nf_ct_alloc_entry()
178 struct nf_conntrack_tuple tuple; in __bpf_nf_ct_lookup()
H A Dnft_connlimit.c28 const struct nf_conntrack_tuple *tuple_ptr; in nft_connlimit_do_eval()
29 struct nf_conntrack_tuple tuple; in nft_connlimit_do_eval()
H A Dnft_ct.c59 const struct nf_conntrack_tuple *tuple; in nft_ct_get_eval()
436 len = sizeof_field(struct nf_conntrack_tuple, in nft_ct_get_init()
441 len = sizeof_field(struct nf_conntrack_tuple, in nft_ct_get_init()
453 len = sizeof_field(struct nf_conntrack_tuple, src.u3.ip); in nft_ct_get_init()
460 len = sizeof_field(struct nf_conntrack_tuple, src.u3.ip6); in nft_ct_get_init()
466 len = sizeof_field(struct nf_conntrack_tuple, src.u.all); in nft_ct_get_init()
H A Dxt_conntrack.c79 const struct nf_conntrack_tuple *tuple; in ct_proto_port_check()
123 const struct nf_conntrack_tuple *tuple; in ct_proto_port_check_v3()
/linux/net/netfilter/ipvs/
H A Dip_vs_nfct.c75 struct nf_conntrack_tuple new_tuple; in ip_vs_update_conntrack()
143 struct nf_conntrack_tuple *orig, new_reply; in ip_vs_nfct_expect_callback()
246 struct nf_conntrack_tuple tuple; in ip_vs_conn_drop_conntrack()
251 tuple = (struct nf_conntrack_tuple) { in ip_vs_conn_drop_conntrack()
/linux/include/linux/
H A Dnetfilter.h448 struct nf_conntrack_tuple;
449 bool nf_ct_get_tuple_skb(struct nf_conntrack_tuple *dst_tuple,
454 struct nf_conntrack_tuple;
455 static inline bool nf_ct_get_tuple_skb(struct nf_conntrack_tuple *dst_tuple, in nf_ct_get_tuple_skb()
468 bool (*get_tuple_skb)(struct nf_conntrack_tuple *,
/linux/net/sched/
H A Dact_ct.c96 tcf_ct_flow_table_add_action_nat_ipv4(const struct nf_conntrack_tuple *tuple, in tcf_ct_flow_table_add_action_nat_ipv4()
97 struct nf_conntrack_tuple target, in tcf_ct_flow_table_add_action_nat_ipv4()
126 tcf_ct_flow_table_add_action_nat_ipv6(const struct nf_conntrack_tuple *tuple, in tcf_ct_flow_table_add_action_nat_ipv6()
127 struct nf_conntrack_tuple target, in tcf_ct_flow_table_add_action_nat_ipv6()
141 tcf_ct_flow_table_add_action_nat_tcp(const struct nf_conntrack_tuple *tuple, in tcf_ct_flow_table_add_action_nat_tcp()
142 struct nf_conntrack_tuple target, in tcf_ct_flow_table_add_action_nat_tcp()
159 tcf_ct_flow_table_add_action_nat_udp(const struct nf_conntrack_tuple *tuple, in tcf_ct_flow_table_add_action_nat_udp()
160 struct nf_conntrack_tuple target, in tcf_ct_flow_table_add_action_nat_udp()
207 const struct nf_conntrack_tuple *tuple = &ct->tuplehash[dir].tuple; in tcf_ct_flow_table_add_action_nat()
208 struct nf_conntrack_tuple target; in tcf_ct_flow_table_add_action_nat()
[all …]

12