Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jun 2004 13:24:53 -0700
From:      Lev Walkin <vlm@netli.com>
To:        Ivan Voras <ivoras@fer.hr>
Cc:        hackers@freebsd.org
Subject:   Re: PF_PACKET
Message-ID:  <40DC8A15.7080700@netli.com>
In-Reply-To: <40DC8948.9090406@fer.hr>
References:  <40DC83A0.3060509@fer.hr> <40DC8742.5000100@netli.com> <40DC8948.9090406@fer.hr>

next in thread | previous in thread | raw e-mail | index | archive | help
Ivan Voras wrote:
> Lev Walkin wrote:
> 
>> Ivan Voras wrote:
>>
>>> I'm trying to port open1x xsupplicant, and it uses PF_PACKET to get 
>>> relevant packets (of appropriate ethernet type). I looked around in 
>>> /usr/include and can't find the support, at least not under that and 
>>> similar names. Is there support for it in FreeBSD?
>>>
>>> (I only need to catch & send a few packets now and then, not anything 
>>> complex or bandwidth demanding).
>>
>>
>>
>> man bpf
> 
> 
> 
> I've no experience with bpf, but It looks way too complex. And besides, 
> the program is relaying on using sendto/recvfrom all over the place.


it is actually pretty simple. man pcap. this is a wrapper around bpf
which lets you do it in a couple lines of C code.


-- 
Lev Walkin
vlm@netli.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40DC8A15.7080700>