summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2006-08-22 02:11:32 +0000
committerTill Straumann <strauman@slac.stanford.edu>2006-08-22 02:11:32 +0000
commitd5423d834ad88fa46a9f3c19bc53d35abfb29217 (patch)
treeb6c6da54b30165bccca764d36661c1ed685350b6 /cpukit
parentMove the build to host tools out of the target root, (diff)
downloadrtems-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')
-rw-r--r--cpukit/ChangeLog6
-rw-r--r--cpukit/libnetworking/net/if_ethersubr.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 912af648c8..fbde254f9f 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -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.
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);
}