Thread (1 message) 1 message, 1 author, 2012-12-15

Re: [PATCH] ipv6.7: add description of getsockopt for IPV6_MTU

From: Michael Kerrisk (man-pages) <hidden>
Date: 2012-12-15 18:56:52

Hello Gao Feng,

On Mon, Dec 10, 2012 at 7:02 AM, Gao feng [off-list ref] wrote:
In ipv4,IP_MTU is only supported by getsockopt.
In ipv6,we can use IPV6_MTU to set socket's mtu,
but the return value of getsockopt is the path mtu.
it may make people confusion.

Add the description of the getsockopt for IPV6_MTU to
tell people the mtu of getting and setting is different.
Thank you. I've applied this patch.

Cheers,

Michael

quoted hunk
Signed-off-by: Gao feng <redacted>
---
 man7/ipv6.7 |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/man7/ipv6.7 b/man7/ipv6.7
index e13597c..888c6fa 100644
--- a/man7/ipv6.7
+++ b/man7/ipv6.7
@@ -147,6 +147,10 @@ structure.
 .\" should be documented
 .TP
 .B IPV6_MTU
+Retrieve the current known path MTU of the current socket.
+Only valid when the socket has been connected.
+Returns an integer.
+
 Set the MTU to be used for the socket.
 The MTU is limited by the device
 MTU or the path MTU when path MTU discovery is enabled.
--
1.7.7.6


-- 
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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help