You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: use enums for subsystem and message types
This refactors the crate to use type-safe enums for netfilter subsystems and message types, for a safer and more idiomatic API.
- Introduces a `Subsystem` enum to replace raw `u8` identifiers for `NfLog` and `Conntrack` subsystems.
- Introduces `NfLogMessageType` and `ConntrackMessageType` enums to provide type safety for messages within each subsystem.
- Makes the top-level `NetfilterMessage::message_type()` function private to guide users towards the safer pattern of matching on `NetfilterMessageInner`.
- Updates the internal parsing logic in `buffer.rs` to use the new `Subsystem` enum.
Signed-off-by: Shivang K Raghuvanshi <[email protected]>
0 commit comments