summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-06-08 23:32:17 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-06-08 23:32:17 +0000
commit7e5bb4317e26a34c26cce66b38e394ad0807b2f2 (patch)
treed03a8862207f62aa34814d8d76409a3f77b5e361 /sys
parent5b2d0bde6cf03a806483d0bcbf0cfee8b34b8d1d (diff)
add missing ioctl support for SIOCSIFMTU
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_sk.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c
index ffcdbe6a570..1648262ad30 100644
--- a/sys/dev/pci/if_sk.c
+++ b/sys/dev/pci/if_sk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sk.c,v 1.24 2002/06/04 00:09:08 deraadt Exp $ */
+/* $OpenBSD: if_sk.c,v 1.25 2002/06/08 23:32:16 jason Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -701,6 +701,13 @@ sk_ioctl(ifp, command, data)
break;
}
break;
+ case SIOCSIFMTU:
+ if (ifr->ifr_mtu > SK_JUMBO_MTU)
+ error = EINVAL;
+ else
+ ifp->if_mtu = ifr->ifr_mtu;
+ sk_init(sc_if);
+ break;
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {
if (ifp->if_flags & IFF_RUNNING &&