diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-05-27 04:52:25 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-05-27 04:52:25 +0000 |
commit | e0dcbdc8ae74cec294cbf562a7cb834495055882 (patch) | |
tree | aa2616da533f8c0f8b22141be81e5eb38c9d47ab /sys | |
parent | 1a9e6b081d1252d69460302c9662ed89a8a74e62 (diff) |
handle SIOCSIFMTU ioctl
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_sis.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pci/if_sis.c b/sys/dev/pci/if_sis.c index 3a5853cafac..5aef79b7e72 100644 --- a/sys/dev/pci/if_sis.c +++ b/sys/dev/pci/if_sis.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sis.c,v 1.45 2005/05/22 05:40:52 brad Exp $ */ +/* $OpenBSD: if_sis.c,v 1.46 2005/05/27 04:52:24 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -1968,6 +1968,12 @@ int sis_ioctl(ifp, command, data) } error = 0; break; + case SIOCSIFMTU: + if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > ETHERMTU) + error = EINVAL; + else if (ifp->if_mtu != ifr->ifr_mtu) + ifp->if_mtu = ifr->ifr_mtu; + break; case SIOCADDMULTI: case SIOCDELMULTI: error = (command == SIOCADDMULTI) ? |