aboutsummaryrefslogtreecommitdiffstats
path: root/man3/rtnetlink.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/rtnetlink.3')
-rw-r--r--man3/rtnetlink.36
1 files changed, 3 insertions, 3 deletions
diff --git a/man3/rtnetlink.3 b/man3/rtnetlink.3
index a71cbbcdff..0fdfddf1f7 100644
--- a/man3/rtnetlink.3
+++ b/man3/rtnetlink.3
@@ -104,9 +104,9 @@ Creating a rtnetlink message to set the MTU of a device:
req.if.ifi_index = INTERFACE_INDEX;
req.if.ifi_change = 0xffffffff; /* ???*/
rta = (struct rtattr *)(((char *) &req) +
- NLMSG_ALIGN(n->nlmsg_len));
- rta->rta_type = IFLA_MTU;
- rta->rta_len = sizeof(unsigned int);
+ NLMSG_ALIGN(n\->nlmsg_len));
+ rta\->rta_type = IFLA_MTU;
+ rta\->rta_len = sizeof(unsigned int);
req.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len) +
RTA_LENGTH(sizeof(mtu));
memcpy(RTA_DATA(rta), &mtu, sizeof(mtu));