diff options
Diffstat (limited to 'sysdep/linux/sysio.h')
-rw-r--r-- | sysdep/linux/sysio.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sysdep/linux/sysio.h b/sysdep/linux/sysio.h index 91cbdcd..1cfbcc4 100644 --- a/sysdep/linux/sysio.h +++ b/sysdep/linux/sysio.h @@ -272,17 +272,17 @@ sysio_process_rx_cmsgs(sock *s, struct msghdr *msg) } -void -sysio_prepare_tx_cmsgs(sock *s, struct msghdr *msg) +static void +sysio_prepare_tx_cmsgs(sock *s, struct msghdr *msg, void *cbuf, size_t cbuflen) { struct cmsghdr *cm; struct in_pktinfo *pi; if (!(s->flags & SKF_LADDR_TX)) - { - msg->msg_controllen = 0; - return; - } + return; + + msg->msg_control = cbuf; + msg->msg_controllen = cbuflen; cm = CMSG_FIRSTHDR(msg); cm->cmsg_level = IPPROTO_IP; |