-
Notifications
You must be signed in to change notification settings - Fork 95
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
Added a method to dump flows matching a flow #127
Conversation
dpraveenraja
commented
Jan 22, 2024
- Fixed a issue to match zeo ovscookie
- Added a method to dump flow using a flow filter
3c20058
to
fc97d88
Compare
@@ -105,7 +105,7 @@ func (f *MatchFlow) MarshalText() ([]byte, error) { | |||
b = append(b, ',') | |||
} | |||
|
|||
if f.Cookie > 0 { | |||
if f.Cookie > 0 || f.CookieMask > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the issue that you ran into that led to this change? Could you give a little more context? TIA!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cookie and CookieMask are uint64. So currently there is on way to match zero cookie or a zero cookie with a non-zero mask. So this check will enable use to check for zero cookie match. For example: cookie=0x0000000000000000/0xffffffffffffffff
1. Fixed a issue to match zeo ovscookie 2. Added a method to dump flow using a flow filter
fc97d88
to
a3e6e35
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address @anitgandhi 's feedback also.
Co-authored-by: Anit Gandhi <[email protected]>