Hello,
I've attached "sniffex.c", which is intended to be libpcap example code.
It's based on Tim Carstens "sniffer.c" source.
I hope "sniffex" will serve as a decent working example of libpcap code
and provide basic documentation via comments for beginners. I also hope
this can serve as a t
Guy Harris wrote:
>
> On Jun 29, 2005, at 1:20 PM, Guy Harris wrote:
>
>> Use "isprint()" rather than "isascii()" in "print_payload()".
>
>
> ...and, while you're at it, print the payload in hex, as well as
> ASCII, to emphasize that there's *no* guarantee that TCP data is text.
> A format such as
Hi Tek,
I actually wrote something like you're describing years ago for a 2nd-level
support team so they could help troubleshoot issues (kept me from getting calls
:). It's a distributed sniffer of sorts; it sends tcpdump capture filters to
remote sniffers via ssh, which are then executed remot