Subject: Re: adding an 802.11 data link type
To: Atsushi Onoe <onoe@sm.sony.co.jp>
From: Andrew Brown <atatat@atatdot.net>
List: tech-net
Date: 08/05/2002 09:57:33
>>  3) Two new ioctl's list/choose the DLT used by bpf:
>> 
>>       BIOCGDLTS -- returns a bit vector. "Lit" bits indicate supported DLTs.
>>                    For example, on an 802.11 interface, the DLT_EN10MB'th
>>                    bit and the DLT_802_11'th bit will be set.
>
>It seems that the range of the value for DLT is not defined. BIOCGDLT
>just uses u_int to pass it.  So returning array of supported DLTs would
>be better.

considering that there are currently 0-16, 50, 51, and 115 assigned as
dlt types, and that the type of if_dlt (the major consumer of the
DTL_* stuff) is an int, an bit vector just won't cut it.  an array
would be much better.

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."