tcpdump mailing list archives

Re: Disable address/name resolution in libpcap


From: Guy Harris <guy () alum mit edu>
Date: Thu, 14 Apr 2016 01:27:34 -0700

On Apr 13, 2016, at 8:44 AM, Ed Sealing <ed.sealing () sealingtech org> wrote:

Is there a way to programatically disable name resolution in libpcap

No.

(similar to tcpdump "-n" argument)? I haven't been able to find a variable
to pass in that would accomplish this directly in the library. I'm sure it
exists, but can't seem to find it.

You can't find it because it *doesn't* exist.

A new API, such as pcap_compile_ex() with a Boolean flag, or pcap_compile_nonameres() with no flag and no name 
resolution, would have to be provided.
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers


Current thread: