devhawala / dodo

Xerox Network Services (XNS) implemented in Java
Other
13 stars 1 forks source link

Feature request: pcap capture of all packets seen by nethub #12

Open nbriggs opened 1 year ago

nbriggs commented 1 year ago

It would help my debugging tremendously if I could tell the nethub code to log, in pcap format, all the packets that it processes. I see you're already using the Java pcap code for picking up raw XIP packets, so perhaps it wouldn't be a big effort to implement the packet logging?

devhawala commented 1 year ago

Just uploaded a new version of Dodo, having the bugfix to the Echo-Responder and (new) the optional logging of packets in the PCap format.

I added the PCap logging to NetSpy, as this is the purpose of this program: log all packets travelling in the NetHub network. To produce a log, simply add the filename for the PCap dumpfile (see the NetSpy section in the readme). It produces the PCap format as documented in LibpcapFileFormat (base definition, none of the variants like nanoseconds or the like).

So simply download the current file dist.zip and unpack, then use the file dodoserver-and-nethub.jar there instead of the old one i posted in the Medley/Maiko areas.