For some simulations I'm running, and also for testing #5, I find it handy to have shadow generate pcap files. At the moment, I have to generate the network with tornettools, and then manually add the pcap_directory option to those hosts that I want to debug (e.g. hiddenservices).
I think we could add a new --pcap option to the generation phase.
It could be an all-or-nothing, i.e. if --pcap is passed at generation phase, then we prepare a pcap subfolder for each host, and we add a pcap_directory option to all the generated hosts pointing to their pcap subfolder.
or it could be selective, i.e. could take a comma separated list of parameters among servers,hiddenservices,clients, etc (e.g. --pcap servers,hiddenservices will enable pcap dumping only for servers and hiddenservices, etc.)
Thoughts?
I can work on a PR for this if you think it's useful and you confirm the behavior your prefer.
For some simulations I'm running, and also for testing #5, I find it handy to have shadow generate pcap files. At the moment, I have to generate the network with tornettools, and then manually add the
pcap_directoryoption to those hosts that I want to debug (e.g. hiddenservices).I think we could add a new
--pcapoption to the generation phase.It could be an all-or-nothing, i.e. if
--pcapis passed at generation phase, then we prepare apcapsubfolder for each host, and we add apcap_directoryoption to all the generated hosts pointing to theirpcapsubfolder.or it could be selective, i.e. could take a comma separated list of parameters among
servers,hiddenservices,clients, etc (e.g.--pcap servers,hiddenserviceswill enable pcap dumping only forserversandhiddenservices, etc.)Thoughts?
I can work on a PR for this if you think it's useful and you confirm the behavior your prefer.