Peeking BPF

Ivan Voras ivoras at fer.hr
Tue Jun 29 07:08:34 PDT 2004


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?



More information about the freebsd-hackers mailing list