diff options
author | dg <dg@FreeBSD.org> | 1994-08-08 13:33:16 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-08-08 13:33:16 +0000 |
commit | f85fe1cefdfe8c691cdb767ab2def452c4f0530a (patch) | |
tree | 80a2cc4782505fa7bc90a6a7c0635d65a3f7f88f /sys/dev/ep | |
parent | 0c715f4417391395594cfe8ab090518602bcdef5 (diff) | |
download | FreeBSD-src-f85fe1cefdfe8c691cdb767ab2def452c4f0530a.zip FreeBSD-src-f85fe1cefdfe8c691cdb767ab2def452c4f0530a.tar.gz |
Added support for SIOCSIFMTU.
Diffstat (limited to 'sys/dev/ep')
-rw-r--r-- | sys/dev/ep/if_ep.c | 14 |
1 files changed, 13 insertions, 1 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; } |