diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-08-29 19:17:35 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-08-30 16:34:15 +0200 |
commit | 08b6a617e862ffc7b7460abb79fe4c198806517c (patch) | |
tree | 036339256e32b78c6f8dd319b6755559e2e0dc79 /proto/radv/packets.c | |
parent | ec7d6a506ecae89e5019ce7fcb380a713be28bce (diff) |
RAdv: Some style nitpicks
Diffstat (limited to 'proto/radv/packets.c')
-rw-r--r-- | proto/radv/packets.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/proto/radv/packets.c b/proto/radv/packets.c index 088d177c..19d71f97 100644 --- a/proto/radv/packets.c +++ b/proto/radv/packets.c @@ -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; |