summaryrefslogtreecommitdiffstats
path: root/sys
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
parent0c715f4417391395594cfe8ab090518602bcdef5 (diff)
downloadFreeBSD-src-f85fe1cefdfe8c691cdb767ab2def452c4f0530a.zip
FreeBSD-src-f85fe1cefdfe8c691cdb767ab2def452c4f0530a.tar.gz
Added support for SIOCSIFMTU.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ep/if_ep.c14
-rw-r--r--sys/dev/ie/if_ie.c13
-rw-r--r--sys/i386/isa/if_el.c14
-rw-r--r--sys/i386/isa/if_ep.c14
-rw-r--r--sys/i386/isa/if_ie.c13
-rw-r--r--sys/i386/isa/if_is.c14
6 files changed, 76 insertions, 6 deletions
diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c
index b47f829..57e17691 100644
--- a/sys/dev/ep/if_ep.c
+++ b/sys/dev/ep/if_ep.c
@@ -22,7 +22,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* From: if_ep.c,v 1.9 1994/01/25 10:46:29 deraadt Exp $
- * $Id: if_ep.c,v 1.8 1994/03/15 01:58:22 wollman Exp $
+ * $Id: if_ep.c,v 1.10 1994/05/25 08:59:10 rgrimes Exp $
*/
#include "ep.h"
@@ -818,6 +818,18 @@ epioctl(ifp, cmd, data)
sizeof(sc->sc_addr));
break;
#endif
+ case SIOCSIFMTU:
+
+ /*
+ * Set the interface MTU.
+ */
+ if (ifr->ifr_mtu > ETHERMTU) {
+ error = EINVAL;
+ } else {
+ ifp->if_mtu = ifr->ifr_mtu;
+ }
+ break;
+
default:
error = EINVAL;
}
diff --git a/sys/dev/ie/if_ie.c b/sys/dev/ie/if_ie.c
index fbb1d5e..4499f23 100644
--- a/sys/dev/ie/if_ie.c
+++ b/sys/dev/ie/if_ie.c
@@ -39,7 +39,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_ie.c,v 1.2 1993/11/25 01:31:36 wollman Exp $
+ * $Id: if_ie.c,v 1.6 1994/05/27 04:02:04 rgrimes Exp $
*/
/*
@@ -1749,6 +1749,17 @@ ieioctl(ifp, command, data)
break;
#endif /* MULTICAST */
+ case SIOCSIFMTU:
+ /*
+ * Set the interface MTU.
+ */
+ if (ifr->ifr_mtu > ETHERMTU) {
+ error = EINVAL;
+ } else {
+ ifp->if_mtu = ifr->ifr_mtu;
+ }
+ break;
+
default:
error = EINVAL;
}
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;
}
diff --git a/sys/i386/isa/if_ep.c b/sys/i386/isa/if_ep.c
index b47f829..57e17691 100644
--- a/sys/i386/isa/if_ep.c
+++ b/sys/i386/isa/if_ep.c
@@ -22,7 +22,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* From: if_ep.c,v 1.9 1994/01/25 10:46:29 deraadt Exp $
- * $Id: if_ep.c,v 1.8 1994/03/15 01:58:22 wollman Exp $
+ * $Id: if_ep.c,v 1.10 1994/05/25 08:59:10 rgrimes Exp $
*/
#include "ep.h"
@@ -818,6 +818,18 @@ epioctl(ifp, cmd, data)
sizeof(sc->sc_addr));
break;
#endif
+ case SIOCSIFMTU:
+
+ /*
+ * Set the interface MTU.
+ */
+ if (ifr->ifr_mtu > ETHERMTU) {
+ error = EINVAL;
+ } else {
+ ifp->if_mtu = ifr->ifr_mtu;
+ }
+ break;
+
default:
error = EINVAL;
}
diff --git a/sys/i386/isa/if_ie.c b/sys/i386/isa/if_ie.c
index fbb1d5e..4499f23 100644
--- a/sys/i386/isa/if_ie.c
+++ b/sys/i386/isa/if_ie.c
@@ -39,7 +39,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_ie.c,v 1.2 1993/11/25 01:31:36 wollman Exp $
+ * $Id: if_ie.c,v 1.6 1994/05/27 04:02:04 rgrimes Exp $
*/
/*
@@ -1749,6 +1749,17 @@ ieioctl(ifp, command, data)
break;
#endif /* MULTICAST */
+ case SIOCSIFMTU:
+ /*
+ * Set the interface MTU.
+ */
+ if (ifr->ifr_mtu > ETHERMTU) {
+ error = EINVAL;
+ } else {
+ ifp->if_mtu = ifr->ifr_mtu;
+ }
+ break;
+
default:
error = EINVAL;
}
diff --git a/sys/i386/isa/if_is.c b/sys/i386/isa/if_is.c
index 8817a69..0217255 100644
--- a/sys/i386/isa/if_is.c
+++ b/sys/i386/isa/if_is.c
@@ -11,7 +11,7 @@
* of this software, nor does the author assume any responsibility
* for damages incurred with its use.
*
- * $Id$
+ * $Id: if_is.c,v 1.24 1994/08/02 07:39:37 davidg Exp $
*/
/* TODO
@@ -1088,6 +1088,18 @@ is_ioctl(ifp, cmd, data)
break;
#endif
+ 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