Subject: Re: MTU
To: None <bouyer@antioche.lip6.fr>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-pmax
Date: 12/07/2000 20:53:41
In <20001207113451.A17353@antioche.lip6.fr>
bouyer@antioche.lip6.fr wrote:
> On Wed, Dec 06, 2000 at 10:09:42PM +0100, Nino Margetic wrote:
> > ifconfig: SIOCSIFMTU: Invalid argument
> > nino kupa:/home/nino >
> >
> > Any (other? :-) suggestions?
> No, sorry. This works fine with my tlp and epic interface, but also
> fails for the le on my sparc and sun3. So this looks like a le-specific
> problem. I looked quickly at the code but didn't find anything obvious.
sys/dev/ic/lance.c does not handle SIOCSIFMTU ioctl.
I guess it is easy to add it. (not tested)
Many other drivers do not support the ioctl because
it might be used by few people, I think :-)
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp
--- lance.c.orig Thu Dec 7 20:31:04 2000
+++ lance.c Thu Dec 7 20:51:08 2000
@@ -654,6 +654,13 @@
#endif
break;
+ case SIOCSIFMTU:
+ if (ifr->ifr_mtu > ETHERMTU)
+ error = EINVAL;
+ else
+ ifp->if_mtu = ifr->ifr_mtu;
+ break;
+
case SIOCADDMULTI:
case SIOCDELMULTI:
error = (cmd == SIOCADDMULTI) ?