From f841e02e16869481f4ac4cdfd2e8c941df815720 Mon Sep 17 00:00:00 2001 From: gdt Date: Wed, 11 Aug 2004 19:20:01 +0000 Subject: Include padding in control message length. Inspired by netbsd:src/usr.sbin/rtadvd/rtadvd.c (from KAME). --- zebra/rtadv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zebra') 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; -- cgit v1.2.1