diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-06-08 23:32:17 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-06-08 23:32:17 +0000 |
commit | 7e5bb4317e26a34c26cce66b38e394ad0807b2f2 (patch) | |
tree | d03a8862207f62aa34814d8d76409a3f77b5e361 | |
parent | 5b2d0bde6cf03a806483d0bcbf0cfee8b34b8d1d (diff) |
add missing ioctl support for SIOCSIFMTU
-rw-r--r-- | sys/dev/pci/if_sk.c | 9 |
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 && |