diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2006-08-22 02:11:32 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2006-08-22 02:11:32 +0000 |
commit | d5423d834ad88fa46a9f3c19bc53d35abfb29217 (patch) | |
tree | b6c6da54b30165bccca764d36661c1ed685350b6 /cpukit/libnetworking/net | |
parent | Move the build to host tools out of the target root, (diff) | |
download | rtems-d5423d834ad88fa46a9f3c19bc53d35abfb29217.tar.bz2 |
* libnetworking/net/if_ethersubr.c: (ether_ioctl)
Return error for unknown/unsupported ioctl command.
(Change merged from freeBSD).
Diffstat (limited to 'cpukit/libnetworking/net')
-rw-r--r-- | cpukit/libnetworking/net/if_ethersubr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/libnetworking/net/if_ethersubr.c b/cpukit/libnetworking/net/if_ethersubr.c index a1c5815e69..7f5d3867d9 100644 --- a/cpukit/libnetworking/net/if_ethersubr.c +++ b/cpukit/libnetworking/net/if_ethersubr.c @@ -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); } |