mirror of https://github.com/mkerrisk/man-pages
rtnetlink.3: wsfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
ce28864c25
commit
0b0e746aed
|
@ -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) +
|
||||
|
|
Loading…
Reference in New Issue