summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
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);
}