summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_el.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-08-08 13:33:16 +0000
committerdg <dg@FreeBSD.org>1994-08-08 13:33:16 +0000
commitf85fe1cefdfe8c691cdb767ab2def452c4f0530a (patch)
tree80a2cc4782505fa7bc90a6a7c0635d65a3f7f88f /sys/i386/isa/if_el.c
parent0c715f4417391395594cfe8ab090518602bcdef5 (diff)
downloadFreeBSD-src-f85fe1cefdfe8c691cdb767ab2def452c4f0530a.zip
FreeBSD-src-f85fe1cefdfe8c691cdb767ab2def452c4f0530a.tar.gz
Added support for SIOCSIFMTU.
Diffstat (limited to 'sys/i386/isa/if_el.c')
-rw-r--r--sys/i386/isa/if_el.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/i386/isa/if_el.c b/sys/i386/isa/if_el.c
index c16c5df..be18099 100644
--- a/sys/i386/isa/if_el.c
+++ b/sys/i386/isa/if_el.c
@@ -6,7 +6,7 @@
*
* Questions, comments, bug reports and fixes to kimmel@cs.umass.edu.
*
- * $Id$
+ * $Id: if_el.c,v 1.3 1994/08/02 07:39:32 davidg Exp $
*/
/* Except of course for the portions of code lifted from other FreeBSD
* drivers (mainly elread, elget and el_ioctl)
@@ -781,6 +781,18 @@ el_ioctl(ifp, command, data)
el_init(ifp->if_unit);
}
+ case SIOCSIFMTU:
+
+ /*
+ * Set the interface MTU.
+ */
+ if (ifr->ifr_mtu > ETHERMTU) {
+ error = EINVAL;
+ } else {
+ ifp->if_mtu = ifr->ifr_mtu;
+ }
+ break;
+
default:
error = EINVAL;
}
OpenPOWER on IntegriCloud