From: Michael Kerrisk Date: Fri, 10 Sep 2010 20:26:56 +0000 (+0000) Subject: ipv4: enable getsockopt() for IP_NODEFRAG X-Git-Tag: v3.0~3155^2~100 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a89b47639f3e11dd9a8eb78a5d3382e109c876f2;p=platform%2Fkernel%2Flinux-amlogic.git ipv4: enable getsockopt() for IP_NODEFRAG While integrating your man-pages patch for IP_NODEFRAG, I noticed that this option is settable by setsockopt(), but not gettable by getsockopt(). I suppose this is not intended. The (untested, trivial) patch below adds getsockopt() support. Signed-off-by: Michael kerrisk Acked-by: Jiri Olsa Signed-off-by: David S. Miller --- diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c index 6c40a8c..64b70ad 100644 --- a/net/ipv4/ip_sockglue.c +++ b/net/ipv4/ip_sockglue.c @@ -1129,6 +1129,9 @@ static int do_ip_getsockopt(struct sock *sk, int level, int optname, case IP_HDRINCL: val = inet->hdrincl; break; + case IP_NODEFRAG: + val = inet->nodefrag; + break; case IP_MTU_DISCOVER: val = inet->pmtudisc; break;