ifconfig question

Wes Peters wes at softweyr.com
Sun Mar 30 11:28:20 PST 2003


On Saturday 29 March 2003 18:51, 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.

Only if the spec says those are the only valid ranges.  Then we have to 
keep up to date with changes in the spec, too.  Either some simple sanity 
checks or checking for truly valid lengths -- 0, 40 bits, 128 bits -- 
makes even better sense.

> 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 would be convenient.

-- 

        Where am I, and what am I doing in this handbasket?

Wes Peters                                               wes at softweyr.com



More information about the freebsd-net mailing list