PERFORCE change 137642 for review

Sam Leffler sam at FreeBSD.org
Thu Mar 13 20:36:15 UTC 2008


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

Change 137642 by sam at sam_ebb on 2008/03/13 20:35:32

	identify ifnet in 802.11 msgs

Affected files ...

.. //depot/projects/vap/tools/tools/net80211/wlanwatch/wlanwatch.c#5 edit

Differences ...

==== //depot/projects/vap/tools/tools/net80211/wlanwatch/wlanwatch.c#5 (text+ko) ====

@@ -338,7 +338,7 @@
 	case RTM_IEEE80211:
 #define	V(type)	((struct type *)(&ifan[1]))
 		ifan = (struct if_announcemsghdr *)rtm;
-		printf("%.19s RTM_IEEE80211: ", cnow);
+		printf("%.19s RTM_IEEE80211: if# %d, ", cnow, ifan->ifan_index);
 		switch (ifan->ifan_what) {
 		case RTM_IEEE80211_ASSOC:
 			printf("associate with %s",
@@ -435,8 +435,7 @@
 			    ether_sprintf(V(ieee80211_auth_event)->iev_addr));
 			break;
 		default:
-			printf("if# %d, what: #%d",
-				ifan->ifan_index, ifan->ifan_what);
+			printf("what: #%d", ifan->ifan_what);
 			break;
 		}
 		printf("\n");


More information about the p4-projects mailing list