-
Notifications
You must be signed in to change notification settings - Fork 6
Documentation, help
main.py [-h] [-p] [-t] [-n] [-nm] [-rnip] [-rnmac] [-rnport] [-pkt]
[-u] [-udata] [-perf] [-d] [-v]
BB-Gen PCAP generator
optional arguments:
-h, --help
Show help message and exit.
-p , --protocol
Defines the protocol type of packet, the available protocols are:
- ipv4
- ipv6
- vxlan
- gre
- l2
The default protocol is: ipv4
-t , --tansport
Specifies the transport protocol, for VXLAN and GRE will set the encapsulated transport protocol. The available options are:
- tcp
- udp
The default protocol is: tcp
-n , --number
Defines the number of entries to be created for all the specified sizes.
The default value is: 10
-nm , --name
Defines the PCAP and Trace name.
The default name is: nfpa.trPR
-rnip
Defines the distribution of IPs to Random.
The default value is: False
-rnmac
Defines the distribution of MACs to Random.
The default value is: False
-rnport
Defines the distribution of Ports to Random.
The default value is: False
-pkt , --packetsize
Defines the required packet size. In case of more than one, separated the list with a comma "," e.g. 64,215,514.
The default value is: 64
-p4
Specify a P4 code to autogenerates the traces.
-u , --usecase
Defines the specific use case Trace format to be used. BB-Gen has implemented MACSAD use case if it is selected, the Trace file format will be according to the project specification. The available options are:
- macsad
The default value is: none
-udata , --userdata
Defines a specified value for the Payload Data. If this option is selected, the flag for -pkt and -perf will be disabled.
-perf, --performance
It enables the performance sizes for the PCAPs. The PCAPs files will be created following the RFC 2544.
- 64, 128, 254, 512, 1024, 1280, 1518 packet sizes.
The default value is: False
-d, --debug Debug enable
Enables the debug mode, showing all the information of the packets that are going to be generated.
-v
Shows the program's version number and exit