Sam Pierson wrote:
On a hopefully final note,
It came back quickly when I passed a 1 in as the to_ms parameter, but is there
something I can define so that when it picks a packet off the wire, it reads it
_immediately_.
Not at present. There's an ioctl needed to enable immediate mode on
BPF,
On a hopefully final note,
It came back quickly when I passed a 1 in as the to_ms parameter, but is there
something I can define so that when it picks a packet off the wire, it reads it
_immediately_. The project I'm doing needs as little latency as possible in
picking up the frame. Thanks,
Sam
I had changed it to 0 last night, because the program would not run
if to_ms was -1. I'm about to go home and check what happens if I
change it to a 1.
On 6/9/05, Guy Harris <[EMAIL PROTECTED]> wrote:
> Robert Lowe wrote:
>
> > Set the to_ms parameter in your pcap_open_live() call to a short[er]
Robert Lowe wrote:
Set the to_ms parameter in your pcap_open_live() call to a short[er]
interval.
Yes, there's nothing special about a value of -1 for the timeout; the
timeout value is, on systems using BPF (such as BSDs), just converted to
seconds and microseconds and passed to the BPF devi
Sam Pierson wrote:
Sam,
I'm trying to code a lightweight sniffer that picks up individual UDP packets
off the wire from a switch, from the broadcast IP. I'm compiling some code
from
http://www.cet.nau.edu/~mc8/Socket/Tutorials/section2.html
(but I'm running into the same problem with the r
Hey guys,
I'm trying to code a lightweight sniffer that picks up individual UDP packets
off the wire from a switch, from the broadcast IP. I'm compiling some code
from
http://www.cet.nau.edu/~mc8/Socket/Tutorials/section2.html
(but I'm running into the same problem with the rest of the samples