change_port module

Change the port in a pcap file

change_port.change_port(packets, port, output_file)[source]
Parameters:
  • packets (str) – Input PCAP trace file

  • port (int) – port number to use (default 36001)

  • output_file (str) – Output PCAP file name (default: new_port.pcap)

change_port.main()[source]