iwspy more than one adress

Jean Tourrilhes jt at bougret.hpl.hp.com
Wed Nov 26 13:06:51 EST 2003


Bruno Randolf wrote :
> 
> [root at mtx-62 root]# ./iwspy wlan0 + 192.168.1.100
> Interface doesn't accept reading addresses...
> SIOCGIWSPY: Argument list too long
> 
> and a message in my syslog:
> 
> klogd: wlan0 (WE) : Buffer for request 8B11 too small (0<1)

	Congratulation ! You have found a genuine bug in the Wireless
Tools.

	As I probably won't have time to spin a new version of the
tools before a while, do like this :
	1) Open iwspy.c with your favorite editor
	2) Go around line 216 (in set_spy_info())
	3) Change the following line :
-	  wrq.u.data.length = 0;
+	  wrq.u.data.length = IW_MAX_SPY;
	4) Recompile, reinstall

	Thanks, and have fun...

	Jean



More information about the HostAP mailing list