ifconfig question

Brooks Davis brooks at one-eyed-alien.net
Mon Mar 31 08:13:46 PST 2003


On Sat, Mar 29, 2003 at 07:51:08PM -0700, M. Warner Losh wrote:
> The code that prints out the keys for the 802.11 wireless stuff has
> the following it it:
> 
> void
> ieee80211_status (int s, struct rt_addrinfo *info __unused)
> {
> ...
> 			if (ireq.i_len == 0 || ireq.i_len > 13)
> 				continue;
> ...
> }
> 
> Should that check really be there?  Newer wep does 256bits....  Not
> that the rest of the code supports that, but I was just curious.

It could probably be safely removed.

> Second, should ifconfig report the wep key if run as root?  wicontrol
> does if it is run as root, for example.  Any objections for fixing
> this?

That seems reasonable.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20030331/2914ad45/attachment.bin


More information about the freebsd-net mailing list