Home
last modified time | relevance | path

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

12345

/Linux-v6.1/include/net/netfilter/
Dnf_conntrack.h75 struct nf_conn { struct
111 struct nf_conn *master; argument
128 static inline struct nf_conn * argument
131 return container_of(hash, struct nf_conn, in nf_ct_tuplehash_to_ctrack()
135 static inline u_int16_t nf_ct_l3num(const struct nf_conn *ct) in nf_ct_l3num()
140 static inline u_int8_t nf_ct_protonum(const struct nf_conn *ct) in nf_ct_protonum()
152 static inline struct net *nf_ct_net(const struct nf_conn *ct) in nf_ct_net()
158 void nf_conntrack_alter_reply(struct nf_conn *ct,
164 const struct nf_conn *ignored_conntrack);
167 static inline struct nf_conn *
[all …]
Dnf_conntrack_helper.h47 struct nf_conn *ct,
50 void (*destroy)(struct nf_conn *ct);
52 int (*from_nlattr)(struct nlattr *attr, struct nf_conn *ct);
53 int (*to_nlattr)(struct sk_buff *skb, const struct nf_conn *ct);
100 struct nf_conn *ct,
103 struct nf_conn *ct),
113 struct nf_conn_help *nf_ct_helper_ext_add(struct nf_conn *ct, gfp_t gfp);
115 int __nf_ct_try_assign_helper(struct nf_conn *ct, struct nf_conn *tmpl,
118 void nf_ct_helper_destroy(struct nf_conn *ct);
120 static inline struct nf_conn_help *nfct_help(const struct nf_conn *ct) in nfct_help()
[all …]
Dnf_conntrack_l4proto.h31 bool (*can_early_drop)(const struct nf_conn *ct);
35 struct nf_conn *ct, bool destroy);
38 int (*from_nlattr)(struct nlattr *tb[], struct nf_conn *ct);
60 void (*print_conntrack)(struct seq_file *s, struct nf_conn *);
79 int nf_conntrack_inet_error(struct nf_conn *tmpl, struct sk_buff *skb,
85 int nf_conntrack_icmpv4_error(struct nf_conn *tmpl,
90 int nf_conntrack_icmpv6_error(struct nf_conn *tmpl,
95 int nf_conntrack_icmp_packet(struct nf_conn *ct,
100 int nf_conntrack_icmpv6_packet(struct nf_conn *ct,
105 int nf_conntrack_udp_packet(struct nf_conn *ct,
[all …]
Dnf_conntrack_ecache.h30 nf_ct_ecache_find(const struct nf_conn *ct) in nf_ct_ecache_find()
39 static inline bool nf_ct_ecache_exist(const struct nf_conn *ct) in nf_ct_ecache_exist()
52 struct nf_conn *ct;
72 void nf_ct_deliver_cached_events(struct nf_conn *ct);
73 int nf_conntrack_eventmask_report(unsigned int eventmask, struct nf_conn *ct,
76 bool nf_ct_ecache_ext_add(struct nf_conn *ct, u16 ctmask, u16 expmask, gfp_t gfp);
79 static inline void nf_ct_deliver_cached_events(const struct nf_conn *ct) in nf_ct_deliver_cached_events()
84 struct nf_conn *ct, in nf_conntrack_eventmask_report()
91 static inline bool nf_ct_ecache_ext_add(struct nf_conn *ct, u16 ctmask, u16 expmask, gfp_t gfp) in nf_ct_ecache_ext_add()
98 nf_conntrack_event_cache(enum ip_conntrack_events event, struct nf_conn *ct) in nf_conntrack_event_cache()
[all …]
Dnf_conntrack_seqadj.h24 static inline struct nf_conn_seqadj *nfct_seqadj(const struct nf_conn *ct) in nfct_seqadj()
29 static inline struct nf_conn_seqadj *nfct_seqadj_ext_add(struct nf_conn *ct) in nfct_seqadj_ext_add()
34 int nf_ct_seqadj_init(struct nf_conn *ct, enum ip_conntrack_info ctinfo,
36 int nf_ct_seqadj_set(struct nf_conn *ct, enum ip_conntrack_info ctinfo,
38 void nf_ct_tcp_seqadj_set(struct sk_buff *skb, struct nf_conn *ct,
41 int nf_ct_seq_adjust(struct sk_buff *skb, struct nf_conn *ct,
43 s32 nf_ct_seq_offset(const struct nf_conn *ct, enum ip_conntrack_dir, u32 seq);
Dnf_conntrack_core.h57 struct nf_conn *ct = (struct nf_conn *)skb_nfct(skb); in nf_conntrack_confirm()
65 ct = (struct nf_conn *)skb_nfct(skb); in nf_conntrack_confirm()
75 struct nf_conn *ct, enum ip_conntrack_info ctinfo);
89 static inline void __nf_ct_set_timeout(struct nf_conn *ct, u64 timeout) in __nf_ct_set_timeout()
96 int __nf_ct_change_timeout(struct nf_conn *ct, u64 cta_timeout);
97 void __nf_ct_change_status(struct nf_conn *ct, unsigned long on, unsigned long off);
98 int nf_ct_change_status_common(struct nf_conn *ct, unsigned int status);
Dnf_nat.h39 unsigned int nf_nat_setup_info(struct nf_conn *ct,
43 extern unsigned int nf_nat_alloc_null_binding(struct nf_conn *ct,
46 struct nf_conn_nat *nf_ct_nat_ext_add(struct nf_conn *ct);
48 static inline struct nf_conn_nat *nfct_nat(const struct nf_conn *ct) in nfct_nat()
76 unsigned int nf_nat_packet(struct nf_conn *ct, enum ip_conntrack_info ctinfo,
79 unsigned int nf_nat_manip_pkt(struct sk_buff *skb, struct nf_conn *ct,
86 int nf_nat_icmp_reply_translation(struct sk_buff *skb, struct nf_conn *ct,
90 int nf_nat_icmpv6_reply_translation(struct sk_buff *skb, struct nf_conn *ct,
107 static inline int nf_nat_initialized(const struct nf_conn *ct, in nf_nat_initialized()
Dnf_conntrack_timeout.h41 struct nf_conn_timeout *nf_ct_timeout_find(const struct nf_conn *ct) in nf_ct_timeout_find()
51 struct nf_conn_timeout *nf_ct_timeout_ext_add(struct nf_conn *ct, in nf_ct_timeout_ext_add()
70 static inline unsigned int *nf_ct_timeout_lookup(const struct nf_conn *ct) in nf_ct_timeout_lookup()
85 int nf_ct_set_timeout(struct net *net, struct nf_conn *ct, u8 l3num, u8 l4num,
87 void nf_ct_destroy_timeout(struct nf_conn *ct);
89 static inline int nf_ct_set_timeout(struct net *net, struct nf_conn *ct, in nf_ct_set_timeout()
96 static inline void nf_ct_destroy_timeout(struct nf_conn *ct) in nf_ct_destroy_timeout()
Dnf_conntrack_zones.h9 nf_ct_zone(const struct nf_conn *ct) in nf_ct_zone()
29 nf_ct_zone_tmpl(const struct nf_conn *tmpl, const struct sk_buff *skb, in nf_ct_zone_tmpl()
42 static inline void nf_ct_zone_add(struct nf_conn *ct, in nf_ct_zone_add()
67 static inline bool nf_ct_zone_equal(const struct nf_conn *a, in nf_ct_zone_equal()
79 static inline bool nf_ct_zone_equal_any(const struct nf_conn *a, in nf_ct_zone_equal_any()
Dnf_conntrack_synproxy.h14 static inline struct nf_conn_synproxy *nfct_synproxy(const struct nf_conn *ct) in nfct_synproxy()
23 static inline struct nf_conn_synproxy *nfct_synproxy_ext_add(struct nf_conn *ct) in nfct_synproxy_ext_add()
32 static inline bool nf_ct_add_synproxy(struct nf_conn *ct, in nf_ct_add_synproxy()
33 const struct nf_conn *tmpl) in nf_ct_add_synproxy()
Dnf_nat_helper.h11 bool __nf_nat_mangle_tcp_packet(struct sk_buff *skb, struct nf_conn *ct,
18 struct nf_conn *ct, in nf_nat_mangle_tcp_packet()
31 bool nf_nat_mangle_udp_packet(struct sk_buff *skb, struct nf_conn *ct,
39 void nf_nat_follow_master(struct nf_conn *ct, struct nf_conntrack_expect *this);
Dnf_conntrack_acct.h24 struct nf_conn_acct *nf_conn_acct_find(const struct nf_conn *ct) in nf_conn_acct_find()
30 struct nf_conn_acct *nf_ct_acct_ext_add(struct nf_conn *ct, gfp_t gfp) in nf_ct_acct_ext_add()
68 void nf_ct_acct_add(struct nf_conn *ct, u32 dir, unsigned int packets,
71 static inline void nf_ct_acct_update(struct nf_conn *ct, u32 dir, in nf_ct_acct_update()
Dnf_conntrack_expect.h30 void (*expectfn)(struct nf_conn *new,
37 struct nf_conn *master;
112 void nf_ct_remove_expectations(struct nf_conn *ct);
123 struct nf_conntrack_expect *nf_ct_expect_alloc(struct nf_conn *me);
Dnf_conntrack_act_ct.h14 static inline struct nf_conn_act_ct_ext *nf_conn_act_ct_ext_find(const struct nf_conn *ct) in nf_conn_act_ct_ext_find()
23 static inline struct nf_conn_act_ct_ext *nf_conn_act_ct_ext_add(struct nf_conn *ct) in nf_conn_act_ct_ext_add()
38 static inline void nf_conn_act_ct_ext_fill(struct sk_buff *skb, struct nf_conn *ct, in nf_conn_act_ct_ext_fill()
/Linux-v6.1/tools/testing/selftests/bpf/progs/
Dtest_bpf_nf_fail.c7 struct nf_conn;
16 struct nf_conn *bpf_skb_ct_alloc(struct __sk_buff *, struct bpf_sock_tuple *, u32,
18 struct nf_conn *bpf_skb_ct_lookup(struct __sk_buff *, struct bpf_sock_tuple *, u32,
20 struct nf_conn *bpf_ct_insert_entry(struct nf_conn *) __ksym;
21 void bpf_ct_release(struct nf_conn *) __ksym;
22 void bpf_ct_set_timeout(struct nf_conn *, u32) __ksym;
23 int bpf_ct_change_timeout(struct nf_conn *, u32) __ksym;
24 int bpf_ct_set_status(struct nf_conn *, u32) __ksym;
25 int bpf_ct_change_status(struct nf_conn *, u32) __ksym;
32 struct nf_conn *ct; in alloc_release()
[all …]
Dtest_bpf_nf.c37 struct nf_conn;
46 struct nf_conn *bpf_xdp_ct_alloc(struct xdp_md *, struct bpf_sock_tuple *, u32,
48 struct nf_conn *bpf_xdp_ct_lookup(struct xdp_md *, struct bpf_sock_tuple *, u32,
50 struct nf_conn *bpf_skb_ct_alloc(struct __sk_buff *, struct bpf_sock_tuple *, u32,
52 struct nf_conn *bpf_skb_ct_lookup(struct __sk_buff *, struct bpf_sock_tuple *, u32,
54 struct nf_conn *bpf_ct_insert_entry(struct nf_conn *) __ksym;
55 void bpf_ct_release(struct nf_conn *) __ksym;
56 void bpf_ct_set_timeout(struct nf_conn *, u32) __ksym;
57 int bpf_ct_change_timeout(struct nf_conn *, u32) __ksym;
58 int bpf_ct_set_status(struct nf_conn *, u32) __ksym;
[all …]
/Linux-v6.1/include/linux/netfilter/
Dnf_conntrack_h323.h34 int get_h225_addr(struct nf_conn *ct, unsigned char *data,
37 void nf_conntrack_h245_expect(struct nf_conn *new,
39 void nf_conntrack_q931_expect(struct nf_conn *new,
52 struct nf_conn *ct,
57 struct nf_conn *ct,
62 struct nf_conn *ct,
71 struct nf_conn *ct,
78 struct nf_conn *ct,
85 struct nf_conn *ct,
92 struct nf_conn *ct,
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.h15 struct nf_conn;
25 int nf_ct_gre_keymap_add(struct nf_conn *ct, enum ip_conntrack_dir dir,
30 void nf_ct_gre_keymap_destroy(struct nf_conn *ct);
/Linux-v6.1/net/netfilter/
Dnf_conntrack_bpf.c100 static struct nf_conn *
106 struct nf_conn *ct; in __bpf_nf_ct_alloc_entry()
147 static struct nf_conn *__bpf_nf_ct_lookup(struct net *net, in __bpf_nf_ct_lookup()
154 struct nf_conn *ct; in __bpf_nf_ct_lookup()
189 BTF_ID(struct, nf_conn) in BTF_ID() argument
217 case offsetof(struct nf_conn, mark): in BTF_ID()
218 end = offsetofend(struct nf_conn, mark); in BTF_ID()
260 struct nf_conn *nfct; in bpf_xdp_ct_alloc()
289 struct nf_conn *
295 struct nf_conn *nfct; in bpf_xdp_ct_lookup()
[all …]
Dnf_conntrack_core.c497 u32 nf_ct_get_id(const struct nf_conn *ct) in nf_ct_get_id()
519 clean_from_lists(struct nf_conn *ct) in clean_from_lists()
532 struct nf_conn *nf_ct_tmpl_alloc(struct net *net, in nf_ct_tmpl_alloc()
536 struct nf_conn *tmpl, *p; in nf_ct_tmpl_alloc()
544 tmpl = (struct nf_conn *)NFCT_ALIGN((unsigned long)p); in nf_ct_tmpl_alloc()
546 tmpl = (struct nf_conn *)NFCT_ALIGN((unsigned long)p); in nf_ct_tmpl_alloc()
564 void nf_ct_tmpl_free(struct nf_conn *tmpl) in nf_ct_tmpl_free()
575 static void destroy_gre_conntrack(struct nf_conn *ct) in destroy_gre_conntrack()
578 struct nf_conn *master = ct->master; in destroy_gre_conntrack()
587 struct nf_conn *ct = (struct nf_conn *)nfct; in nf_ct_destroy()
[all …]
Dnf_conntrack_sip.c66 static int string_len(const struct nf_conn *ct, const char *dptr, in string_len()
78 static int digits_len(const struct nf_conn *ct, const char *dptr, in digits_len()
110 static int callid_len(const struct nf_conn *ct, const char *dptr, in callid_len()
129 static int media_len(const struct nf_conn *ct, const char *dptr, in media_len()
143 static int sip_parse_addr(const struct nf_conn *ct, const char *cp, in sip_parse_addr()
185 static int epaddr_len(const struct nf_conn *ct, const char *dptr, in epaddr_len()
205 static int skp_epaddr_len(const struct nf_conn *ct, const char *dptr, in skp_epaddr_len()
237 int ct_sip_parse_request(const struct nf_conn *ct, in ct_sip_parse_request()
367 int ct_sip_get_header(const struct nf_conn *ct, const char *dptr, in ct_sip_get_header()
435 static int ct_sip_next_header(const struct nf_conn *ct, const char *dptr, in ct_sip_next_header()
[all …]
Dnf_nat_core.c56 const struct nf_conn *ct, in nf_nat_ipv4_decode_session()
88 const struct nf_conn *ct, in nf_nat_ipv6_decode_session()
123 const struct nf_conn *ct; in __nf_nat_decode_session()
186 const struct nf_conn *ignored_conntrack) in nf_nat_used_tuple()
263 same_src(const struct nf_conn *ct, in same_src()
283 const struct nf_conn *ct; in find_appropriate_src()
311 const struct nf_conn *ct, in find_best_ips_proto()
383 const struct nf_conn *ct) in nf_nat_l4proto_unique_tuple()
507 struct nf_conn *ct, in get_unique_tuple()
566 struct nf_conn_nat *nf_ct_nat_ext_add(struct nf_conn *ct) in nf_ct_nat_ext_add()
[all …]
Dnf_conntrack_netlink.c62 struct nf_conn *last;
166 static int ctnetlink_dump_status(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_status()
176 static int ctnetlink_dump_timeout(struct sk_buff *skb, const struct nf_conn *ct, in ctnetlink_dump_timeout()
192 static int ctnetlink_dump_protoinfo(struct sk_buff *skb, struct nf_conn *ct, in ctnetlink_dump_protoinfo()
218 const struct nf_conn *ct) in ctnetlink_dump_helpinfo()
287 ctnetlink_dump_acct(struct sk_buff *skb, const struct nf_conn *ct, int type) in ctnetlink_dump_acct()
303 ctnetlink_dump_timestamp(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_timestamp()
331 static int ctnetlink_dump_mark(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_mark()
350 static int ctnetlink_dump_secctx(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_secctx()
379 static inline int ctnetlink_label_size(const struct nf_conn *ct) in ctnetlink_label_size()
[all …]
/Linux-v6.1/include/linux/
Dnetfilter.h365 struct nf_conn;
371 int (*parse_nat_setup)(struct nf_conn *ct, enum nf_nat_manip_type manip,
374 unsigned int (*manip_pkt)(struct sk_buff *skb, struct nf_conn *ct,
377 void (*remove_nat_bysrc)(struct nf_conn *ct);
453 struct nf_conn;
468 size_t (*build_size)(const struct nf_conn *ct);
469 int (*build)(struct sk_buff *skb, struct nf_conn *ct,
472 int (*parse)(const struct nlattr *attr, struct nf_conn *ct);
473 int (*attach_expect)(const struct nlattr *attr, struct nf_conn *ct,
475 void (*seq_adjust)(struct sk_buff *skb, struct nf_conn *ct,

12345