Skip to contentSkip to conversation

rtnetlink.7: Add info about ability to create links with given index

PATCH In review Pavel Emelyanov 2 participants 2 messages Feb 18, 2013 – Feb 28, 2013 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtnetlink.7: Add info about ability to create links with given index

Since kernel v3.7 the RTM_NEWLINK message not accepts non-zero values in ifi_index field. Mention this fact in the respective rtneltlink.7 section.

---

man7/rtnetlink.7 +4 -1
index ebd9107..0809026 100644
@@ -78,7 +78,10 @@ struct ifinfomsg {
 contains the device flags, see
 .BR netdevice (7);
 .I ifi_index
-is the unique interface index,
+is the unique interface index (since kernel v3.7 it is possible to feed a non-zero
+value with the
+.B RTM_NEWLINK
+message, thus creating a link with the given ifindex);
 .I ifi_change
 is reserved for future use and should be always set to 0xFFFFFFFF.
 .na

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to a message not in the archive
Quoted 5 lines · Pavel Emelyanov

Since kernel v3.7 the RTM_NEWLINK message not accepts non-zero values in ifi_index field. Mention this fact in the respective rtneltlink.7 section.

Thanks Pavel. Applied.

Cheers,

Michael

Quoted 18 lines

---

man7/rtnetlink.7 +4 -1
index ebd9107..0809026 100644
@@ -78,7 +78,10 @@ struct ifinfomsg {
 contains the device flags, see
 .BR netdevice (7);
 .I ifi_index
-is the unique interface index,
+is the unique interface index (since kernel v3.7 it is possible to feed a non-zero
+value with the
+.B RTM_NEWLINK
+message, thus creating a link with the given ifindex);
 .I ifi_change
 is reserved for future use and should be always set to 0xFFFFFFFF.
 .na
Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html