From 032e1ba5c0d2d01c4d0db62fa6d832fb48a37fb5 Mon Sep 17 00:00:00 2001 From: Gao Feng Date: Sat, 15 Dec 2012 19:52:49 +0100 Subject: [PATCH] ipv6.7: Add description of getsockopt() for IPV6_MTU 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. Signed-off-by: Gao feng Signed-off-by: Michael Kerrisk --- man7/ipv6.7 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/man7/ipv6.7 b/man7/ipv6.7 index ccaed0f7e..179591e2f 100644 --- a/man7/ipv6.7 +++ b/man7/ipv6.7 @@ -80,7 +80,7 @@ structure. .\" commit c4062dfc425e94290ac427a98d6b4721dd2bc91f .\" Author: Erich E. Hoover .\" -.TH IPV6 7 2012-11-07 "Linux" "Linux Programmer's Manual" +.TH IPV6 7 2012-12-16 "Linux" "Linux Programmer's Manual" .SH NAME ipv6 \- Linux IPv6 protocol implementation .SH SYNOPSIS @@ -215,6 +215,10 @@ Argument is a pointer to a .I struct ipv6_mreq .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.