Searched refs:new_allowedip (Results 1 – 2 of 2) sorted by relevance
342 struct wgallowedip *allowedip = *last_allowedip, *new_allowedip; in parse_allowedips() local362 new_allowedip = calloc(1, sizeof(*new_allowedip)); in parse_allowedips()363 if (!new_allowedip) { in parse_allowedips()370 if (!parse_ip(new_allowedip, ip)) { in parse_allowedips()371 free(new_allowedip); in parse_allowedips()381 …if (*end || (cidr > 32 && new_allowedip->family == AF_INET) || (cidr > 128 && new_allowedip->famil… in parse_allowedips()383 } else if (new_allowedip->family == AF_INET) in parse_allowedips()385 else if (new_allowedip->family == AF_INET6) in parse_allowedips()389 new_allowedip->cidr = cidr; in parse_allowedips()391 if (!validate_netmask(new_allowedip)) in parse_allowedips()[all …]
248 struct wgallowedip *new_allowedip; in userspace_get_device() local253 new_allowedip = calloc(1, sizeof(*new_allowedip)); in userspace_get_device()254 if (!new_allowedip) { in userspace_get_device()259 allowedip->next_allowedip = new_allowedip; in userspace_get_device()261 peer->first_allowedip = new_allowedip; in userspace_get_device()262 allowedip = new_allowedip; in userspace_get_device()