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/ie | |
parent | 0c715f4417391395594cfe8ab090518602bcdef5 (diff) | |
download | FreeBSD-src-f85fe1cefdfe8c691cdb767ab2def452c4f0530a.zip FreeBSD-src-f85fe1cefdfe8c691cdb767ab2def452c4f0530a.tar.gz |
Added support for SIOCSIFMTU.
Diffstat (limited to 'sys/dev/ie')
-rw-r--r-- | sys/dev/ie/if_ie.c | 13 |
1 files changed, 12 insertions, 1 deletions
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; } |