1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

RAdv: Some style nitpicks

This commit is contained in:
Ondrej Zajicek (work)
2017-08-29 19:17:35 +02:00
parent ec7d6a506e
commit 08b6a617e8
4 changed files with 50 additions and 48 deletions

View File

@@ -209,16 +209,16 @@ static int
radv_prepare_prefix(struct radv_iface *ifa, struct radv_prefix *prefix,
char **buf, char *bufend)
{
struct radv_prefix_config *pc = prefix->config;
struct radv_opt_prefix *op = (void *) *buf;
struct radv_prefix_config *pc = prefix->cf;
if (*buf + sizeof(*op) > bufend)
if (*buf + sizeof(struct radv_opt_prefix) > bufend)
{
log(L_WARN "%s: Too many prefixes on interface %s", ifa->ra->p.name,
ifa->iface->name);
log(L_WARN "%s: Too many prefixes on interface %s",
ifa->ra->p.name, ifa->iface->name);
return -1;
}
struct radv_opt_prefix *op = (void *) *buf;
op->type = OPT_PREFIX;
op->length = 4;
op->pxlen = prefix->len;