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

Support --filter-mark mark/[/mask] #296

Open
jschwinger233 opened this issue Dec 13, 2023 · 0 comments
Open

Support --filter-mark mark/[/mask] #296

jschwinger233 opened this issue Dec 13, 2023 · 0 comments

Comments

@jschwinger233
Copy link
Member

jschwinger233 commented Dec 13, 2023

Currently --filter-mark accepts mark value only which is interpreted into value/0xffffffff. I found it helpful to support mask such as 0xa00/0xf00 in order to match 0xe1300a00.

One real world use case is to match packets from Cilium L7 proxy in forward direction, whose skb mark is 0xa00 | cluster_id <<12 | sec_id <<16 (like 0xe1330a00).

If mask is not provided, e.g. --filter-mark 0xa00 should be seen as 0xa00/0xfffffff.

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

1 participant