Peeking BPF
From: Ivan Voras (ivoras_at_fer.hr)
Date: 06/29/04
- Previous message: João Carlos Mendes Luís: "No flames please: Linux mknod compatibilty"
- Next in thread: Lev Walkin: "Re: Peeking BPF"
- Reply: Lev Walkin: "Re: Peeking BPF"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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"
- Previous message: João Carlos Mendes Luís: "No flames please: Linux mknod compatibilty"
- Next in thread: Lev Walkin: "Re: Peeking BPF"
- Reply: Lev Walkin: "Re: Peeking BPF"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: memory mapped packet capturing - bpf replacement ?
... > don't forget that bpf is not copying the entire packet, ...
To unsubscribe, ... (freebsd-hackers) - Re: Peeking BPF
... Ivan Voras wrote: ... how to find out if a packet is available over ...
> the BPF interface? ... To unsubscribe, ... (freebsd-hackers) - Re: libpcap perf improvement? latest ideas?
... performance (with comparison of linux and freebsd) I searched freebsd resources for
pcap improvements. ... I agree that a reference model can be used to reduce the number of copies
done currently for BPF. ... In PF_PACKET you are forced to do a system call per-acquisition
and another system for receiving the time-stamp of the last packet read for example. ... I proposed
a model that allows for dynamic ring buffer size and signaling for soft and hard-limits to allow
application buffering to handle potential drops. ... (freebsd-hackers) - Re: crash when bpf is used heavily
... It looks like the BPF code is written to handle the case where allocation ...
but that it passes flags to the memory allocator that prevent the ... I've worked with
that need to do processing of many high speed packet ... (freebsd-current) - Re: Implementation of Sampling for BPF
... BPF was never intended to be reliable every-packet solution. ... every packet,
I am looking at attempting to define which packets it discards so that there is an equal chance of sampling
something that happens, rather then an unknown/unpredictable chance. ... Putting as many servers
as needed does scale well if you need only sampled data - just put an appropriate sampler/load
balancer before them. ... (freebsd-net)