Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

case 42 cli-functions.c #293

Open
netshield-admin opened this issue Nov 9, 2024 · 1 comment
Open

case 42 cli-functions.c #293

netshield-admin opened this issue Nov 9, 2024 · 1 comment

Comments

@netshield-admin
Copy link

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
Copy link
Owner

pktgen commented Nov 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants