Date: Thu, 8 Jan 2004 14:28:37 -0800 (PST) From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 44977 for review Message-ID: <200401082228.i08MSb02033574@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=44977 Change 44977 by sam@sam_ebb on 2004/01/08 14:28:09 The 802.11 mtu is different from Ethernet so handle mtu changes directly. Still need to raise the max mtu above the default 1500 that's set for ethernet compatibility. Affected files ... .. //depot/projects/netperf+sockets/sys/net80211/ieee80211_ioctl.c#4 edit Differences ... ==== //depot/projects/netperf+sockets/sys/net80211/ieee80211_ioctl.c#4 (text+ko) ==== @@ -1037,6 +1037,13 @@ error = copyout(&ic->ic_stats, ifr->ifr_data, sizeof (ic->ic_stats)); break; + case SIOCSIFMTU: + ifr = (struct ifreq *)data; + if (ifr->ifr_mtu > IEEE80211_MTU) + error = EINVAL; + else + ifp->if_mtu = ifr->ifr_mtu; + break; default: error = ether_ioctl(ifp, cmd, data); break;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401082228.i08MSb02033574>