Home
last modified time | relevance | path

Searched defs:cidr (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/net/wireguard/
H A Dallowedips.c24 u8 cidr, u8 bits) in copy_and_assign_cidr() argument
150 node_placement(struct allowedips_node __rcu * trie,const u8 * key,u8 cidr,u8 bits,struct allowedips_node ** rnode,struct mutex * lock) node_placement() argument
182 add(struct allowedips_node __rcu ** trie,u8 bits,const u8 * key,u8 cidr,struct wg_peer * peer,struct mutex * lock) add() argument
284 remove(struct allowedips_node __rcu ** trie,u8 bits,const u8 * key,u8 cidr,struct wg_peer * peer,struct mutex * lock) remove() argument
328 wg_allowedips_insert_v4(struct allowedips * table,const struct in_addr * ip,u8 cidr,struct wg_peer * peer,struct mutex * lock) wg_allowedips_insert_v4() argument
339 wg_allowedips_insert_v6(struct allowedips * table,const struct in6_addr * ip,u8 cidr,struct wg_peer * peer,struct mutex * lock) wg_allowedips_insert_v6() argument
350 wg_allowedips_remove_v4(struct allowedips * table,const struct in_addr * ip,u8 cidr,struct wg_peer * peer,struct mutex * lock) wg_allowedips_remove_v4() argument
361 wg_allowedips_remove_v6(struct allowedips * table,const struct in6_addr * ip,u8 cidr,struct wg_peer * peer,struct mutex * lock) wg_allowedips_remove_v6() argument
383 wg_allowedips_read_node(struct allowedips_node * node,u8 ip[16],u8 * cidr) wg_allowedips_read_node() argument
[all...]
H A Dnetlink.c46 static int get_allowedips(struct sk_buff *skb, const u8 *ip, u8 cidr, in get_allowedips()
148 u8 cidr, ip[16] __aligned(__alignof(u64)); in get_peer() local
305 u8 cidr; in set_allowedip() local
H A Dallowedips.h18 u8 cidr, bit_at_a, bit_at_b, bitlen; member
/linux/drivers/soc/atmel/
H A Dsoc.c277 static int __init at91_get_cidr_exid_from_dbgu(u32 *cidr, u32 *exid) in at91_get_cidr_exid_from_dbgu()
305 static int __init at91_get_cidr_exid_from_chipid(u32 *cidr, u32 *exid) in at91_get_cidr_exid_from_chipid()
341 u32 cidr, exid; in at91_soc_init() local
/linux/net/netfilter/ipset/
H A Dip_set_hash_netport.c55 u8 cidr:7; member
91 hash_netport4_data_netmask(struct hash_netport4_elem *elem, u8 cidr) in hash_netport4_data_netmask()
163 u8 cidr; in hash_netport4_uadt() local
272 u8 cidr:7; member
308 hash_netport6_data_netmask(struct hash_netport6_elem *elem, u8 cidr) in hash_netport6_data_netmask()
383 u8 cidr; in hash_netport6_uadt() local
H A Dip_set_hash_ipportnet.c56 u8 cidr:7; member
94 hash_ipportnet4_data_netmask(struct hash_ipportnet4_elem *elem, u8 cidr) in hash_ipportnet4_data_netmask()
170 u8 cidr; in hash_ipportnet4_uadt() local
311 u8 cidr:7; member
349 hash_ipportnet6_data_netmask(struct hash_ipportnet6_elem *elem, u8 cidr) in hash_ipportnet6_data_netmask()
426 u8 cidr; in hash_ipportnet6_uadt() local
H A Dip_set_hash_netiface.c50 u8 cidr; member
59 u8 cidr; member
101 hash_netiface4_data_netmask(struct hash_netiface4_elem *elem, u8 cidr) in hash_netiface4_data_netmask()
285 u8 cidr; member
293 u8 cidr; member
335 hash_netiface6_data_netmask(struct hash_netiface6_elem *elem, u8 cidr) in hash_netiface6_data_netmask()
H A Dip_set_hash_gen.h102 u8 cidr[IPSET_NET_COUNT]; /* the cidr value */ member
124 #define __CIDR(cidr, i) (cidr[i]) argument
126 #define __CIDR(cidr, i) (cidr) argument
130 #define NCIDR_PUT(cidr) ((cidr) + 1) argument
131 #define NCIDR_GET(cidr) ((cidr) - 1) argument
135 #define DCIDR_PUT(cidr) ((cidr) - 1) argument
136 #define DCIDR_GET(cidr, i) (__CIDR(cidr, i) + 1) argument
138 #define DCIDR_PUT(cidr) (cidr) argument
139 #define DCIDR_GET(cidr, i) __CIDR(cidr, i) argument
142 #define INIT_CIDR(cidr, host_mask) \ argument
[all …]
H A Dip_set_hash_net.c46 u8 cidr; member
79 hash_net4_data_netmask(struct hash_net4_elem *elem, u8 cidr) in hash_net4_data_netmask()
217 u8 cidr; member
250 hash_net6_data_netmask(struct hash_net6_elem *elem, u8 cidr) in hash_net6_data_netmask()
H A Dip_set_hash_netportnet.c51 u8 cidr[2]; member
99 u8 cidr, bool inner) in hash_netportnet4_data_netmask()
178 hash_netportnet4_range_to_cidr(u32 from, u32 to, u8 *cidr) in hash_netportnet4_range_to_cidr()
342 u8 cidr[2]; member
391 u8 cidr, bool inner) in hash_netportnet6_data_netmask()
H A Dip_set_hash_netnet.c52 u8 cidr[2]; member
94 hash_netnet4_data_netmask(struct hash_netnet4_elem *elem, u8 cidr, bool inner) in hash_netnet4_data_netmask()
287 u8 cidr[2]; member
330 hash_netnet6_data_netmask(struct hash_netnet6_elem *elem, u8 cidr, bool inner) in hash_netnet6_data_netmask()
H A Dip_set_hash_ipmark.c144 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipmark4_uadt() local
250 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipmark6_uadt() local
H A Dip_set_hash_ip.c143 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ip4_uadt() local
251 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ip6_uadt() local
H A Dpfxlen.c172 ip_set_range_to_cidr(u32 from, u32 to, u8 *cidr) in ip_set_range_to_cidr()
H A Dip_set_hash_ipport.c173 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipport4_uadt() local
304 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipport6_uadt() local
H A Dip_set_hash_ipportip.c169 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipportip4_uadt() local
299 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipportip6_uadt() local
H A Dip_set_bitmap_ip.c169 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in bitmap_ip_uadt() local
275 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in bitmap_ip_create() local
H A Dip_set_bitmap_ipmac.c342 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); bitmap_ipmac_create() local
/linux/include/linux/netfilter/ipset/
H A Dpfxlen.h39 #define ip_set_mask_from_to(from, to, cidr) \ argument