Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jun 2004 16:08:27 +0200
From:      Ivan Voras <ivoras@fer.hr>
To:        hackers@freebsd.org
Subject:   Peeking BPF
Message-ID:  <40E177DB.6070506@fer.hr>

next in thread | raw e-mail | index | archive | help

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?



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