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

Fix tcp flags #294

Merged
merged 3 commits into from
Nov 9, 2024
Merged

Fix tcp flags #294

merged 3 commits into from
Nov 9, 2024

Conversation

pktgen
Copy link
Owner

@pktgen pktgen commented Nov 9, 2024

Fixed up setting TCP flags.

New commands to set TCP flags are:
set tcp [flag|flags]
range tcp [flag|flags]

Use flag or flags you can set multiple flags or a single flag.
tcp-flags is a comma delimited list of TCP flags 'cwr,ece,urg,ack,psh,rst,syn,fin,clr' the 'clr' will reset the flags to zero. If you
have say 'syn,ack,clr' the result with will zero flags. if 'clr,syn,ack` will clear the flags and set syn,ack if 'syn,clr,ack' will set
syn, then clear the flags and set ack bit. So clr is used to set the flags to zero and should be used without other flags.

tcp flags are not ORed into the tcp flags the command will set the flags to the list.

Signed-off-by: Keith Wiles <keith.wiles@intel.com>
Signed-off-by: Keith Wiles <keith.wiles@intel.com>
Signed-off-by: Keith Wiles <keith.wiles@intel.com>
@pktgen pktgen merged commit c171176 into main Nov 9, 2024
2 checks passed
@pktgen pktgen deleted the fix-tcp-flags branch November 9, 2024 18:45
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

Successfully merging this pull request may close these issues.

2 participants