Lines Matching defs:cidr
75 static int get_allowedips(struct sk_buff *skb, const u8 *ip, u8 cidr,
84 if (nla_put_u8(skb, WGALLOWEDIP_A_CIDR_MASK, cidr) ||
177 u8 cidr, ip[16] __aligned(__alignof(u64));
180 family = wg_allowedips_read_node(allowedips_node, ip, &cidr);
181 if (get_allowedips(skb, ip, cidr, family)) {
333 u8 cidr;
339 cidr = nla_get_u8(attrs[WGALLOWEDIP_A_CIDR_MASK]);
341 if (family == AF_INET && cidr <= 32 &&
345 nla_data(attrs[WGALLOWEDIP_A_IPADDR]), cidr, peer,
347 else if (family == AF_INET6 && cidr <= 128 &&
351 nla_data(attrs[WGALLOWEDIP_A_IPADDR]), cidr, peer,