In ip_ctloutput, if the option is at level IPPROTO_IP but not
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 4 Jan 1994 09:39:01 +0000 (01:39 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 4 Jan 1994 09:39:01 +0000 (01:39 -0800)
commitb7c5dedce662f541415fd7e6ff840b6524c6cd7d
tree453433c5020d19b0f09dc27f738b993c13f717f0
parentdaefc71006e2c15bdb5743331715ca8a61dbf401
In ip_ctloutput, if the option is at level IPPROTO_IP but not
recognized/supported, return ENOPROTOOPT (from POSIX 1003.12).  I continued
to return EINVAL if the level was not IPPROTO_IP.  Also, in the latter
case, I added a check to free any mbuf only for setsockopt, not getsockopt,
although that is not strictly necessary (getsockopt passes a pointer
to a null pointer).  From: Mike Karels <karels@BSDI.COM>

SCCS-vsn: sys/netinet/ip_output.c 8.2
usr/src/sys/netinet/ip_output.c