Sync with sys/i386/isa/if_ed.c revision 1.110.
It's not 2.2 candidate.
This commit is contained in:
parent
0a44b61dc5
commit
8b3e08191a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=20328
@ -24,7 +24,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: if_ed.c,v 1.12 1996/12/04 04:20:48 asami Exp $
|
||||
* $Id: if_ed.c,v 1.13 1996/12/07 13:04:21 kato Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -3314,7 +3314,8 @@ ed_ioctl(ifp, command, data)
|
||||
|
||||
case SIOCSIFADDR:
|
||||
case SIOCGIFADDR:
|
||||
ether_ioctl(ifp, command, data);
|
||||
case SIOCSIFMTU:
|
||||
error = ether_ioctl(ifp, command, data);
|
||||
break;
|
||||
|
||||
case SIOCSIFFLAGS:
|
||||
@ -3376,17 +3377,6 @@ ed_ioctl(ifp, command, data)
|
||||
}
|
||||
break;
|
||||
|
||||
case SIOCSIFMTU:
|
||||
/*
|
||||
* Set the interface MTU.
|
||||
*/
|
||||
if (ifr->ifr_mtu > ETHERMTU) {
|
||||
error = EINVAL;
|
||||
} else {
|
||||
ifp->if_mtu = ifr->ifr_mtu;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
error = EINVAL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user