diff options
| author | HuKeping <hukeping@huawei.com> | 2016-09-05 14:54:59 +0800 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-09-09 07:23:18 +0100 |
| commit | 794d8db3ab0e611ca603e35916bbc38763709cc4 (patch) | |
| tree | f407194592ee608ef4a6ff4e39db7e21789922fd | |
| parent | 5e43063bdd4389d0c9163187ff1d6a277d3721a4 (diff) | |
| download | man-pages-794d8db3ab0e611ca603e35916bbc38763709cc4.tar.gz | |
rtnetlink.3: tfix
Signed-off-by: Hu Keping <hukeping@huawei.com>
| -rw-r--r-- | man3/rtnetlink.3 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man3/rtnetlink.3 b/man3/rtnetlink.3 index 143be57b6a..430206d700 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); |
