| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_bpf_nf_fail.c | 9 struct nf_conn; 18 struct nf_conn *bpf_skb_ct_alloc(struct __sk_buff *, struct bpf_sock_tuple *, u32, 20 struct nf_conn *bpf_skb_ct_lookup(struct __sk_buff *, struct bpf_sock_tuple *, u32, 22 struct nf_conn *bpf_xdp_ct_alloc(struct xdp_md *, struct bpf_sock_tuple *, u32, 24 struct nf_conn *bpf_xdp_ct_lookup(struct xdp_md *, struct bpf_sock_tuple *, u32, 26 struct nf_conn *bpf_ct_insert_entry(struct nf_conn *) __ksym; 27 void bpf_ct_release(struct nf_conn *) __ksym; 28 void bpf_ct_set_timeout(struct nf_conn *, u32) __ksym; 29 int bpf_ct_change_timeout(struct nf_conn *, u3 [all...] |
| H A D | test_bpf_nf.c | 55 struct nf_conn; 75 struct nf_conn *bpf_xdp_ct_alloc(struct xdp_md *, struct bpf_sock_tuple *, u32, 77 struct nf_conn *bpf_xdp_ct_lookup(struct xdp_md *, struct bpf_sock_tuple *, u32, 79 struct nf_conn *bpf_skb_ct_alloc(struct __sk_buff *, struct bpf_sock_tuple *, u32, 81 struct nf_conn *bpf_skb_ct_lookup(struct __sk_buff *, struct bpf_sock_tuple *, u32, 83 struct nf_conn *bpf_ct_insert_entry(struct nf_conn *) __ksym; 84 void bpf_ct_release(struct nf_conn *) __ksym; 85 void bpf_ct_set_timeout(struct nf_conn *, u32) __ksym; 86 int bpf_ct_change_timeout(struct nf_conn *, u32) __ksym; 87 int bpf_ct_set_status(struct nf_conn *, u32) __ksym; [all …]
|
| /linux/include/net/netfilter/ |
| H A D | nf_conntrack_helper.h | 51 struct nf_conn *ct, 54 void (*destroy)(struct nf_conn *ct); 56 int (*from_nlattr)(struct nlattr *attr, struct nf_conn *ct); 57 int (*to_nlattr)(struct sk_buff *skb, const struct nf_conn *ct); 100 struct nf_conn *ct, 103 struct nf_conn *ct), 120 struct nf_conn_help *nf_ct_helper_ext_add(struct nf_conn *ct, gfp_t gfp); 122 int __nf_ct_try_assign_helper(struct nf_conn *ct, struct nf_conn *tmpl, 125 int nf_ct_helper(struct sk_buff *skb, struct nf_conn *ct, 127 int nf_ct_add_helper(struct nf_conn *ct, const char *name, u8 family, [all …]
|
| H A D | nf_nat.h | 39 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 int nf_ct_nat(struct sk_buff *skb, struct nf_conn *ct, 111 static inline int nf_nat_initialized(const struct nf_conn *ct, in nf_nat_initialized()
|
| H A D | nf_conntrack_seqadj.h | 24 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);
|
| H A D | nf_conntrack_core.h | 57 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() 93 static inline void __nf_ct_set_timeout(struct nf_conn *ct, u64 timeout) in __nf_ct_set_timeout() 104 int __nf_ct_change_timeout(struct nf_conn *ct, u64 cta_timeout); 105 void __nf_ct_change_status(struct nf_conn *ct, unsigned long on, unsigned long off); 106 int nf_ct_change_status_common(struct nf_conn *ct, unsigned int status);
|
| H A D | nf_conntrack_zones.h | 9 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()
|
| H A D | nf_conntrack_synproxy.h | 14 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()
|
| H A D | nf_nat_helper.h | 11 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);
|
| H A D | nf_conntrack_acct.h | 24 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()
|
| H A D | nf_conntrack_labels.h | 23 static inline struct nf_conn_labels *nf_ct_labels_find(const struct nf_conn *ct) in nf_ct_labels_find() 37 static inline struct nf_conn_labels *nf_ct_labels_ext_add(struct nf_conn *ct) in nf_ct_labels_ext_add() 51 int nf_connlabels_replace(struct nf_conn *ct,
|
| H A D | nf_conntrack_act_ct.h | 14 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 void nf_conn_act_ct_ext_fill(struct sk_buff *skb, struct nf_conn *ct, in nf_conn_act_ct_ext_fill() 37 struct nf_conn *ct, in nf_conn_act_ct_ext_add()
|
| H A D | nf_conntrack_expect.h | 49 void (*expectfn)(struct nf_conn *new, 59 struct nf_conn *master; 143 void nf_ct_remove_expectations(struct nf_conn *ct); 153 struct nf_conntrack_expect *nf_ct_expect_alloc(struct nf_conn *me);
|
| /linux/include/linux/netfilter/ |
| H A D | nf_conntrack_h323.h | 32 int get_h225_addr(struct nf_conn *ct, unsigned char *data, 46 struct nf_conn *ct, 51 struct nf_conn *ct, 56 struct nf_conn *ct, 65 struct nf_conn *ct, 72 struct nf_conn *ct, 79 struct nf_conn *ct, 86 struct nf_conn *ct,
|
| H A D | nf_conntrack_sip.h | 68 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,
|
| H A D | nf_conntrack_proto_gre.h | 12 struct nf_conn; 22 bool nf_ct_gre_keymap_add(struct nf_conn *ct, 27 void nf_ct_gre_keymap_destroy(struct nf_conn *ct);
|
| /linux/net/netfilter/ |
| H A D | nf_conntrack_bpf.c | 117 static struct nf_conn * 124 struct nf_conn *ct; in __bpf_nf_ct_alloc_entry() 192 static struct nf_conn *__bpf_nf_ct_lookup(struct net *net, in __bpf_nf_ct_lookup() 200 struct nf_conn *ct; in __bpf_nf_ct_lookup() 264 BTF_ID(struct, nf_conn) in BTF_ID() argument 288 case offsetof(struct nf_conn, mark): in BTF_ID() 289 end = offsetofend(struct nf_conn, mark); in BTF_ID() 329 struct nf_conn *nfct; in bpf_xdp_ct_alloc() 352 __bpf_kfunc struct nf_conn * 358 struct nf_conn *nfct; in bpf_xdp_ct_lookup() [all …]
|
| H A D | nf_conntrack_core.c | 481 u32 nf_ct_get_id(const struct nf_conn *ct) in nf_ct_get_id() 508 clean_from_lists(struct nf_conn *ct) in clean_from_lists() 520 struct nf_conn *nf_ct_tmpl_alloc(struct net *net, in nf_ct_tmpl_alloc() 524 struct nf_conn *tmpl, *p; in nf_ct_tmpl_alloc() 532 tmpl = (struct nf_conn *)NFCT_ALIGN((unsigned long)p); in nf_ct_tmpl_alloc() 550 void nf_ct_tmpl_free(struct nf_conn *tmpl) in nf_ct_tmpl_free() 561 static void destroy_gre_conntrack(struct nf_conn *ct) in destroy_gre_conntrack() 564 struct nf_conn *master = ct->master; in destroy_gre_conntrack() 594 struct nf_conn *ct = (struct nf_conn *)nfct; in nf_ct_destroy() 620 static void __nf_ct_delete_from_lists(struct nf_conn *ct) in __nf_ct_delete_from_lists() [all …]
|
| H A D | nf_nat_core.c | 53 const struct nf_conn *ct, in nf_nat_ipv4_decode_session() 81 const struct nf_conn *ct, in nf_nat_ipv6_decode_session() 112 const struct nf_conn *ct; in __nf_nat_decode_session() 203 const struct nf_conn *ignored_conntrack) in nf_nat_used_tuple() 217 static bool nf_nat_allow_clash(const struct nf_conn *ct) in nf_nat_allow_clash() 235 const struct nf_conn *ignored_ct) in nf_nat_used_tuple_new() 240 struct nf_conn *ct; in nf_nat_used_tuple_new() 299 static bool nf_nat_may_kill(struct nf_conn *ct, unsigned long flags) in nf_nat_may_kill() 319 static bool nf_seq_has_advanced(const struct nf_conn *old, const struct nf_conn *new) in nf_seq_has_advanced() 327 const struct nf_conn *ignored_conntrack, in nf_nat_used_tuple_harder() [all …]
|
| H A D | nf_conntrack_sip.c | 60 static int string_len(const struct nf_conn *ct, const char *dptr, in string_len() 72 static int digits_len(const struct nf_conn *ct, const char *dptr, in digits_len() 104 static int callid_len(const struct nf_conn *ct, const char *dptr, in callid_len() 123 static int media_len(const struct nf_conn *ct, const char *dptr, in media_len() 137 static int sip_parse_addr(const struct nf_conn *ct, const char *cp, in sip_parse_addr() 230 static int epaddr_len(const struct nf_conn *ct, const char *dptr, in epaddr_len() 247 static int skp_epaddr_len(const struct nf_conn *ct, const char *dptr, in skp_epaddr_len() 324 int ct_sip_parse_request(const struct nf_conn *ct, in ct_sip_parse_request() 447 int ct_sip_get_header(const struct nf_conn *ct, const char *dptr, in ct_sip_get_header() 515 static int ct_sip_next_header(const struct nf_conn *ct, const char *dptr, in ct_sip_next_header() [all …]
|
| H A D | nf_conntrack_h323_main.c | 66 struct nf_conn *ct, enum ip_conntrack_info ctinfo, in get_tpkt_data() 175 static int get_h245_addr(struct nf_conn *ct, const unsigned char *data, in get_h245_addr() 209 static int expect_rtp_rtcp(struct sk_buff *skb, struct nf_conn *ct, in expect_rtp_rtcp() 284 struct nf_conn *ct, in expect_t120() 336 struct nf_conn *ct, in process_h245_channel() 364 static int process_olc(struct sk_buff *skb, struct nf_conn *ct, in process_olc() 425 static int process_olca(struct sk_buff *skb, struct nf_conn *ct, in process_olca() 494 static int process_h245(struct sk_buff *skb, struct nf_conn *ct, in process_h245() 530 struct nf_conn *ct, enum ip_conntrack_info ctinfo) in h245_help() 586 int get_h225_addr(struct nf_conn *ct, unsigned char *data, in get_h225_addr() [all …]
|
| H A D | nf_conntrack_netlink.c | 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() 197 static int ctnetlink_dump_protoinfo(struct sk_buff *skb, struct nf_conn *ct, in ctnetlink_dump_protoinfo() 223 const struct nf_conn *ct) in ctnetlink_dump_helpinfo() 293 ctnetlink_dump_acct(struct sk_buff *skb, const struct nf_conn *ct, int type) in ctnetlink_dump_acct() 309 ctnetlink_dump_timestamp(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_timestamp() 337 static int ctnetlink_dump_mark(struct sk_buff *skb, const struct nf_conn *ct, in ctnetlink_dump_mark() 357 static int ctnetlink_dump_secctx(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_secctx() 387 ctnetlink_dump_event_timestamp(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_event_timestamp() 403 static inline int ctnetlink_label_size(const struct nf_conn *c [all...] |
| H A D | xt_nat.c | 66 struct nf_conn *ct; in xt_snat_target_v0() 83 struct nf_conn *ct; in xt_dnat_target_v0() 99 struct nf_conn *ct; in xt_snat_target_v1() 118 struct nf_conn *ct; in xt_dnat_target_v1() 135 struct nf_conn *ct; in xt_snat_target_v2() 150 struct nf_conn *ct; in xt_dnat_target_v2()
|
| H A D | xt_conntrack.c | 40 conntrack_mt_origsrc(const struct nf_conn *ct, in conntrack_mt_origsrc() 49 conntrack_mt_origdst(const struct nf_conn *ct, in conntrack_mt_origdst() 58 conntrack_mt_replsrc(const struct nf_conn *ct, in conntrack_mt_replsrc() 67 conntrack_mt_repldst(const struct nf_conn *ct, in conntrack_mt_repldst() 77 const struct nf_conn *ct) in ct_proto_port_check() 121 const struct nf_conn *ct) in ct_proto_port_check_v3() 167 const struct nf_conn *ct; in conntrack_mt()
|
| /linux/include/linux/ |
| H A D | netfilter.h | 387 struct nf_conn; 392 int (*parse_nat_setup)(struct nf_conn *ct, enum nf_nat_manip_type manip, 395 void (*remove_nat_bysrc)(struct nf_conn *ct); 473 struct nf_conn; 491 size_t (*build_size)(const struct nf_conn *ct); 492 int (*build)(struct sk_buff *skb, struct nf_conn *ct, 495 int (*parse)(const struct nlattr *attr, struct nf_conn *ct); 496 int (*attach_expect)(const struct nlattr *attr, struct nf_conn *ct, 498 void (*seq_adjust)(struct sk_buff *skb, struct nf_conn *ct,
|