mirror of https://github.com/mkerrisk/man-pages
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:
parent
d2e7d1bb58
commit
cb7c2ea700
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue