summaryrefslogtreecommitdiff
path: root/sysdep/linux/sysio.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-04-02 11:31:20 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2010-04-02 11:31:20 +0200
commitbed417288e989c48a1362bb1177f436a2e2f9f4f (patch)
tree3fb727a0e2b0be0cfecef14f30b57134eeb3348b /sysdep/linux/sysio.h
parent126683feeda03ffb5a4ce23611e59a4598382d49 (diff)
Minor fixes to previous patches.
Diffstat (limited to 'sysdep/linux/sysio.h')
-rw-r--r--sysdep/linux/sysio.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sysdep/linux/sysio.h b/sysdep/linux/sysio.h
index 91cbdcd8..1cfbcc4b 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;