8000 Read rule type and l3mdev flag by stephanreiter · Pull Request #1096 · vishvananda/netlink · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Read rule type and l3mdev flag #1096

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

stephanreiter
Copy link
@stephanreiter stephanreiter commented Jun 26, 2025

When reading rules, makes sure to populate the type field of Rule.
Also adds a l3mdev flag to Rule, reads it and makes sure it is taken into account when comparing rules using Equal as introduced in #1095.

This fixes #1055

@stephanreiter
Copy link
Author

Let's try to get #1095 in first, then rebase.

This adds an implementation of Rule.Equal
(and RulePortRange.Equal, RuleUIDRange.Equal)
which allows us to compare two Rule objects.
@stephanreiter stephanreiter force-pushed the read-rule-type-and-l3mdev-flag branch from 761d08e to 19ea691 Compare June 29, 2025 10:42
When reading rules, makes sure to populate the type field of Rule.
Also adds a l3mdev flag to Rule, reads it when listing rules,
sets it when updating rules, and makes sure it is taken into
account when comparing rules using Equal as introduced in vishvananda#1095.
@stephanreiter stephanreiter force-pushed the read-rule-type-and-l3mdev-flag branch from 19ea691 to 157d171 Compare June 29, 2025 10:47
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.

RuleListFiltered and RuleList always return rule.Type=0
2 participants
0