From 794d8db3ab0e611ca603e35916bbc38763709cc4 Mon Sep 17 00:00:00 2001 From: HuKeping Date: Mon, 5 Sep 2016 14:54:59 +0800 Subject: [PATCH] rtnetlink.3: tfix Signed-off-by: Hu Keping --- man3/rtnetlink.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man3/rtnetlink.3 b/man3/rtnetlink.3 index 143be57b6..430206d70 100644 --- a/man3/rtnetlink.3 +++ b/man3/rtnetlink.3 @@ -113,7 +113,7 @@ Creating a rtnetlink message to set the MTU of a device: NLMSG_ALIGN(req.nh.nlmsg_len)); rta\->rta_type = IFLA_MTU; rta\->rta_len = RTA_LENGTH(sizeof(unsigned int)); - req.n.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) + + req.nh.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, 0);