Skip to content

Validate prop_mode and fallback to DELIVER_ONLY for invalid values#43

Open
therealvinayak wants to merge 1 commit into
taruntom1:mainfrom
therealvinayak:fix-prop-mode-validation
Open

Validate prop_mode and fallback to DELIVER_ONLY for invalid values#43
therealvinayak wants to merge 1 commit into
taruntom1:mainfrom
therealvinayak:fix-prop-mode-validation

Conversation

@therealvinayak
Copy link
Copy Markdown
Collaborator

The current implementation only checks for PropagationMode::DIRECTIONAL.
Invalid prop_mode values bypass directional gating and may cause unintended forwarding.

This patch:

  • validates hdr.prop_mode
  • handles valid propagation modes explicitly
  • falls back to DELIVER_ONLY for invalid values

Fixes #31

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.

Unknown prop_mode values are silently treated as OMNI

1 participant