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                                               [EMAIL PROTECTED]

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to