PERFORCE change 146161 for review

Sam Leffler sam at FreeBSD.org
Mon Jul 28 21:33:12 UTC 2008


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

Change 146161 by sam at sam_ebb on 2008/07/28 21:33:05

	correct decap of of AppleTalk and IPX frames; don't strip the SNAP
	header as they have one natively
	Submitted by:	Chris Zimmermann

Affected files ...

.. //depot/projects/vap/sys/net80211/ieee80211_input.c#31 edit

Differences ...

==== //depot/projects/vap/sys/net80211/ieee80211_input.c#31 (text+ko) ====

@@ -239,7 +239,10 @@
 	llc = (struct llc *)(mtod(m, caddr_t) + hdrlen);
 	if (llc->llc_dsap == LLC_SNAP_LSAP && llc->llc_ssap == LLC_SNAP_LSAP &&
 	    llc->llc_control == LLC_UI && llc->llc_snap.org_code[0] == 0 &&
-	    llc->llc_snap.org_code[1] == 0 && llc->llc_snap.org_code[2] == 0) {
+	    llc->llc_snap.org_code[1] == 0 && llc->llc_snap.org_code[2] == 0 &&
+	    /* NB: preserve AppleTalk frames that have a native SNAP hdr */
+	    !(llc->llc_snap.ether_type == htons(ETHERTYPE_AARP) ||
+	      llc->llc_snap.ether_type == htons(ETHERTYPE_IPX))) {
 		m_adj(m, hdrlen + sizeof(struct llc) - sizeof(*eh));
 		llc = NULL;
 	} else {


More information about the p4-projects mailing list