Home
last modified time | relevance | path

Searched refs:ip_set (Results 1 – 18 of 18) sorted by relevance

/linux/include/linux/netfilter/ipset/
H A Dip_set.h79 struct ip_set;
84 void (*destroy)(struct ip_set *set, void *ext);
136 typedef int (*ipset_adtfn)(struct ip_set *set, void *value,
155 int (*kadt)(struct ip_set *set, const struct sk_buff *skb,
163 int (*uadt)(struct ip_set *set, struct nlattr *tb[],
170 int (*resize)(struct ip_set *set, bool retried);
172 void (*destroy)(struct ip_set *set);
174 void (*flush)(struct ip_set *set);
176 void (*expire)(struct ip_set *set);
178 int (*head)(struct ip_set *set, struct sk_buff *skb);
[all …]
/linux/net/netfilter/ipset/
H A Dip_set_list_set.c29 struct ip_set *set; /* Sigh, in order to cleanup reference */
43 struct ip_set *set; /* attached to this ip_set */
49 list_set_ktest(struct ip_set *set, const struct sk_buff *skb, in list_set_ktest()
74 list_set_kadd(struct ip_set *set, const struct sk_buff *skb, in list_set_kadd()
94 list_set_kdel(struct ip_set *set, const struct sk_buff *skb, in list_set_kdel()
114 list_set_kadt(struct ip_set *set, const struct sk_buff *skb, in list_set_kadt()
146 struct ip_set *set = e->set; in __list_set_del_rcu()
153 list_set_del(struct ip_set *set, struct set_elem *e) in list_set_del()
164 list_set_replace(struct ip_set *set, struct set_elem *e, struct set_elem *old) in list_set_replace()
174 set_cleanup_entries(struct ip_set *set) in set_cleanup_entries()
[all …]
H A Dip_set_core.c31 struct ip_set * __rcu *ip_set_list; /* all individual sets */
62 #define ip_set(inst, id) \ macro
347 ip_set_init_comment(struct ip_set *set, struct ip_set_comment *comment, in ip_set_init_comment()
388 ip_set_comment_free(struct ip_set *set, void *ptr) in ip_set_comment_free()
401 typedef void (*destroyer)(struct ip_set *, void *);
441 ip_set_elem_len(struct ip_set *set, struct nlattr *tb[], size_t len, in ip_set_elem_len()
468 ip_set_get_extensions(struct ip_set *set, struct nlattr *tb[], in ip_set_get_extensions()
565 ip_set_put_extensions(struct sk_buff *skb, const struct ip_set *set, in ip_set_put_extensions()
639 ip_set_match_extensions(struct ip_set *set, const struct ip_set_ext *ext, in ip_set_match_extensions()
675 __ip_set_get(struct ip_set *set) in __ip_set_get()
[all …]
H A Dip_set_bitmap_gen.h39 mtype_gc_init(struct ip_set *set, void (*gc)(struct timer_list *t)) in mtype_gc_init()
48 mtype_ext_cleanup(struct ip_set *set) in mtype_ext_cleanup()
59 mtype_destroy(struct ip_set *set) in mtype_destroy()
72 mtype_flush(struct ip_set *set) in mtype_flush()
92 mtype_head(struct ip_set *set, struct sk_buff *skb) in mtype_head()
116 mtype_test(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_test()
130 mtype_add(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_add()
176 mtype_del(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_del()
204 mtype_list(const struct ip_set *set, in mtype_list()
269 struct ip_set *set = map->set; in mtype_gc()
[all …]
H A Dip_set_bitmap_port.c39 struct ip_set *set; /* attached to this ip_set */
127 bitmap_port_kadt(struct ip_set *set, const struct sk_buff *skb, in bitmap_port_kadt()
153 bitmap_port_uadt(struct ip_set *set, struct nlattr *tb[], in bitmap_port_uadt()
210 bitmap_port_same_set(const struct ip_set *a, const struct ip_set *b) in bitmap_port_same_set()
231 init_map_port(struct ip_set *set, struct bitmap_port *map, in init_map_port()
249 bitmap_port_create(struct net *net, struct ip_set *set, struct nlattr *tb[], in bitmap_port_create()
H A Dip_set_bitmap_ipmac.c52 struct ip_set *set; /* attached to this ip_set */
119 const struct ip_set_ext *ext, struct ip_set *set, in bitmap_ipmac_add_timeout()
209 bitmap_ipmac_kadt(struct ip_set *set, const struct sk_buff *skb, in bitmap_ipmac_kadt()
242 bitmap_ipmac_uadt(struct ip_set *set, struct nlattr *tb[], in bitmap_ipmac_uadt()
282 bitmap_ipmac_same_set(const struct ip_set *a, const struct ip_set *b) in bitmap_ipmac_same_set()
300 init_map_ipmac(struct ip_set *set, struct bitmap_ipmac *map, in init_map_ipmac()
319 bitmap_ipmac_create(struct net *net, struct ip_set *set, struct nlattr *tb[], in bitmap_ipmac_create()
H A Dip_set_bitmap_ip.c48 struct ip_set *set; /* attached to this ip_set */
110 bitmap_ip_kadt(struct ip_set *set, const struct sk_buff *skb, in bitmap_ip_kadt()
130 bitmap_ip_uadt(struct ip_set *set, struct nlattr *tb[], in bitmap_ip_uadt()
194 bitmap_ip_same_set(const struct ip_set *a, const struct ip_set *b) in bitmap_ip_same_set()
216 init_map_ip(struct ip_set *set, struct bitmap_ip *map, in init_map_ip()
250 bitmap_ip_create(struct net *net, struct ip_set *set, struct nlattr *tb[], in bitmap_ip_create()
H A Dip_set_hash_gen.h77 struct ip_set *set; /* Set the gc belongs to */
325 mtype_add_cidr(struct ip_set *set, struct htype *h, u8 cidr, u8 n) in mtype_add_cidr()
375 mtype_del_cidr(struct ip_set *set, struct htype *h, u8 cidr, u8 n) in mtype_del_cidr()
416 mtype_del_cidr_all(struct ip_set *set, struct htype *h, const struct mtype_elem *data) in mtype_del_cidr_all()
438 mtype_ext_cleanup(struct ip_set *set, struct hbucket *n) in mtype_ext_cleanup()
450 mtype_flush(struct ip_set *set) in mtype_flush()
497 mtype_ahash_destroy(struct ip_set *set, struct htable *t, bool ext_destroy) in mtype_ahash_destroy()
526 mtype_destroy(struct ip_set *set) in mtype_destroy()
543 mtype_same_set(const struct ip_set *a, const struct ip_set *b) in mtype_same_set()
561 mtype_gc_do(struct ip_set *set, struct htype *h, struct htable *t, u32 r) in mtype_gc_do()
[all …]
H A Dip_set_hash_ip.c80 hash_ip4_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_ip4_kadt()
100 hash_ip4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_ip4_uadt()
216 hash_ip6_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_ip6_kadt()
234 hash_ip6_uadt(struct ip_set *set, struct nlattr *tb[], in hash_ip6_uadt()
H A Dip_set_hash_ipmark.c80 hash_ipmark4_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_ipmark4_kadt()
97 hash_ipmark4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_ipmark4_uadt()
219 hash_ipmark6_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_ipmark6_kadt()
236 hash_ipmark6_uadt(struct ip_set *set, struct nlattr *tb[], in hash_ipmark6_uadt()
H A Dip_set_hash_net.c113 hash_net4_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_net4_kadt()
136 hash_net4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_net4_uadt()
287 hash_net6_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_net6_kadt()
310 hash_net6_uadt(struct ip_set *set, struct nlattr *tb[], in hash_net6_uadt()
H A Dip_set_hash_ipportip.c90 hash_ipportip4_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_ipportip4_kadt()
108 hash_ipportip4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_ipportip4_uadt()
263 hash_ipportip6_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_ipportip6_kadt()
281 hash_ipportip6_uadt(struct ip_set *set, struct nlattr *tb[], in hash_ipportip6_uadt()
H A Dip_set_hash_ipport.c91 hash_ipport4_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_ipport4_kadt()
112 hash_ipport4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_ipport4_uadt()
264 hash_ipport6_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_ipport6_kadt()
286 hash_ipport6_uadt(struct ip_set *set, struct nlattr *tb[], in hash_ipport6_uadt()
H A Dip_set_hash_netiface.c157 hash_netiface4_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_netiface4_kadt()
198 hash_netiface4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_netiface4_uadt()
378 hash_netiface6_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_netiface6_kadt()
417 hash_netiface6_uadt(struct ip_set *set, struct nlattr *tb[], in hash_netiface6_uadt()
H A Dip_set_hash_netport.c129 hash_netport4_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_netport4_kadt()
154 hash_netport4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_netport4_uadt()
349 hash_netport6_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_netport6_kadt()
374 hash_netport6_uadt(struct ip_set *set, struct nlattr *tb[], in hash_netport6_uadt()
H A Dip_set_hash_netnet.c143 hash_netnet4_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_netnet4_kadt()
168 hash_netnet4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_netnet4_uadt()
384 hash_netnet6_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_netnet6_kadt()
414 hash_netnet6_uadt(struct ip_set *set, struct nlattr *tb[], in hash_netnet6_uadt()
H A Dip_set_hash_ipportnet.c134 hash_ipportnet4_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_ipportnet4_kadt()
160 hash_ipportnet4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_ipportnet4_uadt()
394 hash_ipportnet6_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_ipportnet6_kadt()
420 hash_ipportnet6_uadt(struct ip_set *set, struct nlattr *tb[], in hash_ipportnet6_uadt()
H A Dip_set_hash_netportnet.c151 hash_netportnet4_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_netportnet4_kadt()
190 hash_netportnet4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_netportnet4_uadt()
448 hash_netportnet6_kadt(struct ip_set *set, const struct sk_buff *skb, in hash_netportnet6_kadt()
477 hash_netportnet6_uadt(struct ip_set *set, struct nlattr *tb[], in hash_netportnet6_uadt()