Skip to contentSkip to conversation

socket.7: Add info about SO_BINDTODEVICE being readable

PATCH In review Pavel Emelyanov 2 participants 2 messages Feb 19, 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 socket.7: Add info about SO_BINDTODEVICE being readable

The sockoption in question can be getsockopt-ed since kernel 3.8. Mention this fact in the respective section of socket(7) page.

---

man7/socket.7 +8 -0
index 32ec131..2f915da 100644
@@ -308,6 +308,14 @@ sockets.
 It is not supported for packet sockets (use normal
 .BR bind (2)
 there).
+
+This option is available for getting since Linux 3.8. The option
+length should contain the buffer size to receive the device name
+and is recommended to be
+.BR IFNAMSZ
+bytes. The real device name length is reported back in the option
+length argument.
+
 .TP
 .B SO_BROADCAST
 Set or get the broadcast flag.

--
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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 4 lines · Pavel Emelyanov

The sockoption in question can be getsockopt-ed since kernel 3.8. Mention this fact in the respective section of socket(7) page.

Thanks Pavel. Applied.

Cheers,

Michael

Quoted 21 lines

---

man7/socket.7 +8 -0
index 32ec131..2f915da 100644
@@ -308,6 +308,14 @@ sockets.
 It is not supported for packet sockets (use normal
 .BR bind (2)
 there).
+
+This option is available for getting since Linux 3.8. The option
+length should contain the buffer size to receive the device name
+and is recommended to be
+.BR IFNAMSZ
+bytes. The real device name length is reported back in the option
+length argument.
+
 .TP
 .B SO_BROADCAST
 Set or get the broadcast flag.
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