rtnetlink.3: Fix parameters for the send() call in the example

Signed-off-by: Holger Hans Peter Freyther <holger@moiji-mobile.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Holger Hans Peter Freyther 2014-08-30 15:36:33 +02:00 committed by Michael Kerrisk
parent d2e7d1bb58
commit cb7c2ea700
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ Creating a rtnetlink message to set the MTU of a device:
req.n.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) +
RTA_LENGTH(sizeof(mtu));
memcpy(RTA_DATA(rta), &mtu, sizeof(mtu));
send(rtnetlink_sk, &req, req.nh.nlmsg_len);
send(rtnetlink_sk, &req, req.nh.nlmsg_len, 0);
.fi
.SH SEE ALSO
.BR netlink (3),