summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2001-01-12 21:48:26 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2001-01-12 21:48:26 +0000
commit6f76972ec025707830d58adae8335d0ff172b49d (patch)
tree289d9667d7ea1a3cde0e22b413924e1b1bfb117f
parent6f5736c45aae3a2e0226284352d865283e5f7d69 (diff)
add SIOCSIFMTU; angelos@ coached
-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);