Nmap Development mailing list archives

[PATCH] --packet-trace direction setting


From: "Kris Katterjohn" <katterjohn () gmail com>
Date: Sat, 10 Nov 2007 22:49:46 -0600

Hey everyone!

I've attached a patch to set a desired direction for --packet-trace.

Many times I've wanted to do a --packet-trace and then needed to grep
out (-v) "RCVD" or "SENT", which can get annoying :)

--packet-trace=in will only print packets that are received

--packet-trace=out will only print packets that are sent

--packet-trace=both is just to give the default an option

Of course, it won't work for connect() (-sT) scans.

I would've preferred --packet-trace=sent for outbound packets, but
didn't want to use "recv" or "rcvd" for inbound packets as it'd be
confusing and "received" is too long.  But this is similar to
libpcap's pcap_setdirection() which uses PCAP_D_IN and PCAP_D_OUT so I
think it can work :)

Please let me know what you think!

Thanks,
Kris Katterjohn

Attachment: ptdir.patch
Description:


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: