Re: PF_PACKET

From: Lev Walkin (vlm_at_netli.com)
Date: 06/25/04

  • Next message: Brandon D. Valentine: "amd/autofs on BSD (was Re: waiting on sbwait)"
    Date: Fri, 25 Jun 2004 13:24:53 -0700
    To: Ivan Voras <ivoras@fer.hr>
    
    

    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
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Brandon D. Valentine: "amd/autofs on BSD (was Re: waiting on sbwait)"

    Relevant Pages

    • Re: Peeking BPF
      ... Ivan Voras wrote: ... how to find out if a packet is available over ... > the BPF interface? ... To unsubscribe, ...
      (freebsd-hackers)
    • Re: Gateway problemas - correction
      ... I meant you need bpf for dhclient to work. ... > interefears in DHCP server/client, anyone can say if it can be affecting ... > To unsubscribe, send any mail to ...
      (freebsd-questions)
    • Re: POSIX Threads locks failed
      ... > I'm getting packets from bpf with pcap_next function in one thread and ... about the way we should run it while trying to reproduce the problem ... To unsubscribe, ...
      (freebsd-current)
    • RE: implementation of bpf
      ... Man bpf does have info you should check out. ... The Berkeley Packet Filter bfp comes all ready installed on FBSD. ... documentation on bfp. ... To unsubscribe, ...
      (freebsd-questions)
    • Re: PF_PACKET
      ... > Ivan Voras wrote: ... >>I've no experience with bpf, but It looks way too complex. ... man pcap. ... the xsupplicant code just sucks period. ...
      (freebsd-hackers)