/Linux-v5.4/include/net/netfilter/ |
D | nf_conntrack.h | 58 struct nf_conn { struct 93 struct nf_conn *master; argument 110 static inline struct nf_conn * argument 113 return container_of(hash, struct nf_conn, in nf_ct_tuplehash_to_ctrack() 117 static inline u_int16_t nf_ct_l3num(const struct nf_conn *ct) in nf_ct_l3num() 122 static inline u_int8_t nf_ct_protonum(const struct nf_conn *ct) in nf_ct_protonum() 134 static inline struct net *nf_ct_net(const struct nf_conn *ct) in nf_ct_net() 140 void nf_conntrack_alter_reply(struct nf_conn *ct, 146 const struct nf_conn *ignored_conntrack); 149 static inline struct nf_conn * [all …]
|
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), 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 …]
|
D | nf_conntrack_l4proto.h | 31 bool (*can_early_drop)(const struct nf_conn *ct); 35 struct nf_conn *ct); 38 int (*from_nlattr)(struct nlattr *tb[], struct nf_conn *ct); 59 void (*print_conntrack)(struct seq_file *s, struct nf_conn *); 78 int nf_conntrack_inet_error(struct nf_conn *tmpl, struct sk_buff *skb, 84 int nf_conntrack_icmpv4_error(struct nf_conn *tmpl, 89 int nf_conntrack_icmpv6_error(struct nf_conn *tmpl, 94 int nf_conntrack_icmp_packet(struct nf_conn *ct, 99 int nf_conntrack_icmpv6_packet(struct nf_conn *ct, 104 int nf_conntrack_udp_packet(struct nf_conn *ct, [all …]
|
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);
|
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, 109 static inline int nf_nat_initialized(struct nf_conn *ct, in nf_nat_initialized()
|
D | nf_conntrack_ecache.h | 32 nf_ct_ecache_find(const struct nf_conn *ct) in nf_ct_ecache_find() 42 nf_ct_ecache_ext_add(struct nf_conn *ct, u16 ctmask, u16 expmask, gfp_t gfp) in nf_ct_ecache_ext_add() 70 struct nf_conn *ct; 84 void nf_ct_deliver_cached_events(struct nf_conn *ct); 85 int nf_conntrack_eventmask_report(unsigned int eventmask, struct nf_conn *ct, 90 static inline void nf_ct_deliver_cached_events(const struct nf_conn *ct) in nf_ct_deliver_cached_events() 95 struct nf_conn *ct, in nf_conntrack_eventmask_report() 105 nf_conntrack_event_cache(enum ip_conntrack_events event, struct nf_conn *ct) in nf_conntrack_event_cache() 123 nf_conntrack_event_report(enum ip_conntrack_events event, struct nf_conn *ct, in nf_conntrack_event_report() 139 nf_conntrack_event(enum ip_conntrack_events event, struct nf_conn *ct) in nf_conntrack_event()
|
D | nf_conntrack_timeout.h | 49 struct nf_conn_timeout *nf_ct_timeout_find(const struct nf_conn *ct) in nf_ct_timeout_find() 59 struct nf_conn_timeout *nf_ct_timeout_ext_add(struct nf_conn *ct, in nf_ct_timeout_ext_add() 78 static inline unsigned int *nf_ct_timeout_lookup(const struct nf_conn *ct) in nf_ct_timeout_lookup() 95 int nf_ct_set_timeout(struct net *net, struct nf_conn *ct, u8 l3num, u8 l4num, 97 void nf_ct_destroy_timeout(struct nf_conn *ct); 109 static inline int nf_ct_set_timeout(struct net *net, struct nf_conn *ct, in nf_ct_set_timeout() 116 static inline void nf_ct_destroy_timeout(struct nf_conn *ct) in nf_ct_destroy_timeout()
|
D | nf_conntrack_extend.h | 57 static inline bool nf_ct_ext_exist(const struct nf_conn *ct, u8 id) in nf_ct_ext_exist() 62 static inline void *__nf_ct_ext_find(const struct nf_conn *ct, u8 id) in __nf_ct_ext_find() 73 void nf_ct_ext_destroy(struct nf_conn *ct); 78 static inline void nf_ct_ext_free(struct nf_conn *ct) in nf_ct_ext_free() 85 void *nf_ct_ext_add(struct nf_conn *ct, enum nf_ct_ext_id id, gfp_t gfp); 89 void (*destroy)(struct nf_conn *ct);
|
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()
|
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()
|
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);
|
D | nf_conntrack_labels.h | 20 static inline struct nf_conn_labels *nf_ct_labels_find(const struct nf_conn *ct) in nf_ct_labels_find() 29 static inline struct nf_conn_labels *nf_ct_labels_ext_add(struct nf_conn *ct) in nf_ct_labels_ext_add() 43 int nf_connlabels_replace(struct nf_conn *ct,
|
D | nf_conntrack_expect.h | 30 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);
|
D | nf_conntrack_core.h | 58 struct nf_conn *ct = (struct nf_conn *)skb_nfct(skb); in nf_conntrack_confirm() 71 struct nf_conn *ct, enum ip_conntrack_info ctinfo);
|
/Linux-v5.4/include/linux/netfilter/ |
D | nf_conntrack_h323.h | 34 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, 70 extern int (*nat_t120_hook) (struct sk_buff *skb, struct nf_conn *ct, 76 extern int (*nat_h245_hook) (struct sk_buff *skb, struct nf_conn *ct, 83 struct nf_conn *ct, 90 extern int (*nat_q931_hook) (struct sk_buff *skb, struct nf_conn *ct,
|
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,
|
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, 30 void nf_ct_gre_keymap_destroy(struct nf_conn *ct);
|
/Linux-v5.4/net/netfilter/ |
D | nf_conntrack_core.c | 462 u32 nf_ct_get_id(const struct nf_conn *ct) in nf_ct_get_id() 484 clean_from_lists(struct nf_conn *ct) in clean_from_lists() 495 static void nf_ct_add_to_dying_list(struct nf_conn *ct) in nf_ct_add_to_dying_list() 510 static void nf_ct_add_to_unconfirmed_list(struct nf_conn *ct) in nf_ct_add_to_unconfirmed_list() 525 static void nf_ct_del_from_dying_or_unconfirmed_list(struct nf_conn *ct) in nf_ct_del_from_dying_or_unconfirmed_list() 541 struct nf_conn *nf_ct_tmpl_alloc(struct net *net, in nf_ct_tmpl_alloc() 545 struct nf_conn *tmpl, *p; in nf_ct_tmpl_alloc() 553 tmpl = (struct nf_conn *)NFCT_ALIGN((unsigned long)p); in nf_ct_tmpl_alloc() 555 tmpl = (struct nf_conn *)NFCT_ALIGN((unsigned long)p); in nf_ct_tmpl_alloc() 573 void nf_ct_tmpl_free(struct nf_conn *tmpl) in nf_ct_tmpl_free() [all …]
|
D | nf_conntrack_sip.c | 66 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 …]
|
D | nf_conntrack_h323_main.c | 64 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, 119 struct nf_conn *ct, enum ip_conntrack_info ctinfo, in get_tpkt_data() 221 static int get_h245_addr(struct nf_conn *ct, const unsigned char *data, in get_h245_addr() 255 static int expect_rtp_rtcp(struct sk_buff *skb, struct nf_conn *ct, in expect_rtp_rtcp() [all …]
|
D | nf_nat_core.c | 56 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() 206 const struct nf_conn *ignored_conntrack) in nf_nat_used_tuple() 283 same_src(const struct nf_conn *ct, in same_src() 303 const struct nf_conn *ct; in find_appropriate_src() 331 const struct nf_conn *ct, in find_best_ips_proto() 403 const struct nf_conn *ct) in nf_nat_l4proto_unique_tuple() 527 struct nf_conn *ct, in get_unique_tuple() 586 struct nf_conn_nat *nf_ct_nat_ext_add(struct nf_conn *ct) in nf_ct_nat_ext_add() [all …]
|
D | nf_conntrack_netlink.c | 158 static int ctnetlink_dump_status(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_status() 168 static int ctnetlink_dump_timeout(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_timeout() 180 static int ctnetlink_dump_protoinfo(struct sk_buff *skb, struct nf_conn *ct) in ctnetlink_dump_protoinfo() 205 const struct nf_conn *ct) in ctnetlink_dump_helpinfo() 271 ctnetlink_dump_acct(struct sk_buff *skb, const struct nf_conn *ct, int type) in ctnetlink_dump_acct() 287 ctnetlink_dump_timestamp(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_timestamp() 315 static int ctnetlink_dump_mark(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_mark() 329 static int ctnetlink_dump_secctx(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_secctx() 358 static inline int ctnetlink_label_size(const struct nf_conn *ct) in ctnetlink_label_size() 368 ctnetlink_dump_labels(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_labels() [all …]
|
D | xt_nat.c | 57 struct nf_conn *ct; in xt_snat_target_v0() 74 struct nf_conn *ct; in xt_dnat_target_v0() 90 struct nf_conn *ct; in xt_snat_target_v1() 109 struct nf_conn *ct; in xt_dnat_target_v1() 126 struct nf_conn *ct; in xt_snat_target_v2() 141 struct nf_conn *ct; in xt_dnat_target_v2()
|
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-v5.4/include/linux/ |
D | netfilter.h | 355 struct nf_conn; 361 int (*parse_nat_setup)(struct nf_conn *ct, enum nf_nat_manip_type manip, 364 unsigned int (*manip_pkt)(struct sk_buff *skb, struct nf_conn *ct, 443 struct nf_conn; 457 struct nf_conn *(*get_ct)(const struct sk_buff *skb, 459 size_t (*build_size)(const struct nf_conn *ct); 460 int (*build)(struct sk_buff *skb, struct nf_conn *ct, 463 int (*parse)(const struct nlattr *attr, struct nf_conn *ct); 464 int (*attach_expect)(const struct nlattr *attr, struct nf_conn *ct, 466 void (*seq_adjust)(struct sk_buff *skb, struct nf_conn *ct,
|