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 On 6/9/05, Sam Pierson <[EMAIL PROTECTED]> wrote: > 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] > > > 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 device with > > BIOCSRTIMEOUT, which could cause it to be treated as a very large value. > > - > > This is the tcpdump-workers list. > > Visit https://lists.sandelman.ca/ to unsubscribe. > > > - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.