From: Pavel Emelyanov <xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
To: Michael Kerrisk
<mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: [PATCH] socket.7: Add info about SO_BINDTODEVICE being readable
Date: Tue, 19 Feb 2013 20:52:52 +0400 [thread overview]
Message-ID: <5123ADE4.4040604@parallels.com> (raw)
The sockoption in question can be getsockopt-ed since kernel 3.8.
Mention this fact in the respective section of socket(7) page.
Signed-off-by: Pavel Emelyanov <xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
---
diff --git a/man7/socket.7 b/man7/socket.7
index 32ec131..2f915da 100644
--- a/man7/socket.7
+++ b/man7/socket.7
@@ -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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2013-02-19 16:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-19 16:52 Pavel Emelyanov [this message]
[not found] ` <5123ADE4.4040604-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2013-02-28 14:08 ` [PATCH] socket.7: Add info about SO_BINDTODEVICE being readable Michael Kerrisk (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5123ADE4.4040604@parallels.com \
--to=xemul-bzqdu9zft3wakbo8gow8eq@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.