[PATCH] Use SOCK_DGRAM type PF_PACKET socket for Linux

Jouni Malinen jkmaline
Wed Aug 31 21:43:50 PDT 2005


On Thu, Aug 25, 2005 at 04:15:33PM +0800, Zhu Yi wrote:

> This patch replaces SOCK_RAW type PF_PACKET socket with cooked packet
> (SOCK_DGRAM) type to send link layer packets on Linux. This way,
> wpa_supplicant doesn't need to worry about the layer 2 header format
> hence it will work with native 802.11 stack in the future.

I ended up doing quite a bit more cleanup to the l2_packet wrapper
interface and left support for both types in l2_packet_linux.c. Anyway,
the end result should be the same as far as wpa_supplicant with
l2_packet_linux.c is concerned, i.e., SOCK_DGRAM is used instead of
SOCK_RAW. All the changes are now in my CVS repository and will be
included in the next release assuming no major problems gets reported.

-- 
Jouni Malinen                                            PGP id EFC895FA




More information about the Hostap mailing list