summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ic/xl.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c
index d88cdb3966d..2a942327ee6 100644
--- a/sys/dev/ic/xl.c
+++ b/sys/dev/ic/xl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xl.c,v 1.18 2000/11/09 17:39:06 mickey Exp $ */
+/* $OpenBSD: xl.c,v 1.19 2001/01/12 21:48:25 todd Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -2223,6 +2223,15 @@ xl_ioctl(ifp, command, data)
break;
}
break;
+
+ case SIOCSIFMTU:
+ if(ifr->ifr_mtu > ETHERMTU || ifr->ifr_mtu < ETHERMIN) {
+ error = EINVAL;
+ } else if (ifp->if_mtu != ifr->ifr_mtu) {
+ ifp->if_mtu = ifr->ifr_mtu;
+ }
+ break;
+
case SIOCSIFFLAGS:
XL_SEL_WIN(5);
rxfilt = CSR_READ_1(sc, XL_W5_RX_FILTER);