Guy Harris

Results 530 comments of Guy Harris

The first question is whether this belongs in *that* man page or in some *other* man page, such as the top-level pcap man page. There might be people who aren't...

So perhaps the page just generally needs to note that not everything listed by `pcap_findalldevs()` corresponds to a specific network interface.

What if you do int rc = pcap_loop(prx->handle, 2147483647, pcap_run, (u_char *)prx); instead?

THe pcap_read routine should *only* return a negative value if an error occurred or if it's breaking out of the loop because `pcap_breakloop()` was called. If it's returning a negative...

> but unfortunately it really heppens in some cases like this : Nobody is saying that it *doesn't* happen. > i use a pkt-gen tool send pkts to libpcap when...

> that't to say it's really a bug here? Yes, it's *definitely* a bug. (And the fix I'm working on makes the code simpler - `pcap_dispatch()` and `pcap_loop()` will, if...

> Thank you for your help, confirming this is a bug helps me a lot, I really appreciate it! You're welcome! > Wish U happy and smooth in the new...

c60ebf10efd105d149f7c2d3eb15dec38af45001 in the main branch should fix this. Try it and, if it works, we'll backport it to the 1.10 branch. (Not quite as clean as I thought it could...

> I would like to inform you that the man page of libpcap defines `int pcap_loop(pcap_t *p, int cnt, pcap_handler callback, u_char *user); ` that "A value of -1 or...

Submitted by guy_harris This is documented behavior. To quote the pcap-filter man page: ``` vlan [vlan_id] True if the packet is an IEEE 802.1Q VLAN packet. If [vlan_id] is specified,...