Home
last modified time | relevance | path

Searched refs:nf_conntrack (Results 1 – 25 of 50) sorted by relevance

12

/external/libnetfilter_conntrack/src/conntrack/
Dcopy.c12 static void copy_attr_orig_ipv4_src(struct nf_conntrack *dest, in copy_attr_orig_ipv4_src()
13 const struct nf_conntrack *orig) in copy_attr_orig_ipv4_src()
18 static void copy_attr_orig_ipv4_dst(struct nf_conntrack *dest, in copy_attr_orig_ipv4_dst()
19 const struct nf_conntrack *orig) in copy_attr_orig_ipv4_dst()
24 static void copy_attr_repl_ipv4_src(struct nf_conntrack *dest, in copy_attr_repl_ipv4_src()
25 const struct nf_conntrack *orig) in copy_attr_repl_ipv4_src()
30 static void copy_attr_repl_ipv4_dst(struct nf_conntrack *dest, in copy_attr_repl_ipv4_dst()
31 const struct nf_conntrack *orig) in copy_attr_repl_ipv4_dst()
36 static void copy_attr_orig_ipv6_src(struct nf_conntrack *dest, in copy_attr_orig_ipv6_src()
37 const struct nf_conntrack *orig) in copy_attr_orig_ipv6_src()
[all …]
Dgetter.c12 static const void *get_attr_orig_ipv4_src(const struct nf_conntrack *ct) in get_attr_orig_ipv4_src()
17 static const void *get_attr_orig_ipv4_dst(const struct nf_conntrack *ct) in get_attr_orig_ipv4_dst()
22 static const void *get_attr_repl_ipv4_src(const struct nf_conntrack *ct) in get_attr_repl_ipv4_src()
27 static const void *get_attr_repl_ipv4_dst(const struct nf_conntrack *ct) in get_attr_repl_ipv4_dst()
32 static const void *get_attr_orig_ipv6_src(const struct nf_conntrack *ct) in get_attr_orig_ipv6_src()
37 static const void *get_attr_orig_ipv6_dst(const struct nf_conntrack *ct) in get_attr_orig_ipv6_dst()
42 static const void *get_attr_repl_ipv6_src(const struct nf_conntrack *ct) in get_attr_repl_ipv6_src()
47 static const void *get_attr_repl_ipv6_dst(const struct nf_conntrack *ct) in get_attr_repl_ipv6_dst()
52 static const void *get_attr_orig_port_src(const struct nf_conntrack *ct) in get_attr_orig_port_src()
57 static const void *get_attr_orig_port_dst(const struct nf_conntrack *ct) in get_attr_orig_port_dst()
[all …]
Dcompare.c14 const struct nf_conntrack *ct1, in __cmp()
15 const struct nf_conntrack *ct2, in __cmp()
17 int (*cmp)(const struct nf_conntrack *ct1, in __cmp()
18 const struct nf_conntrack *ct2, in __cmp()
37 cmp_orig_l3proto(const struct nf_conntrack *ct1, in cmp_orig_l3proto()
38 const struct nf_conntrack *ct2, in cmp_orig_l3proto()
45 cmp_icmp_id(const struct nf_conntrack *ct1, in cmp_icmp_id()
46 const struct nf_conntrack *ct2, in cmp_icmp_id()
53 cmp_icmp_type(const struct nf_conntrack *ct1, in cmp_icmp_type()
54 const struct nf_conntrack *ct2, in cmp_icmp_type()
[all …]
Dsetter.c41 set_attr_orig_ipv4_src(struct nf_conntrack *ct, const void *value, size_t len) in set_attr_orig_ipv4_src()
47 set_attr_orig_ipv4_dst(struct nf_conntrack *ct, const void *value, size_t len) in set_attr_orig_ipv4_dst()
53 set_attr_repl_ipv4_src(struct nf_conntrack *ct, const void *value, size_t len) in set_attr_repl_ipv4_src()
59 set_attr_repl_ipv4_dst(struct nf_conntrack *ct, const void *value, size_t len) in set_attr_repl_ipv4_dst()
65 set_attr_orig_ipv6_src(struct nf_conntrack *ct, const void *value, size_t len) in set_attr_orig_ipv6_src()
71 set_attr_orig_ipv6_dst(struct nf_conntrack *ct, const void *value, size_t len) in set_attr_orig_ipv6_dst()
77 set_attr_repl_ipv6_src(struct nf_conntrack *ct, const void *value, size_t len) in set_attr_repl_ipv6_src()
83 set_attr_repl_ipv6_dst(struct nf_conntrack *ct, const void *value, size_t len) in set_attr_repl_ipv6_dst()
89 set_attr_orig_port_src(struct nf_conntrack *ct, const void *value, size_t len) in set_attr_orig_port_src()
95 set_attr_orig_port_dst(struct nf_conntrack *ct, const void *value, size_t len) in set_attr_orig_port_dst()
[all …]
Dapi.c75 struct nf_conntrack *nfct_new(void) in nfct_new()
77 struct nf_conntrack *ct; in nfct_new()
79 ct = malloc(sizeof(struct nf_conntrack)); in nfct_new()
83 memset(ct, 0, sizeof(struct nf_conntrack)); in nfct_new()
92 void nfct_destroy(struct nf_conntrack *ct) in nfct_destroy()
113 size_t nfct_sizeof(const struct nf_conntrack *ct) in nfct_sizeof()
137 return sizeof(struct nf_conntrack); in nfct_maxsize()
147 struct nf_conntrack *nfct_clone(const struct nf_conntrack *ct) in nfct_clone()
149 struct nf_conntrack *clone; in nfct_clone()
168 int nfct_setobjopt(struct nf_conntrack *ct, unsigned int option) in nfct_setobjopt()
[all …]
Dgrp_getter.c12 static void get_attr_grp_orig_ipv4(const struct nf_conntrack *ct, void *data) in get_attr_grp_orig_ipv4()
19 static void get_attr_grp_repl_ipv4(const struct nf_conntrack *ct, void *data) in get_attr_grp_repl_ipv4()
26 static void get_attr_grp_orig_ipv6(const struct nf_conntrack *ct, void *data) in get_attr_grp_orig_ipv6()
33 static void get_attr_grp_repl_ipv6(const struct nf_conntrack *ct, void *data) in get_attr_grp_repl_ipv6()
40 static void get_attr_grp_orig_port(const struct nf_conntrack *ct, void *data) in get_attr_grp_orig_port()
47 static void get_attr_grp_repl_port(const struct nf_conntrack *ct, void *data) in get_attr_grp_repl_port()
54 static void get_attr_grp_icmp(const struct nf_conntrack *ct, void *data) in get_attr_grp_icmp()
62 static void get_attr_grp_master_ipv4(const struct nf_conntrack *ct, void *data) in get_attr_grp_master_ipv4()
69 static void get_attr_grp_master_ipv6(const struct nf_conntrack *ct, void *data) in get_attr_grp_master_ipv6()
76 static void get_attr_grp_master_port(const struct nf_conntrack *ct, void *data) in get_attr_grp_master_port()
[all …]
Dgrp_setter.c40 static void set_attr_grp_orig_ipv4(struct nf_conntrack *ct, const void *value) in set_attr_grp_orig_ipv4()
48 static void set_attr_grp_repl_ipv4(struct nf_conntrack *ct, const void *value) in set_attr_grp_repl_ipv4()
56 static void set_attr_grp_orig_ipv6(struct nf_conntrack *ct, const void *value) in set_attr_grp_orig_ipv6()
64 static void set_attr_grp_repl_ipv6(struct nf_conntrack *ct, const void *value) in set_attr_grp_repl_ipv6()
72 static void set_attr_grp_orig_port(struct nf_conntrack *ct, const void *value) in set_attr_grp_orig_port()
79 static void set_attr_grp_repl_port(struct nf_conntrack *ct, const void *value) in set_attr_grp_repl_port()
86 static void set_attr_grp_icmp(struct nf_conntrack *ct, const void *value) in set_attr_grp_icmp()
118 static void set_attr_grp_master_ipv4(struct nf_conntrack *ct, const void *value) in set_attr_grp_master_ipv4()
126 static void set_attr_grp_master_ipv6(struct nf_conntrack *ct, const void *value) in set_attr_grp_master_ipv6()
134 static void set_attr_grp_master_port(struct nf_conntrack *ct, const void *value) in set_attr_grp_master_port()
[all …]
Dobjopt.c12 static void __autocomplete(struct nf_conntrack *ct, int dir) in __autocomplete()
53 static void setobjopt_undo_snat(struct nf_conntrack *ct) in setobjopt_undo_snat()
76 static void setobjopt_undo_dnat(struct nf_conntrack *ct) in setobjopt_undo_dnat()
98 static void setobjopt_undo_spat(struct nf_conntrack *ct) in setobjopt_undo_spat()
107 static void setobjopt_undo_dpat(struct nf_conntrack *ct) in setobjopt_undo_dpat()
116 static void setobjopt_setup_orig(struct nf_conntrack *ct) in setobjopt_setup_orig()
121 static void setobjopt_setup_repl(struct nf_conntrack *ct) in setobjopt_setup_repl()
135 int __setobjopt(struct nf_conntrack *ct, unsigned int option) in __setobjopt()
144 static int getobjopt_is_snat(const struct nf_conntrack *ct) in getobjopt_is_snat()
166 static int getobjopt_is_dnat(const struct nf_conntrack *ct) in getobjopt_is_dnat()
[all …]
Dsnprintf_default.c14 const struct nf_conntrack *ct) in __snprintf_l3protocol()
24 const struct nf_conntrack *ct) in __snprintf_protocol()
34 const struct nf_conntrack *ct) in __snprintf_timeout()
41 const struct nf_conntrack *ct) in __snprintf_protoinfo()
51 const struct nf_conntrack *ct) in __snprintf_protoinfo_sctp()
61 const struct nf_conntrack *ct) in __snprintf_protoinfo_dccp()
183 const struct nf_conntrack *ct) in __snprintf_status_assured()
195 const struct nf_conntrack *ct) in __snprintf_status_not_seen_reply()
207 const struct nf_conntrack *ct, in __snprintf_counters()
216 __snprintf_mark(char *buf, unsigned int len, const struct nf_conntrack *ct) in __snprintf_mark()
[all …]
Dbuild_mnl.c114 nfct_build_protoinfo(struct nlmsghdr *nlh, const struct nf_conntrack *ct) in nfct_build_protoinfo()
219 nfct_nat_seq_adj(struct nlmsghdr *nlh, const struct nf_conntrack *ct, int dir) in nfct_nat_seq_adj()
231 nfct_build_nat_seq_adj(struct nlmsghdr *nlh, const struct nf_conntrack *ct, in nfct_build_nat_seq_adj()
246 nfct_build_protonat(struct nlmsghdr *nlh, const struct nf_conntrack *ct, in nfct_build_protonat()
285 nfct_build_snat(struct nlmsghdr *nlh, const struct nf_conntrack *ct, in nfct_build_snat()
298 nfct_build_snat_ipv4(struct nlmsghdr *nlh, const struct nf_conntrack *ct) in nfct_build_snat_ipv4()
309 nfct_build_snat_ipv6(struct nlmsghdr *nlh, const struct nf_conntrack *ct) in nfct_build_snat_ipv6()
320 nfct_build_snat_port(struct nlmsghdr *nlh, const struct nf_conntrack *ct) in nfct_build_snat_port()
331 nfct_build_dnat(struct nlmsghdr *nlh, const struct nf_conntrack *ct, in nfct_build_dnat()
344 nfct_build_dnat_ipv4(struct nlmsghdr *nlh, const struct nf_conntrack *ct) in nfct_build_dnat_ipv4()
[all …]
Dbuild.c107 const struct nf_conntrack *ct) in __build_protoinfo()
223 const struct nf_conntrack *ct, in __nat_seq_adj()
243 const struct nf_conntrack *ct, in __build_nat_seq_adj()
257 const struct nf_conntrack *ct, in __build_protonat()
297 const struct nf_conntrack *ct, in __build_snat()
310 const struct nf_conntrack *ct) in __build_snat_ipv4()
321 const struct nf_conntrack *ct) in __build_snat_ipv6()
332 const struct nf_conntrack *ct) in __build_snat_port()
343 const struct nf_conntrack *ct, in __build_dnat()
356 const struct nf_conntrack *ct) in __build_dnat_ipv4()
[all …]
Dparse.c209 struct nf_conntrack *ct) in __parse_protoinfo_tcp()
253 struct nf_conntrack *ct) in __parse_protoinfo_sctp()
280 struct nf_conntrack *ct) in __parse_protoinfo_dccp()
307 struct nf_conntrack *ct) in __parse_protoinfo()
324 struct nf_conntrack *ct, in __parse_counters()
381 __parse_nat_seq(const struct nfattr *attr, struct nf_conntrack *ct, int dir) in __parse_nat_seq()
428 __parse_helper(const struct nfattr *attr, struct nf_conntrack *ct) in __parse_helper()
444 __parse_secctx(const struct nfattr *attr, struct nf_conntrack *ct) in __parse_secctx()
475 __parse_timestamp(const struct nfattr *attr, struct nf_conntrack *ct) in __parse_timestamp()
495 __parse_labels(const struct nfattr *attr, struct nf_conntrack *ct) in __parse_labels()
[all …]
Dparse_mnl.c330 nfct_parse_protoinfo_tcp(const struct nlattr *attr, struct nf_conntrack *ct) in nfct_parse_protoinfo_tcp()
401 nfct_parse_protoinfo_sctp(const struct nlattr *attr, struct nf_conntrack *ct) in nfct_parse_protoinfo_sctp()
454 nfct_parse_protoinfo_dccp(const struct nlattr *attr, struct nf_conntrack *ct) in nfct_parse_protoinfo_dccp()
500 nfct_parse_protoinfo(const struct nlattr *attr, struct nf_conntrack *ct) in nfct_parse_protoinfo()
544 nfct_parse_counters(const struct nlattr *attr, struct nf_conntrack *ct, in nfct_parse_counters()
615 nfct_parse_nat_seq(const struct nlattr *attr, struct nf_conntrack *ct, int dir) in nfct_parse_nat_seq()
684 nfct_parse_helper(const struct nlattr *attr, struct nf_conntrack *ct) in nfct_parse_helper()
734 nfct_parse_secctx(const struct nlattr *attr, struct nf_conntrack *ct) in nfct_parse_secctx()
772 nfct_parse_timestamp(const struct nlattr *attr, struct nf_conntrack *ct) in nfct_parse_timestamp()
793 static int nfct_parse_labels(const struct nlattr *attr, struct nf_conntrack *ct) in nfct_parse_labels()
[all …]
Dsnprintf_xml.c164 const struct nf_conntrack *ct, in __snprintf_counters_xml()
183 const struct nf_conntrack *ct) in __snprintf_timestamp_start()
197 const struct nf_conntrack *ct) in __snprintf_timestamp_stop()
211 const struct nf_conntrack *ct) in __snprintf_deltatime_now()
228 __snprintf_deltatime(char *buf, unsigned int len, const struct nf_conntrack *ct) in __snprintf_deltatime()
243 __snprintf_helper_name(char *buf, unsigned int len, const struct nf_conntrack *ct) in __snprintf_helper_name()
286 const struct nf_conntrack *ct, in __snprintf_tuple_xml()
358 const struct nf_conntrack *ct, struct nfct_labelmap *map) in __snprintf_clabels_xml()
381 const struct nf_conntrack *ct, in __snprintf_conntrack_xml()
/external/libnetfilter_conntrack/include/libnetfilter_conntrack/
Dlibnetfilter_conntrack.h65 struct nf_conntrack;
221 extern struct nf_conntrack *nfct_new(void);
222 extern void nfct_destroy(struct nf_conntrack *ct);
225 struct nf_conntrack *nfct_clone(const struct nf_conntrack *ct);
228 extern __attribute__((deprecated)) size_t nfct_sizeof(const struct nf_conntrack *ct);
255 extern int nfct_setobjopt(struct nf_conntrack *ct, unsigned int option);
256 extern int nfct_getobjopt(const struct nf_conntrack *ct, unsigned int option);
263 struct nf_conntrack *ct,
275 struct nf_conntrack *ct,
313 extern void nfct_set_attr(struct nf_conntrack *ct,
[all …]
/external/libnetfilter_conntrack/include/internal/
Dprototypes.h7 …h, struct nfnlhdr *req, size_t size, uint16_t type, uint16_t flags, const struct nf_conntrack *ct);
10 void __parse_conntrack(const struct nlmsghdr *nlh, struct nfattr *cda[], struct nf_conntrack *ct);
12 int __snprintf_conntrack(char *buf, unsigned int len, const struct nf_conntrack *ct, unsigned int t…
14 int __snprintf_protocol(char *buf, unsigned int len, const struct nf_conntrack *ct);
16 int __snprintf_conntrack_default(char *buf, unsigned int len, const struct nf_conntrack *ct, const …
17 int __snprintf_conntrack_xml(char *buf, unsigned int len, const struct nf_conntrack *ct, const unsi…
33 int __setobjopt(struct nf_conntrack *ct, unsigned int option);
34 int __getobjopt(const struct nf_conntrack *ct, unsigned int option);
35 int __compare(const struct nf_conntrack *ct1, const struct nf_conntrack *ct2, unsigned int flags);
36 int __cmp_orig(const struct nf_conntrack *ct1, const struct nf_conntrack *ct2, unsigned int flags);
[all …]
Dtypes.h10 typedef void (*set_attr)(struct nf_conntrack *ct, const void *value, size_t len);
11 typedef const void *(*get_attr)(const struct nf_conntrack *ct);
12 typedef void (*copy_attr)(struct nf_conntrack *d, const struct nf_conntrack *o);
14 typedef int (*getobjopt)(const struct nf_conntrack *ct);
15 typedef void (*setobjopt)(struct nf_conntrack *ct);
16 typedef void (*set_attr_grp)(struct nf_conntrack *ct, const void *value);
17 typedef void (*get_attr_grp)(const struct nf_conntrack *ct, void *data);
Dobject.h25 struct nf_conntrack *ct,
34 struct nf_conntrack *ct,
158 struct nf_conntrack { struct
/external/libnetfilter_conntrack/src/expect/
Dcompare.c41 return __cmp_orig((struct nf_conntrack *)&exp1->master, in cmp_exp_master()
42 (struct nf_conntrack *)&exp2->master, flags); in cmp_exp_master()
49 return __cmp_orig((struct nf_conntrack *)&exp1->expected, in cmp_exp_expected()
50 (struct nf_conntrack *)&exp2->expected, flags); in cmp_exp_expected()
57 return __cmp_orig((struct nf_conntrack *)&exp1->mask, in cmp_exp_mask()
58 (struct nf_conntrack *)&exp2->mask, flags); in cmp_exp_mask()
94 return __cmp_orig((struct nf_conntrack *)&exp1->nat, in cmp_exp_natt()
95 (struct nf_conntrack *)&exp2->nat, flags); in cmp_exp_natt()
/external/libnetfilter_conntrack/utils/
Dconntrack_get.c11 struct nf_conntrack *ct, in cb()
26 struct nf_conntrack *ct; in main()
Dconntrack_events.c9 struct nf_conntrack *ct, in event_cb()
/external/libnetfilter_conntrack/qa/
Dtest_api.c40 struct nf_conntrack *ct1, *ct2; in test_nfct_bitmask()
164 static int test_nfct_cmp_api_single(struct nf_conntrack *ct1, in test_nfct_cmp_api_single()
165 struct nf_conntrack *ct2, int attr) in test_nfct_cmp_api_single()
288 struct nf_conntrack *ct1 = nfct_new(); in test_cmp_attr32()
289 struct nf_conntrack *ct2 = nfct_new(); in test_cmp_attr32()
383 static void test_nfct_cmp_api(struct nf_conntrack *ct1, struct nf_conntrack *ct2) in test_nfct_cmp_api()
481 struct nf_conntrack *ct, *ct2, *tmp; in main()
/external/libnetfilter_conntrack/examples/
Dnfct-mnl-get.c14 struct nf_conntrack *ct; in data_cb()
38 struct nf_conntrack *ct; in main()
Dnfct-mnl-dump-labels.c8 static void print_label(struct nf_conntrack *ct, struct nfct_labelmap *map) in print_label()
25 struct nf_conntrack *ct; in data_cb()
Dnfct-mnl-set-label.c15 static void set_label(struct nf_conntrack *ct, struct callback_args *cbargs) in set_label()
66 struct nf_conntrack *ct; in data_cb()

12