diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-04-02 11:31:20 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-04-02 11:31:20 +0200 |
commit | bed417288e989c48a1362bb1177f436a2e2f9f4f (patch) | |
tree | 3fb727a0e2b0be0cfecef14f30b57134eeb3348b /sysdep/linux | |
parent | 126683feeda03ffb5a4ce23611e59a4598382d49 (diff) | |
download | bird-bed417288e989c48a1362bb1177f436a2e2f9f4f.tar bird-bed417288e989c48a1362bb1177f436a2e2f9f4f.zip |
Minor fixes to previous patches.
Diffstat (limited to 'sysdep/linux')
-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; |