pktgen / Pktgen-DPDK

DPDK based packet generator
Other
390 stars 120 forks source link

case 42 cli-functions.c #293

Open netshield-admin opened 1 week ago

netshield-admin commented 1 week ago

who stole case 42 from https://github.com/pktgen/Pktgen-DPDK/blob/main/app/cli-functions.c

which is responsible for “range 0 set tcp flag”, please return it :))))

pktgen commented 1 week ago

I hope I have fixed up the tcp flags commands in Version 24.10.2, please give it a try and let me know what else I messed up.

The set <portlist> tcp [flag|flags] <tcp-flag-list> You can use flag or flags as they mean the same thing.

The tcp-flag-list is a comma delimited list of TCP flags i.e., one or more of cwr,ece,urg,ack,psh,rst,syn,fin,clr The clr flag will reset the flags to zero if it appears anyplace in the list of flags. Any flags set after the clr will be used. The clr flag is only needed if you want to set the tcp flags to zero. The tcp flags are not OR'd into the existing flags, but replaces the current set of flags.

set 0 tcp flags syn,ack # will set the syn,ack flags and clear all other flags same for range and seq commands.