Skip to content

Commit

Permalink
ipv4: enable getsockopt() for IP_NODEFRAG
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
mkerrisk authored and davem330 committed Sep 14, 2010
1 parent 7998156 commit a89b476
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/ipv4/ip_sockglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a89b476

Please sign in to comment.