| /linux-6.15/include/net/netfilter/ |
| H A D | nf_conntrack.h | 75 struct nf_conn { struct 111 struct nf_conn *master; argument 128 static inline struct nf_conn * argument 134 static inline struct nf_conn * 137 return container_of(hash, struct nf_conn, in nf_ct_tuplehash_to_ctrack() 169 static inline struct nf_conn * 175 return (struct nf_conn *)(nfct & NFCT_PTRMASK); in nf_ct_get() 183 static inline void nf_ct_put(struct nf_conn *ct) in nf_ct_put() 252 void nf_conntrack_free(struct nf_conn *ct); 345 void nf_ct_tmpl_free(struct nf_conn *tmpl); [all …]
|
| H A D | nf_conntrack_helper.h | 47 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), 115 int __nf_ct_try_assign_helper(struct nf_conn *ct, struct nf_conn *tmpl, 118 int nf_ct_helper(struct sk_buff *skb, struct nf_conn *ct, 123 void nf_ct_helper_destroy(struct nf_conn *ct); 130 static inline void *nfct_help_data(const struct nf_conn *ct) in nfct_help_data() [all …]
|
| H A D | nf_conntrack_l4proto.h | 31 bool (*can_early_drop)(const struct nf_conn *ct); 35 struct nf_conn *ct, bool destroy); 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, 115 int nf_conntrack_tcp_packet(struct nf_conn *ct, 120 int nf_conntrack_dccp_packet(struct nf_conn *ct, 125 int nf_conntrack_sctp_packet(struct nf_conn *ct, 130 int nf_conntrack_gre_packet(struct nf_conn *ct, 164 const struct nf_conn *ct, [all …]
|
| H A D | nf_conntrack_ecache.h | 34 nf_ct_ecache_find(const struct nf_conn *ct) in nf_ct_ecache_find() 43 static inline bool nf_ct_ecache_exist(const struct nf_conn *ct) in nf_ct_ecache_exist() 56 struct nf_conn *ct; 76 void nf_ct_deliver_cached_events(struct nf_conn *ct); 77 int nf_conntrack_eventmask_report(unsigned int eventmask, struct nf_conn *ct, 80 bool nf_ct_ecache_ext_add(struct nf_conn *ct, u16 ctmask, u16 expmask, gfp_t gfp); 83 static inline void nf_ct_deliver_cached_events(const struct nf_conn *ct) in nf_ct_deliver_cached_events() 88 struct nf_conn *ct, in nf_conntrack_eventmask_report() 102 nf_conntrack_event_cache(enum ip_conntrack_events event, struct nf_conn *ct) in nf_conntrack_event_cache() 128 nf_conntrack_event_report(enum ip_conntrack_events event, struct nf_conn *ct, in nf_conntrack_event_report() [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() 88 static inline void __nf_ct_set_timeout(struct nf_conn *ct, u64 timeout) in __nf_ct_set_timeout() 99 int __nf_ct_change_timeout(struct nf_conn *ct, u64 cta_timeout); 100 void __nf_ct_change_status(struct nf_conn *ct, unsigned long on, unsigned long off); 101 int nf_ct_change_status_common(struct nf_conn *ct, unsigned int status);
|
| H A D | nf_conntrack_timeout.h | 41 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()
|
| 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_expect.h | 39 void (*expectfn)(struct nf_conn *new, 46 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);
|
| 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()
|
| /linux-6.15/tools/testing/selftests/bpf/progs/ |
| H A D | test_bpf_nf_fail.c | 8 struct nf_conn; 21 struct nf_conn *bpf_ct_insert_entry(struct nf_conn *) __ksym; 22 void bpf_ct_release(struct nf_conn *) __ksym; 33 struct nf_conn *ct; in alloc_release() 47 struct nf_conn *ct; in insert_insert() 64 struct nf_conn *ct; in lookup_insert() 78 struct nf_conn *ct; in write_not_allowlisted_field() 92 struct nf_conn *ct; in set_timeout_after_insert() 109 struct nf_conn *ct; in set_status_after_insert() 126 struct nf_conn *ct; in change_timeout_after_alloc() [all …]
|
| H A D | test_bpf_nf.c | 52 struct nf_conn; 80 struct nf_conn *bpf_ct_insert_entry(struct nf_conn *) __ksym; 81 void bpf_ct_release(struct nf_conn *) __ksym; 82 void bpf_ct_set_timeout(struct nf_conn *, u32) __ksym; 84 int bpf_ct_set_status(struct nf_conn *, u32) __ksym; 98 struct nf_conn *ct; in nf_ct_test() 178 struct nf_conn *ct_ins; in nf_ct_test() 192 struct nf_conn *ct_lk; in nf_ct_test() 253 struct nf_conn *ct; in nf_ct_opts_new_test() 281 struct nf_conn *ct_ins; in nf_ct_opts_new_test() [all …]
|
| /linux-6.15/net/netfilter/ |
| H A D | nf_conntrack_bpf.c | 107 static struct nf_conn * 114 struct nf_conn *ct; in __bpf_nf_ct_alloc_entry() 180 struct nf_conn *ct; in __bpf_nf_ct_lookup() 232 BTF_ID(struct, nf_conn) in BTF_ID() argument 297 struct nf_conn *nfct; in bpf_xdp_ct_alloc() 326 __bpf_kfunc struct nf_conn * 332 struct nf_conn *nfct; in bpf_xdp_ct_lookup() 364 struct nf_conn *nfct; in bpf_skb_ct_alloc() 394 __bpf_kfunc struct nf_conn * 400 struct nf_conn *nfct; in bpf_skb_ct_lookup() [all …]
|
| H A D | nf_conntrack_core.c | 576 struct nf_conn *ct = (struct nf_conn *)nfct; in nf_ct_destroy() 703 nf_ct_match(const struct nf_conn *ct1, const struct nf_conn *ct2) in nf_ct_match() 748 struct nf_conn *ct; in ____nf_conntrack_find() 778 struct nf_conn *ct; in __nf_conntrack_find_get() 1085 struct nf_conn *loser_ct = (struct nf_conn *)skb_nfct(skb); in nf_ct_resolve_clash_harder() 1203 struct nf_conn *ct; in __nf_conntrack_confirm() 1348 struct nf_conn *ct; in nf_conntrack_tuple_taken() 1652 struct nf_conn *ct; in __nf_conntrack_alloc() 1746 struct nf_conn *ct; in init_conntrack() 1858 struct nf_conn *ct; in resolve_normal_ct() [all …]
|
| H A D | nf_nat_core.c | 59 const struct nf_conn *ct, in nf_nat_ipv4_decode_session() 91 const struct nf_conn *ct, in nf_nat_ipv6_decode_session() 126 const struct nf_conn *ct; in __nf_nat_decode_session() 254 struct nf_conn *ct; in nf_nat_used_tuple_new() 339 static bool nf_seq_has_advanced(const struct nf_conn *old, const struct nf_conn *new) in nf_seq_has_advanced() 355 struct nf_conn *ct; in nf_nat_used_tuple_harder() 484 const struct nf_conn *ct; in find_appropriate_src() 512 const struct nf_conn *ct, in find_best_ips_proto() 584 const struct nf_conn *ct) in nf_nat_l4proto_unique_tuple() 710 struct nf_conn *ct, in get_unique_tuple() [all …]
|
| H A D | nf_conntrack_sip.c | 855 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in set_expected_rtp_rtcp() 1032 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in process_sdp() 1141 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in process_invite_response() 1158 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in process_update_response() 1175 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in process_prack_response() 1192 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in process_invite_request() 1209 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in process_bye_request() 1225 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in process_register_request() 1328 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in process_register_response() 1413 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in process_sip_response() [all …]
|
| H A D | nf_conntrack_netlink.c | 63 struct nf_conn *last; 1216 struct nf_conn *ct, *last; in ctnetlink_dump_table() 1625 struct nf_conn *ct; in ctnetlink_del_conntrack() 1679 struct nf_conn *ct; in ctnetlink_get_conntrack() 1747 struct nf_conn *ct, in ctnetlink_dump_one_entry() 1815 struct nf_conn *ct; in ctnetlink_dump_dying() 2256 static struct nf_conn * 2264 struct nf_conn *ct; in ctnetlink_create_conntrack() 2423 struct nf_conn *ct; in ctnetlink_new_conntrack() 3285 struct nf_conn *ct; in ctnetlink_dump_exp_ct() [all …]
|
| H A D | nf_conntrack_h323_main.c | 65 struct nf_conn *ct, enum ip_conntrack_info ctinfo, in get_tpkt_data() 280 struct nf_conn *ct, in expect_t120() 332 struct nf_conn *ct, in process_h245_channel() 360 static int process_olc(struct sk_buff *skb, struct nf_conn *ct, in process_olc() 526 struct nf_conn *ct, enum ip_conntrack_info ctinfo) in h245_help() 588 int get_h225_addr(struct nf_conn *ct, unsigned char *data, in get_h225_addr() 620 static int expect_h245(struct sk_buff *skb, struct nf_conn *ct, in expect_h245() 735 struct nf_conn *ct, in expect_callforwarding() 866 struct nf_conn *ct, in process_callproceeding() 1089 struct nf_conn *ct, enum ip_conntrack_info ctinfo) in q931_help() [all …]
|
| /linux-6.15/include/linux/netfilter/ |
| H A D | nf_conntrack_h323.h | 34 int get_h225_addr(struct nf_conn *ct, unsigned char *data, 48 struct nf_conn *ct, 53 struct nf_conn *ct, 58 struct nf_conn *ct, 67 struct nf_conn *ct, 74 struct nf_conn *ct, 81 struct nf_conn *ct, 88 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 | 15 struct nf_conn; 25 int nf_ct_gre_keymap_add(struct nf_conn *ct, enum ip_conntrack_dir dir, 29 void nf_ct_gre_keymap_destroy(struct nf_conn *ct);
|