PERFORCE change 44977 for review

Sam Leffler sam at FreeBSD.org
Thu Jan 8 14:28:39 PST 2004


http://perforce.freebsd.org/chv.cgi?CH=44977

Change 44977 by sam at 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;


More information about the p4-projects mailing list