OSDN Git Service

LDP: Update original to LDP v3.75
[linuxjm/LDP_man-pages.git] / original / man3 / rtnetlink.3
index 2683f9f..74a4b3b 100644 (file)
@@ -9,7 +9,7 @@
 .\"
 .\" $Id: rtnetlink.3,v 1.2 1999/05/18 10:35:10 freitag Exp $
 .\"
-.TH RTNETLINK 3 2012-03-24 "GNU" "Linux Programmer's Manual"
+.TH RTNETLINK 3 2014-09-06 "GNU" "Linux Programmer's Manual"
 .SH NAME
 rtnetlink \- macros to manipulate rtnetlink messages
 .SH SYNOPSIS
@@ -84,8 +84,7 @@ These macros are nonstandard Linux extensions.
 .SH BUGS
 This manual page is incomplete.
 .SH EXAMPLE
-.\" FIXME ? would be better to use libnetlink in the EXAMPLE code here
-
+.\" FIXME . ? would be better to use libnetlink in the EXAMPLE code here
 Creating a rtnetlink message to set the MTU of a device:
 .nf
     #include <linux/rtnetlink.h>
@@ -117,14 +116,14 @@ Creating a rtnetlink message to set the MTU of a device:
     req.n.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);
+    send(rtnetlink_sk, &req, req.nh.nlmsg_len, 0);
 .fi
 .SH SEE ALSO
 .BR netlink (3),
 .BR netlink (7),
 .BR rtnetlink (7)
 .SH COLOPHON
-This page is part of release 3.68 of the Linux
+This page is part of release 3.75 of the Linux
 .I man-pages
 project.
 A description of the project,