Wireshark-dev: Re: [Wireshark-dev] Warnings in airpcap_dlg.c

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Wed, 13 May 2009 18:52:36 +0200
On Wed, May 13, 2009 at 09:38:24AM -0700, Gerald Combs wrote:
> airpdcap.c uses uri_str_to_bytes() to build a GByteArray from the SSID
> string. You should be able to use "%00" to represent a zero byte. This
> also applies to the passphrase.

Ah, thanks for the explanation!

> > The code in question does something even more interesting: It tests
> > whether the length of the entered SSID is < 0. So removing that test
> > doesn't introduce any problems.
> 
> We use a zero-length SSID to repesent a "wildcard" SSID. Otherwise the
> length should be > 0 as far as I know. It should be safe to remove the test.

In wireless messages (well, mostly probe requests) that's the meaning of
a zero-length SSID as well ("I want information from anyone who's willing
to answer") so your interpretation looks good to me ;-)

 ciao
        Joerg

-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.