Skip to content

Ability to enable pcap logging at generation phase #21

@marcosimioni

Description

@marcosimioni

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions