Skip to content

Conversation

@nickgarlis
Copy link
Contributor

@nickgarlis nickgarlis commented Oct 27, 2025

This change introduces support for the following table flags:

  • TableFlagDormant
  • TableFlagOwner
  • TableFlagPersist

It also adds and exposes a new method GetPortID, which is required when the TableFlagOwner flag is set.

Currently, a syscall is used to obtain the connection port ID, but this could be simplified by directly accessing the connection PID.

See: mdlayher/netlink#237

Fixes: #316

This change adds support for the following table flags:
  - TableFlagDormant
  - TableFlagOwner
  - TableFlagPersist

It also introduces a new method, GetPortID, which is required
when the TableFlagOwner flag is set. This method relies on the
latest version of mdlayher/netlink, so the dependency has been
updated accordingly.
@nickgarlis nickgarlis force-pushed the add-table-flags-support branch from d155832 to 87c7023 Compare October 28, 2025 15:28
@stapelberg stapelberg merged commit df852a3 into google:main Oct 30, 2025
2 checks passed
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.

feature: add support for table flags

2 participants