rtnetlink.3: wsfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2010-09-22 15:56:26 +02:00
parent ce28864c25
commit 0b0e746aed
1 changed files with 2 additions and 2 deletions

View File

@ -105,9 +105,9 @@ Creating a rtnetlink message to set the MTU of a device:
req.nh.nlmsg_type = RTM_NEWLINK;
req.if.ifi_family = AF_UNSPEC;
req.if.ifi_index = INTERFACE_INDEX;
req.if.ifi_change = 0xffffffff; /* ???*/
req.if.ifi_change = 0xffffffff; /* ??? */
rta = (struct rtattr *)(((char *) &req) +
NLMSG_ALIGN(req.nh.nlmsg_len));
NLMSG_ALIGN(req.nh.nlmsg_len));
rta\->rta_type = IFLA_MTU;
rta\->rta_len = sizeof(unsigned int);
req.n.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) +