Home
last modified time | relevance | path

Searched refs:nf_conn (Results 1 – 122 of 122) sorted by relevance

/linux-4.4.14/include/net/netfilter/
Dnf_conntrack.h74 struct nf_conn { struct
104 struct nf_conn *master; argument
121 static inline struct nf_conn * argument
124 return container_of(hash, struct nf_conn, in nf_ct_tuplehash_to_ctrack()
128 static inline u_int16_t nf_ct_l3num(const struct nf_conn *ct) in nf_ct_l3num()
133 static inline u_int8_t nf_ct_protonum(const struct nf_conn *ct) in nf_ct_protonum()
145 static inline struct net *nf_ct_net(const struct nf_conn *ct) in nf_ct_net()
151 void nf_conntrack_alter_reply(struct nf_conn *ct,
157 const struct nf_conn *ignored_conntrack);
160 static inline struct nf_conn *
[all …]
Dnf_conntrack_helper.h42 struct nf_conn *ct,
45 void (*destroy)(struct nf_conn *ct);
47 int (*from_nlattr)(struct nlattr *attr, struct nf_conn *ct);
48 int (*to_nlattr)(struct sk_buff *skb, const struct nf_conn *ct);
65 struct nf_conn_help *nf_ct_helper_ext_add(struct nf_conn *ct,
69 int __nf_ct_try_assign_helper(struct nf_conn *ct, struct nf_conn *tmpl,
72 void nf_ct_helper_destroy(struct nf_conn *ct);
74 static inline struct nf_conn_help *nfct_help(const struct nf_conn *ct) in nfct_help()
79 static inline void *nfct_help_data(const struct nf_conn *ct) in nfct_help_data()
95 struct nf_conn *ct,
[all …]
Dnf_nat_l3proto.h29 const struct nf_conn *ct,
42 int nf_nat_icmp_reply_translation(struct sk_buff *skb, struct nf_conn *ct,
51 struct nf_conn *ct));
58 struct nf_conn *ct));
66 struct nf_conn *ct));
73 struct nf_conn *ct));
75 int nf_nat_icmpv6_reply_translation(struct sk_buff *skb, struct nf_conn *ct,
84 struct nf_conn *ct));
91 struct nf_conn *ct));
99 struct nf_conn *ct));
[all …]
Dnf_conntrack_seqadj.h23 static inline struct nf_conn_seqadj *nfct_seqadj(const struct nf_conn *ct) in nfct_seqadj()
28 static inline struct nf_conn_seqadj *nfct_seqadj_ext_add(struct nf_conn *ct) in nfct_seqadj_ext_add()
33 int nf_ct_seqadj_init(struct nf_conn *ct, enum ip_conntrack_info ctinfo,
35 int nf_ct_seqadj_set(struct nf_conn *ct, enum ip_conntrack_info ctinfo,
37 void nf_ct_tcp_seqadj_set(struct sk_buff *skb, struct nf_conn *ct,
40 int nf_ct_seq_adjust(struct sk_buff *skb, struct nf_conn *ct,
42 s32 nf_ct_seq_offset(const struct nf_conn *ct, enum ip_conntrack_dir, u32 seq);
Dnf_nat.h28 struct nf_conn;
33 struct nf_conn *ct;
42 unsigned int nf_nat_setup_info(struct nf_conn *ct,
46 extern unsigned int nf_nat_alloc_null_binding(struct nf_conn *ct,
49 struct nf_conn_nat *nf_ct_nat_ext_add(struct nf_conn *ct);
53 const struct nf_conn *ignored_conntrack);
55 static inline struct nf_conn_nat *nfct_nat(const struct nf_conn *ct) in nfct_nat()
Dnf_conntrack_ecache.h24 nf_ct_ecache_find(const struct nf_conn *ct) in nf_ct_ecache_find()
34 nf_ct_ecache_ext_add(struct nf_conn *ct, u16 ctmask, u16 expmask, gfp_t gfp) in nf_ct_ecache_ext_add()
61 struct nf_conn *ct;
75 void nf_ct_deliver_cached_events(struct nf_conn *ct);
78 nf_conntrack_event_cache(enum ip_conntrack_events event, struct nf_conn *ct) in nf_conntrack_event_cache()
95 struct nf_conn *ct, in nf_conntrack_eventmask_report()
148 nf_conntrack_event_report(enum ip_conntrack_events event, struct nf_conn *ct, in nf_conntrack_event_report()
155 nf_conntrack_event(enum ip_conntrack_events event, struct nf_conn *ct) in nf_conntrack_event()
236 struct nf_conn *ct) {} in nf_conntrack_event_cache()
238 struct nf_conn *ct, in nf_conntrack_eventmask_report()
[all …]
Dnf_conntrack_extend.h60 static inline bool nf_ct_ext_exist(const struct nf_conn *ct, u8 id) in nf_ct_ext_exist()
65 static inline void *__nf_ct_ext_find(const struct nf_conn *ct, u8 id) in __nf_ct_ext_find()
76 void __nf_ct_ext_destroy(struct nf_conn *ct);
77 static inline void nf_ct_ext_destroy(struct nf_conn *ct) in nf_ct_ext_destroy()
86 static inline void nf_ct_ext_free(struct nf_conn *ct) in nf_ct_ext_free()
93 void *__nf_ct_ext_add_length(struct nf_conn *ct, enum nf_ct_ext_id id,
105 void (*destroy)(struct nf_conn *ct);
Dnf_conntrack_labels.h17 static inline struct nf_conn_labels *nf_ct_labels_find(const struct nf_conn *ct) in nf_ct_labels_find()
26 static inline struct nf_conn_labels *nf_ct_labels_ext_add(struct nf_conn *ct) in nf_ct_labels_ext_add()
48 bool nf_connlabel_match(const struct nf_conn *ct, u16 bit);
49 int nf_connlabel_set(struct nf_conn *ct, u16 bit);
51 int nf_connlabels_replace(struct nf_conn *ct,
Dnf_conntrack_l4proto.h38 int (*packet)(struct nf_conn *ct,
48 bool (*new)(struct nf_conn *ct, const struct sk_buff *skb,
52 void (*destroy)(struct nf_conn *ct);
54 int (*error)(struct net *net, struct nf_conn *tmpl, struct sk_buff *skb,
63 void (*print_conntrack)(struct seq_file *s, struct nf_conn *);
70 struct nf_conn *ct);
75 int (*from_nlattr)(struct nlattr *tb[], struct nf_conn *ct);
Dnf_nat_helper.h10 int __nf_nat_mangle_tcp_packet(struct sk_buff *skb, struct nf_conn *ct,
17 struct nf_conn *ct, in nf_nat_mangle_tcp_packet()
30 int nf_nat_mangle_udp_packet(struct sk_buff *skb, struct nf_conn *ct,
38 void nf_nat_follow_master(struct nf_conn *ct, struct nf_conntrack_expect *this);
Dnf_conntrack_zones.h10 nf_ct_zone(const struct nf_conn *ct) in nf_ct_zone()
31 nf_ct_zone_tmpl(const struct nf_conn *tmpl, const struct sk_buff *skb, in nf_ct_zone_tmpl()
46 static inline int nf_ct_zone_add(struct nf_conn *ct, gfp_t flags, in nf_ct_zone_add()
75 static inline bool nf_ct_zone_equal(const struct nf_conn *a, in nf_ct_zone_equal()
83 static inline bool nf_ct_zone_equal_any(const struct nf_conn *a, in nf_ct_zone_equal_any()
Dnf_conntrack_synproxy.h12 static inline struct nf_conn_synproxy *nfct_synproxy(const struct nf_conn *ct) in nfct_synproxy()
21 static inline struct nf_conn_synproxy *nfct_synproxy_ext_add(struct nf_conn *ct) in nfct_synproxy_ext_add()
39 struct nf_conn *tmpl;
71 struct tcphdr *th, struct nf_conn *ct,
Dnf_nat_core.h10 unsigned int nf_nat_packet(struct nf_conn *ct, enum ip_conntrack_info ctinfo,
15 static inline int nf_nat_initialized(struct nf_conn *ct, in nf_nat_initialized()
27 (*nfnetlink_parse_nat_setup_hook)(struct nf_conn *ct,
Dnf_conntrack_expect.h26 void (*expectfn)(struct nf_conn *new,
33 struct nf_conn *master;
102 void nf_ct_remove_expectations(struct nf_conn *ct);
107 struct nf_conntrack_expect *nf_ct_expect_alloc(struct nf_conn *me);
Dnf_conntrack_acct.h27 struct nf_conn_acct *nf_conn_acct_find(const struct nf_conn *ct) in nf_conn_acct_find()
33 struct nf_conn_acct *nf_ct_acct_ext_add(struct nf_conn *ct, gfp_t gfp) in nf_ct_acct_ext_add()
49 unsigned int seq_print_acct(struct seq_file *s, const struct nf_conn *ct,
Dnf_conntrack_timeout.h39 struct nf_conn_timeout *nf_ct_timeout_find(const struct nf_conn *ct) in nf_ct_timeout_find()
49 struct nf_conn_timeout *nf_ct_timeout_ext_add(struct nf_conn *ct, in nf_ct_timeout_ext_add()
69 nf_ct_timeout_lookup(struct net *net, struct nf_conn *ct, in nf_ct_timeout_lookup()
Dnf_conntrack_timestamp.h16 struct nf_conn_tstamp *nf_conn_tstamp_find(const struct nf_conn *ct) in nf_conn_tstamp_find()
26 struct nf_conn_tstamp *nf_ct_tstamp_ext_add(struct nf_conn *ct, gfp_t gfp) in nf_ct_tstamp_ext_add()
Dnf_nat_l4proto.h38 const struct nf_conn *ct);
67 const struct nf_conn *ct, u16 *rover);
Dnf_conntrack_core.h65 struct nf_conn *ct = (struct nf_conn *)skb->nfct; in nf_conntrack_confirm()
/linux-4.4.14/include/linux/netfilter/
Dnf_conntrack_h323.h30 struct nf_conn;
32 int get_h225_addr(struct nf_conn *ct, unsigned char *data,
35 void nf_conntrack_h245_expect(struct nf_conn *new,
37 void nf_conntrack_q931_expect(struct nf_conn *new,
50 struct nf_conn *ct,
55 struct nf_conn *ct,
60 struct nf_conn *ct,
68 extern int (*nat_t120_hook) (struct sk_buff *skb, struct nf_conn *ct,
74 extern int (*nat_h245_hook) (struct sk_buff *skb, struct nf_conn *ct,
81 struct nf_conn *ct,
[all …]
Dnf_conntrack_sip.h68 int (*match_len)(const struct nf_conn *ct,
169 int ct_sip_parse_request(const struct nf_conn *ct, const char *dptr,
173 int ct_sip_get_header(const struct nf_conn *ct, const char *dptr,
177 int ct_sip_parse_header_uri(const struct nf_conn *ct, const char *dptr,
182 int ct_sip_parse_address_param(const struct nf_conn *ct, const char *dptr,
187 int ct_sip_parse_numerical_param(const struct nf_conn *ct, const char *dptr,
192 int ct_sip_get_sdp_header(const struct nf_conn *ct, const char *dptr,
Dnf_conntrack_proto_gre.h75 struct nf_conn;
84 int nf_ct_gre_keymap_add(struct nf_conn *ct, enum ip_conntrack_dir dir,
88 void nf_ct_gre_keymap_destroy(struct nf_conn *ct);
Dnf_conntrack_pptp.h300 struct nf_conn;
305 struct nf_conn *ct, enum ip_conntrack_info ctinfo,
312 struct nf_conn *ct, enum ip_conntrack_info ctinfo,
322 (*nf_nat_pptp_hook_expectfn)(struct nf_conn *ct,
Dnf_conntrack_snmp.h6 struct nf_conn *ct,
/linux-4.4.14/net/netfilter/
Dnf_conntrack_core.c58 int (*nfnetlink_parse_nat_setup_hook)(struct nf_conn *ct,
123 DEFINE_PER_CPU(struct nf_conn, nf_conntrack_untracked);
238 clean_from_lists(struct nf_conn *ct) in clean_from_lists()
249 static void nf_ct_add_to_dying_list(struct nf_conn *ct) in nf_ct_add_to_dying_list()
264 static void nf_ct_add_to_unconfirmed_list(struct nf_conn *ct) in nf_ct_add_to_unconfirmed_list()
279 static void nf_ct_del_from_dying_or_unconfirmed_list(struct nf_conn *ct) in nf_ct_del_from_dying_or_unconfirmed_list()
293 struct nf_conn *nf_ct_tmpl_alloc(struct net *net, in nf_ct_tmpl_alloc()
297 struct nf_conn *tmpl; in nf_ct_tmpl_alloc()
318 void nf_ct_tmpl_free(struct nf_conn *tmpl) in nf_ct_tmpl_free()
329 struct nf_conn *ct = (struct nf_conn *)nfct; in destroy_conntrack()
[all …]
Dnf_nat_core.c59 const struct nf_conn *ct; in __nf_nat_decode_session()
135 const struct nf_conn *ignored_conntrack) in nf_nat_used_tuple()
174 same_src(const struct nf_conn *ct, in same_src()
197 const struct nf_conn *ct; in find_appropriate_src()
225 const struct nf_conn *ct, in find_best_ips_proto()
299 struct nf_conn *ct, in get_unique_tuple()
366 struct nf_conn_nat *nf_ct_nat_ext_add(struct nf_conn *ct) in nf_ct_nat_ext_add()
380 nf_nat_setup_info(struct nf_conn *ct, in nf_nat_setup_info()
449 __nf_nat_alloc_null_binding(struct nf_conn *ct, enum nf_nat_manip_type manip) in __nf_nat_alloc_null_binding()
468 nf_nat_alloc_null_binding(struct nf_conn *ct, unsigned int hooknum) in nf_nat_alloc_null_binding()
[all …]
Dnf_conntrack_sip.c58 static int string_len(const struct nf_conn *ct, const char *dptr, in string_len()
70 static int digits_len(const struct nf_conn *ct, const char *dptr, in digits_len()
101 static int callid_len(const struct nf_conn *ct, const char *dptr, in callid_len()
120 static int media_len(const struct nf_conn *ct, const char *dptr, in media_len()
134 static int sip_parse_addr(const struct nf_conn *ct, const char *cp, in sip_parse_addr()
176 static int epaddr_len(const struct nf_conn *ct, const char *dptr, in epaddr_len()
196 static int skp_epaddr_len(const struct nf_conn *ct, const char *dptr, in skp_epaddr_len()
228 int ct_sip_parse_request(const struct nf_conn *ct, in ct_sip_parse_request()
359 int ct_sip_get_header(const struct nf_conn *ct, const char *dptr, in ct_sip_get_header()
427 static int ct_sip_next_header(const struct nf_conn *ct, const char *dptr, in ct_sip_next_header()
[all …]
Dnf_conntrack_h323_main.c64 struct nf_conn *ct,
69 struct nf_conn *ct,
74 struct nf_conn *ct,
83 struct nf_conn *ct,
90 struct nf_conn *ct,
97 struct nf_conn *ct,
104 struct nf_conn *ct,
120 struct nf_conn *ct, enum ip_conntrack_info ctinfo, in get_tpkt_data()
223 static int get_h245_addr(struct nf_conn *ct, const unsigned char *data, in get_h245_addr()
258 static int expect_rtp_rtcp(struct sk_buff *skb, struct nf_conn *ct, in expect_rtp_rtcp()
[all …]
Dnf_conntrack_netlink.c145 ctnetlink_dump_status(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_status()
156 ctnetlink_dump_timeout(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_timeout()
172 ctnetlink_dump_protoinfo(struct sk_buff *skb, struct nf_conn *ct) in ctnetlink_dump_protoinfo()
197 ctnetlink_dump_helpinfo(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_helpinfo()
261 ctnetlink_dump_acct(struct sk_buff *skb, const struct nf_conn *ct, int type) in ctnetlink_dump_acct()
277 ctnetlink_dump_timestamp(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_timestamp()
304 ctnetlink_dump_mark(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_mark()
319 ctnetlink_dump_secctx(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_secctx()
348 static int ctnetlink_label_size(const struct nf_conn *ct) in ctnetlink_label_size()
358 ctnetlink_dump_labels(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_labels()
[all …]
Dxt_cluster.c19 static inline u32 nf_ct_orig_ipv4_src(const struct nf_conn *ct) in nf_ct_orig_ipv4_src()
24 static inline const u32 *nf_ct_orig_ipv6_src(const struct nf_conn *ct) in nf_ct_orig_ipv6_src()
42 xt_cluster_hash(const struct nf_conn *ct, in xt_cluster_hash()
94 const struct nf_conn *ct; in xt_cluster_mt()
Dxt_conntrack.c43 conntrack_mt_origsrc(const struct nf_conn *ct, in conntrack_mt_origsrc()
52 conntrack_mt_origdst(const struct nf_conn *ct, in conntrack_mt_origdst()
61 conntrack_mt_replsrc(const struct nf_conn *ct, in conntrack_mt_replsrc()
70 conntrack_mt_repldst(const struct nf_conn *ct, in conntrack_mt_repldst()
80 const struct nf_conn *ct) in ct_proto_port_check()
124 const struct nf_conn *ct) in ct_proto_port_check_v3()
170 const struct nf_conn *ct; in conntrack_mt()
Dnf_conntrack_seqadj.c9 int nf_ct_seqadj_init(struct nf_conn *ct, enum ip_conntrack_info ctinfo, in nf_ct_seqadj_init()
29 int nf_ct_seqadj_set(struct nf_conn *ct, enum ip_conntrack_info ctinfo, in nf_ct_seqadj_set()
60 struct nf_conn *ct, enum ip_conntrack_info ctinfo, in nf_ct_tcp_seqadj_set()
119 struct nf_conn *ct, in nf_ct_sack_adjust()
163 struct nf_conn *ct, enum ip_conntrack_info ctinfo, in nf_ct_seq_adjust()
214 s32 nf_ct_seq_offset(const struct nf_conn *ct, in nf_ct_seq_offset()
Dnf_nat_sip.c39 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in mangle_packet()
68 static int sip_sprintf_addr(const struct nf_conn *ct, char *buffer, in sip_sprintf_addr()
81 static int sip_sprintf_addr_port(const struct nf_conn *ct, char *buffer, in sip_sprintf_addr_port()
97 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in map_addr()
131 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in map_sip_addr()
148 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in nf_nat_sip()
305 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in nf_nat_sip_seq_adjust()
316 static void nf_nat_sip_expected(struct nf_conn *ct, in nf_nat_sip_expected()
349 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in nf_nat_sip_expect()
420 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in mangle_content_len()
[all …]
Dnf_conntrack_pptp.c49 struct nf_conn *ct, enum ip_conntrack_info ctinfo,
56 struct nf_conn *ct, enum ip_conntrack_info ctinfo,
68 (*nf_nat_pptp_hook_expectfn)(struct nf_conn *ct,
102 static void pptp_expectfn(struct nf_conn *ct, in pptp_expectfn()
142 static int destroy_sibling_or_exp(struct net *net, struct nf_conn *ct, in destroy_sibling_or_exp()
148 struct nf_conn *sibling; in destroy_sibling_or_exp()
177 static void pptp_destroy_siblings(struct nf_conn *ct) in pptp_destroy_siblings()
203 static int exp_gre(struct nf_conn *ct, __be16 callid, __be16 peer_callid) in exp_gre()
272 struct nf_conn *ct, in pptp_inbound_pkt()
400 struct nf_conn *ct, in pptp_outbound_pkt()
[all …]
Dxt_CT.c23 static inline int xt_ct_target(struct sk_buff *skb, struct nf_conn *ct) in xt_ct_target()
43 struct nf_conn *ct = info->ct; in xt_ct_target_v0()
52 struct nf_conn *ct = info->ct; in xt_ct_target_v1()
76 xt_ct_set_helper(struct nf_conn *ct, const char *helper_name, in xt_ct_set_helper()
119 xt_ct_set_timeout(struct nf_conn *ct, const struct xt_tgchk_param *par, in xt_ct_set_timeout()
204 struct nf_conn *ct; in xt_ct_tg_check()
313 static void xt_ct_destroy_timeout(struct nf_conn *ct) in xt_ct_destroy_timeout()
336 struct nf_conn *ct = info->ct; in xt_ct_tg_destroy()
Dxt_nat.c48 struct nf_conn *ct; in xt_snat_target_v0()
65 struct nf_conn *ct; in xt_dnat_target_v0()
80 struct nf_conn *ct; in xt_snat_target_v1()
95 struct nf_conn *ct; in xt_dnat_target_v1()
Dnf_nat_helper.c63 if (nf_ct_l3num((struct nf_conn *)skb->nfct) == NFPROTO_IPV4) { in mangle_contents()
93 struct nf_conn *ct, in __nf_nat_mangle_tcp_packet()
147 struct nf_conn *ct, in nf_nat_mangle_udp_packet()
191 void nf_nat_follow_master(struct nf_conn *ct, in nf_nat_follow_master()
Dnf_conntrack_proto_gre.c115 int nf_ct_gre_keymap_add(struct nf_conn *ct, enum ip_conntrack_dir dir, in nf_ct_gre_keymap_add()
157 void nf_ct_gre_keymap_destroy(struct nf_conn *ct) in nf_ct_gre_keymap_destroy()
237 static void gre_print_conntrack(struct seq_file *s, struct nf_conn *ct) in gre_print_conntrack()
250 static int gre_packet(struct nf_conn *ct, in gre_packet()
274 static bool gre_new(struct nf_conn *ct, const struct sk_buff *skb, in gre_new()
290 static void gre_destroy(struct nf_conn *ct) in gre_destroy()
292 struct nf_conn *master = ct->master; in gre_destroy()
Dnf_conntrack_labels.c25 bool nf_connlabel_match(const struct nf_conn *ct, u16 bit) in nf_connlabel_match()
36 int nf_connlabel_set(struct nf_conn *ct, u16 bit) in nf_connlabel_set()
63 int nf_connlabels_replace(struct nf_conn *ct, in nf_connlabels_replace()
Dnf_conntrack_snmp.c34 struct nf_conn *ct,
39 struct nf_conn *ct, enum ip_conntrack_info ctinfo) in snmp_conntrack_help()
Dnf_conntrack_standalone.c123 static void ct_show_secctx(struct seq_file *s, const struct nf_conn *ct) in ct_show_secctx()
138 static inline void ct_show_secctx(struct seq_file *s, const struct nf_conn *ct) in ct_show_secctx()
144 static void ct_show_zone(struct seq_file *s, const struct nf_conn *ct, in ct_show_zone()
166 static inline void ct_show_zone(struct seq_file *s, const struct nf_conn *ct, in ct_show_zone()
173 static void ct_show_delta_time(struct seq_file *s, const struct nf_conn *ct) in ct_show_delta_time()
194 ct_show_delta_time(struct seq_file *s, const struct nf_conn *ct) in ct_show_delta_time()
203 struct nf_conn *ct = nf_ct_tuplehash_to_ctrack(hash); in ct_seq_show()
Dnf_conntrack_helper.c171 nf_ct_helper_ext_add(struct nf_conn *ct, in nf_ct_helper_ext_add()
186 int __nf_ct_try_assign_helper(struct nf_conn *ct, struct nf_conn *tmpl, in __nf_ct_try_assign_helper()
257 struct nf_conn *ct = nf_ct_tuplehash_to_ctrack(i); in unhelp()
267 void nf_ct_helper_destroy(struct nf_conn *ct) in nf_ct_helper_destroy()
336 void nf_ct_helper_log(struct sk_buff *skb, const struct nf_conn *ct, in nf_ct_helper_log()
Dxt_CONNSECMARK.c39 struct nf_conn *ct; in secmark_save()
57 const struct nf_conn *ct; in secmark_restore()
Dnf_nat_redirect.c36 struct nf_conn *ct; in nf_nat_redirect_ipv4()
91 struct nf_conn *ct; in nf_nat_redirect_ipv6()
Dnf_nat_ftp.c29 static int nf_nat_ftp_fmt_cmd(struct nf_conn *ct, enum nf_ct_ftp_type type, in nf_nat_ftp_fmt_cmd()
70 struct nf_conn *ct = exp->master; in nf_nat_ftp()
Dxt_connmark.c43 struct nf_conn *ct; in connmark_tg()
97 const struct nf_conn *ct; in connmark_mt()
Dnf_conntrack_ecache.c42 struct nf_conn *refs[16]; in ecache_work_evict_list()
51 struct nf_conn *ct = nf_ct_tuplehash_to_ctrack(h); in ecache_work_evict_list()
118 void nf_ct_deliver_cached_events(struct nf_conn *ct) in nf_ct_deliver_cached_events()
Dnf_conntrack_proto_generic.c77 static int generic_packet(struct nf_conn *ct, in generic_packet()
90 static bool generic_new(struct nf_conn *ct, const struct sk_buff *skb, in generic_new()
Dnf_nat_proto_unknown.c32 const struct nf_conn *ct) in unknown_unique_tuple()
Dxt_NETMAP.c26 struct nf_conn *ct; in netmap_tg6()
69 struct nf_conn *ct; in netmap_tg4()
Dnf_conntrack_proto_udp.c81 static int udp_packet(struct nf_conn *ct, in udp_packet()
105 static bool udp_new(struct nf_conn *ct, const struct sk_buff *skb, in udp_new()
111 static int udp_error(struct net *net, struct nf_conn *tmpl, struct sk_buff *skb, in udp_error()
Dnf_conntrack_proto_udplite.c89 static int udplite_packet(struct nf_conn *ct, in udplite_packet()
113 static bool udplite_new(struct nf_conn *ct, const struct sk_buff *skb, in udplite_new()
119 static int udplite_error(struct net *net, struct nf_conn *tmpl, in udplite_error()
Dnf_conntrack_proto_dccp.c422 static bool dccp_new(struct nf_conn *ct, const struct sk_buff *skb, in dccp_new()
478 static int dccp_packet(struct nf_conn *ct, const struct sk_buff *skb, in dccp_packet()
570 static int dccp_error(struct net *net, struct nf_conn *tmpl, in dccp_error()
629 static void dccp_print_conntrack(struct seq_file *s, struct nf_conn *ct) in dccp_print_conntrack()
636 struct nf_conn *ct) in dccp_to_nlattr()
665 static int nlattr_to_dccp(struct nlattr *cda[], struct nf_conn *ct) in nlattr_to_dccp()
Dnf_nat_tftp.c25 const struct nf_conn *ct = exp->master; in help()
Dnf_conntrack_extend.c22 void __nf_ct_ext_destroy(struct nf_conn *ct) in __nf_ct_ext_destroy()
72 void *__nf_ct_ext_add_length(struct nf_conn *ct, enum nf_ct_ext_id id, in __nf_ct_ext_add_length()
Dnft_ct.c40 const struct nf_conn *ct; in nft_ct_get_eval()
162 struct nf_conn *ct; in nft_ct_set_eval()
334 len = FIELD_SIZEOF(struct nf_conn, mark); in nft_ct_set_init()
Dnf_conntrack_netbios_ns.c44 struct nf_conn *ct, enum ip_conntrack_info ctinfo) in netbios_ns_help()
Dxt_state.c29 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in state_mt()
Dnf_conntrack_proto_sctp.c192 static void sctp_print_conntrack(struct seq_file *s, struct nf_conn *ct) in sctp_print_conntrack()
210 static int do_basic_checks(struct nf_conn *ct, in do_basic_checks()
323 static int sctp_packet(struct nf_conn *ct, in sctp_packet()
445 static bool sctp_new(struct nf_conn *ct, const struct sk_buff *skb, in sctp_new()
527 struct nf_conn *ct) in sctp_to_nlattr()
560 static int nlattr_to_sctp(struct nlattr *cda[], struct nf_conn *ct) in nlattr_to_sctp()
Dnf_nat_proto_tcp.c28 const struct nf_conn *ct) in tcp_unique_tuple()
Dnf_nat_proto_udp.c27 const struct nf_conn *ct) in udp_unique_tuple()
Dxt_connlimit.c89 static inline bool already_closed(const struct nf_conn *conn) in already_closed()
143 struct nf_conn *found_ct; in check_hlist()
327 const struct nf_conn *ct; in connlimit_mt()
Dnf_nat_proto_sctp.c24 const struct nf_conn *ct) in sctp_unique_tuple()
Dxt_helper.c30 const struct nf_conn *ct; in helper_mt()
Dxt_connlabel.c26 struct nf_conn *ct; in connlabel_mt()
Dnf_conntrack_expect.c188 void nf_ct_remove_expectations(struct nf_conn *ct) in nf_ct_remove_expectations()
253 struct nf_conntrack_expect *nf_ct_expect_alloc(struct nf_conn *me) in nf_ct_expect_alloc()
371 static void evict_oldest_expect(struct nf_conn *master, in evict_oldest_expect()
392 struct nf_conn *master = expect->master; in __nf_ct_expect_check()
Dnf_conntrack_broadcast.c24 struct nf_conn *ct, in nf_conntrack_broadcast_help()
Dnf_nat_proto_dccp.c30 const struct nf_conn *ct) in dccp_unique_tuple()
Dnf_nat_proto_udplite.c27 const struct nf_conn *ct) in udplite_unique_tuple()
Dnf_nat_irc.c37 struct nf_conn *ct = exp->master; in help()
Dnf_conntrack_acct.c40 seq_print_acct(struct seq_file *s, const struct nf_conn *ct, int dir) in seq_print_acct()
Dnf_nat_proto_common.c41 const struct nf_conn *ct, in nf_nat_l4proto_unique_tuple()
Dnf_synproxy_core.c186 struct nf_conn *ct, in synproxy_tstamp_adjust()
354 struct nf_conn *ct; in synproxy_net_init()
Dnf_conntrack_ftp.c360 static void update_nl_seq(struct nf_conn *ct, u32 nl_seq, in update_nl_seq()
387 struct nf_conn *ct, in help()
560 static int nf_ct_ftp_from_nlattr(struct nlattr *attr, struct nf_conn *ct) in nf_ct_ftp_from_nlattr()
Dnfnetlink_cthelper.c37 struct nf_conn *ct, enum ip_conntrack_info ctinfo) in nfnl_userspace_cthelper()
90 nfnl_cthelper_from_nlattr(struct nlattr *attr, struct nf_conn *ct) in nfnl_cthelper_from_nlattr()
105 nfnl_cthelper_to_nlattr(struct sk_buff *skb, const struct nf_conn *ct) in nfnl_cthelper_to_nlattr()
Dxt_ipvs.c117 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in ipvs_mt()
Dnf_conntrack_proto.c149 static int kill_l3proto(struct nf_conn *i, void *data) in kill_l3proto()
154 static int kill_l4proto(struct nf_conn *i, void *data) in kill_l4proto()
Dnf_conntrack_proto_tcp.c314 static void tcp_print_conntrack(struct seq_file *s, struct nf_conn *ct) in tcp_print_conntrack()
500 static bool tcp_in_window(const struct nf_conn *ct, in tcp_in_window()
752 static int tcp_error(struct net *net, struct nf_conn *tmpl, in tcp_error()
812 static int tcp_packet(struct nf_conn *ct, in tcp_packet()
1103 static bool tcp_new(struct nf_conn *ct, const struct sk_buff *skb, in tcp_new()
1184 struct nf_conn *ct) in tcp_to_nlattr()
1229 static int nlattr_to_tcp(struct nlattr *cda[], struct nf_conn *ct) in nlattr_to_tcp()
Dxt_connbytes.c24 const struct nf_conn *ct; in connbytes_mt()
Dnf_conntrack_tftp.c40 struct nf_conn *ct, in tftp_help()
Dnf_conntrack_sane.c63 struct nf_conn *ct, in help()
Dnf_conntrack_amanda.c88 struct nf_conn *ct, in amanda_help()
Dnfnetlink_queue.c314 struct nf_conn *ct = NULL; in nfqnl_build_packet_message()
1010 static struct nf_conn *nfqnl_ct_parse(struct nfnl_ct_hook *nfnl_ct, in nfqnl_ct_parse()
1016 struct nf_conn *ct; in nfqnl_ct_parse()
1046 struct nf_conn *ct = NULL; in nfqnl_recv_verdict()
Dnf_conntrack_irc.c107 struct nf_conn *ct, enum ip_conntrack_info ctinfo) in help()
Dnft_nat.c45 struct nf_conn *ct = nf_ct_get(pkt->skb, &ctinfo); in nft_nat_eval()
Dxt_HMARK.c83 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in hmark_ct_set_htuple()
Dnfnetlink_log.c407 struct nf_conn *ct, enum ip_conntrack_info ctinfo) in __build_packet_message()
638 struct nf_conn *ct = NULL; in nfulnl_log_packet()
Dxt_socket.c155 struct nf_conn const *ct; in xt_socket_lookup_slow_v4()
Dnfnetlink_cttimeout.c297 struct nf_conn *ct = nf_ct_tuplehash_to_ctrack(i); in untimeout()
/linux-4.4.14/net/ipv6/netfilter/
Dnf_nat_l3proto_ipv6.c32 const struct nf_conn *ct, in nf_nat_ipv6_decode_session()
197 struct nf_conn *ct, in nf_nat_icmpv6_reply_translation()
270 struct nf_conn *ct)) in nf_nat_ipv6_fn()
272 struct nf_conn *ct; in nf_nat_ipv6_fn()
361 struct nf_conn *ct)) in nf_nat_ipv6_in()
381 struct nf_conn *ct)) in nf_nat_ipv6_out()
384 const struct nf_conn *ct; in nf_nat_ipv6_out()
422 struct nf_conn *ct)) in nf_nat_ipv6_local_fn()
424 const struct nf_conn *ct; in nf_nat_ipv6_local_fn()
Dnf_defrag_ipv6_hooks.c40 const struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in nf_ct6_defrag_user()
62 if (skb->nfct && !nf_ct_is_template((struct nf_conn *)skb->nfct)) in ipv6_defrag()
Dnf_nat_masquerade_ipv6.c30 struct nf_conn *ct; in nf_nat_masquerade_ipv6()
53 static int device_cmp(struct nf_conn *ct, void *ifindex) in device_cmp()
Dnf_conntrack_proto_icmpv6.c103 static int icmpv6_packet(struct nf_conn *ct, in icmpv6_packet()
120 static bool icmpv6_new(struct nf_conn *ct, const struct sk_buff *skb, in icmpv6_new()
145 icmpv6_error_message(struct net *net, struct nf_conn *tmpl, in icmpv6_error_message()
198 icmpv6_error(struct net *net, struct nf_conn *tmpl, in icmpv6_error()
Dnft_chain_nat_ipv6.c30 struct nf_conn *ct) in nft_nat_do_chain()
Dnf_conntrack_l3proto_ipv6.c102 struct nf_conn *ct; in ipv6_helper()
138 struct nf_conn *ct; in ipv6_confirm()
234 struct nf_conn *ct; in ipv6_getorigdst()
Dnf_nat_proto_icmpv6.c37 const struct nf_conn *ct) in icmpv6_unique_tuple()
Dip6table_nat.c36 struct nf_conn *ct) in ip6table_nat_do_chain()
Dip6t_SYNPROXY.c325 struct nf_conn *ct; in ipv6_synproxy_hook()
/linux-4.4.14/net/ipv4/netfilter/
Dnf_nat_l3proto_ipv4.c33 const struct nf_conn *ct, in nf_nat_ipv4_decode_session()
191 struct nf_conn *ct, in nf_nat_icmp_reply_translation()
263 struct nf_conn *ct)) in nf_nat_ipv4_fn()
265 struct nf_conn *ct; in nf_nat_ipv4_fn()
353 struct nf_conn *ct)) in nf_nat_ipv4_in()
373 struct nf_conn *ct)) in nf_nat_ipv4_out()
376 const struct nf_conn *ct; in nf_nat_ipv4_out()
415 struct nf_conn *ct)) in nf_nat_ipv4_local_fn()
417 const struct nf_conn *ct; in nf_nat_ipv4_local_fn()
Dnf_nat_h323.c29 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in set_addr()
93 static int set_sig_addr(struct sk_buff *skb, struct nf_conn *ct, in set_sig_addr()
146 static int set_ras_addr(struct sk_buff *skb, struct nf_conn *ct, in set_ras_addr()
175 static int nat_rtp_rtcp(struct sk_buff *skb, struct nf_conn *ct, in nat_rtp_rtcp()
281 static int nat_t120(struct sk_buff *skb, struct nf_conn *ct, in nat_t120()
332 static int nat_h245(struct sk_buff *skb, struct nf_conn *ct, in nat_h245()
395 static void ip_nat_q931_expect(struct nf_conn *new, in ip_nat_q931_expect()
423 static int nat_q931(struct sk_buff *skb, struct nf_conn *ct, in nat_q931()
494 static void ip_nat_callforwarding_expect(struct nf_conn *new, in ip_nat_callforwarding_expect()
516 static int nat_callforwarding(struct sk_buff *skb, struct nf_conn *ct, in nat_callforwarding()
Dnf_nat_pptp.c42 static void pptp_nat_expected(struct nf_conn *ct, in pptp_nat_expected()
46 const struct nf_conn *master = ct->master; in pptp_nat_expected()
115 struct nf_conn *ct, in pptp_outbound_pkt()
193 const struct nf_conn *ct = expect_orig->master; in pptp_exp_gre()
219 struct nf_conn *ct, in pptp_inbound_pkt()
Dnf_defrag_ipv4.c49 const struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in nf_ct_defrag_user()
77 if (skb->nfct && !nf_ct_is_template((struct nf_conn *)skb->nfct)) in ipv4_conntrack_defrag()
Dnf_nat_masquerade_ipv4.c30 struct nf_conn *ct; in nf_nat_masquerade_ipv4()
75 static int device_cmp(struct nf_conn *i, void *ifindex) in device_cmp()
Dnf_conntrack_proto_icmp.c90 static int icmp_packet(struct nf_conn *ct, in icmp_packet()
107 static bool icmp_new(struct nf_conn *ct, const struct sk_buff *skb, in icmp_new()
130 icmp_error_message(struct net *net, struct nf_conn *tmpl, struct sk_buff *skb, in icmp_error_message()
182 icmp_error(struct net *net, struct nf_conn *tmpl, in icmp_error()
Dnft_chain_nat_ipv4.c32 struct nf_conn *ct) in nft_nat_do_chain()
Dnf_conntrack_l3proto_ipv4.c99 struct nf_conn *ct; in ipv4_helper()
126 struct nf_conn *ct; in ipv4_confirm()
280 struct nf_conn *ct = nf_ct_tuplehash_to_ctrack(h); in getorigdst()
Dnf_conntrack_l3proto_ipv4_compat.c97 static void ct_show_secctx(struct seq_file *s, const struct nf_conn *ct) in ct_show_secctx()
112 static inline void ct_show_secctx(struct seq_file *s, const struct nf_conn *ct) in ct_show_secctx()
120 struct nf_conn *ct = nf_ct_tuplehash_to_ctrack(hash); in ct_seq_show()
Dnf_nat_proto_icmp.c35 const struct nf_conn *ct) in icmp_unique_tuple()
Dnf_nat_proto_gre.c46 const struct nf_conn *ct) in gre_unique_tuple()
Diptable_nat.c34 struct nf_conn *ct) in iptable_nat_do_chain()
Dnf_nat_snmp_basic.c1180 static int snmp_translate(struct nf_conn *ct, in snmp_translate()
1219 struct nf_conn *ct, in help()
Dipt_SYNPROXY.c312 struct nf_conn *ct; in ipv4_synproxy_hook()
Dipt_CLUSTERIP.c305 struct nf_conn *ct; in clusterip_tg()
/linux-4.4.14/include/uapi/linux/netfilter/
Dxt_CT.h26 struct nf_conn *ct __attribute__((aligned(8)));
38 struct nf_conn *ct __attribute__((aligned(8)));
/linux-4.4.14/include/linux/
Dnetfilter.h390 struct nf_conn;
395 struct nf_conn *(*get_ct)(const struct sk_buff *skb,
397 size_t (*build_size)(const struct nf_conn *ct);
398 int (*build)(struct sk_buff *skb, struct nf_conn *ct,
401 int (*parse)(const struct nlattr *attr, struct nf_conn *ct);
402 int (*attach_expect)(const struct nlattr *attr, struct nf_conn *ct,
404 void (*seq_adjust)(struct sk_buff *skb, struct nf_conn *ct,
/linux-4.4.14/net/openvswitch/
Dconntrack.c49 struct nf_conn *ct;
105 static u32 ovs_ct_get_mark(const struct nf_conn *ct) in ovs_ct_get_mark()
114 static void ovs_ct_get_labels(const struct nf_conn *ct, in ovs_ct_get_labels()
134 const struct nf_conn *ct) in __ovs_ct_update_key()
151 struct nf_conn *ct; in ovs_ct_update_key()
201 struct nf_conn *ct; in ovs_ct_set_mark()
229 struct nf_conn *ct; in ovs_ct_set_labels()
261 struct nf_conn *ct; in ovs_ct_helper()
375 struct nf_conn *ct; in skb_nfct_cached()
405 struct nf_conn *tmpl = info->ct; in __ovs_ct_lookup()
/linux-4.4.14/net/netfilter/ipvs/
Dip_vs_nfct.c85 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in ip_vs_update_conntrack()
143 static void ip_vs_nfct_expect_callback(struct nf_conn *ct, in ip_vs_nfct_expect_callback()
225 void ip_vs_nfct_expect_related(struct sk_buff *skb, struct nf_conn *ct, in ip_vs_nfct_expect_related()
259 struct nf_conn *ct; in ip_vs_conn_drop_conntrack()
Dip_vs_xmit.c728 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in ip_vs_nat_xmit()
819 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in ip_vs_nat_xmit_v6()
1298 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in ip_vs_icmp_xmit()
1389 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in ip_vs_icmp_xmit_v6()
Dip_vs_ftp.c183 struct nf_conn *ct; in ip_vs_ftp_out()
/linux-4.4.14/net/sched/
Dact_connmark.c41 struct nf_conn *c; in tcf_connmark()
Dcls_flow.c139 const struct nf_conn *ct = nf_ct_get(skb, &ctinfo); \
/linux-4.4.14/include/net/
Dip_vs.h1537 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in ip_vs_notrack()
1564 void ip_vs_nfct_expect_related(struct sk_buff *skb, struct nf_conn *ct,
1597 struct nf_conn *ct; in ip_vs_conn_uses_conntrack()