]> git.proxmox.com Git - mirror_frr.git/commitdiff
Include padding in control message length.
authorgdt <gdt>
Wed, 11 Aug 2004 19:20:01 +0000 (19:20 +0000)
committergdt <gdt>
Wed, 11 Aug 2004 19:20:01 +0000 (19:20 +0000)
Inspired by netbsd:src/usr.sbin/rtadvd/rtadvd.c (from KAME).

zebra/rtadv.c

index 082a1b362f1043cbfbbf28e48742d773bc7738e6..7ded4c8033fb502e503575646c444982dcaf472d 100644 (file)
@@ -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;