* libnetworking/net/if_ethersubr.c: (ether_ioctl)

Return error for unknown/unsupported ioctl command.
	(Change merged from freeBSD).
This commit is contained in:
Till Straumann
2006-08-22 02:11:32 +00:00
parent a2d7c41101
commit d5423d834a
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -1,3 +1,9 @@
2006-08-21 Till Straumann <strauman@slac.stanford.edu>
* libnetworking/net/if_ethersubr.c: (ether_ioctl)
Return error for unknown/unsupported ioctl command.
(Change merged from freeBSD).
2006-08-15 Joel Sherrill <joel@OARcorp.com>
* libnetworking/kern/kern_sysctl.c: Change int to int32_t.
+3
View File
@@ -894,6 +894,9 @@ ether_ioctl(struct ifnet *ifp, int command, caddr_t data)
ifp->if_mtu = ifr->ifr_mtu;
}
break;
default:
error = EINVAL; /* XXX netbsd has ENOTTY??? */
break;
}
return (error);
}