summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zebra/rtadv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/rtadv.c b/zebra/rtadv.c
index 082a1b36..7ded4c80 100644
--- a/zebra/rtadv.c
+++ b/zebra/rtadv.c
@@ -283,7 +283,7 @@ rtadv_send_packet (int sock, struct interface *ifp)
msg.msg_iov = &iov;
msg.msg_iovlen = 1;
msg.msg_control = (void *) adata;
- msg.msg_controllen = CMSG_LEN(sizeof(struct in6_pktinfo));
+ msg.msg_controllen = CMSG_SPACE(sizeof(struct in6_pktinfo));
msg.msg_flags = 0;
iov.iov_base = buf;
iov.iov_len = len;