diff options
author | gdt <gdt> | 2004-08-11 19:20:01 +0000 |
---|---|---|
committer | gdt <gdt> | 2004-08-11 19:20:01 +0000 |
commit | f841e02e16869481f4ac4cdfd2e8c941df815720 (patch) | |
tree | d07fc8611efc90e6ebf9484e3e5c9dd25d25a041 /zebra | |
parent | 57492d564c6c86578bb1ff929bd3e750a5027abd (diff) |
Include padding in control message length.
Inspired by netbsd:src/usr.sbin/rtadvd/rtadvd.c (from KAME).
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/rtadv.c | 2 |
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; |