Peeking BPF

From: Ivan Voras (ivoras_at_fer.hr)
Date: 06/29/04

  • Next message: sid_at_merlin.com.ua: "ipfw add allow ip from @access_list1 to any in"
    Date: Tue, 29 Jun 2004 16:08:27 +0200
    To: hackers@freebsd.org
    
    

    I need to convert this code:

    ret = recvfrom(thisint->sockInt, &resultframe, 1520, MSG_PEEK, 0, 0);
    if (ret > 0) return TRUE;

    to use BPF. Essentialy, how to find out if a packet is available over
    the BPF interface?

    -- 
    What part of "Ph'nglui mglw'nath Cthulhu R'lyeh wgah'nagl fhtagn" don't
    you understand?
    _______________________________________________
    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: sid_at_merlin.com.ua: "ipfw add allow ip from @access_list1 to any in"

    Relevant Pages