Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a89b4763 authored by Michael Kerrisk's avatar Michael Kerrisk Committed by David S. Miller
Browse files

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: default avatarMichael kerrisk <mtk.manpages@gmail.com>
Acked-by: default avatarJiri Olsa <jolsa@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 79981563
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;