lib: Report IPv6 MTU and not IPv4 for if_update_state_mtu6#226
Open
mwinter-osr wants to merge 1 commit into
Open
lib: Report IPv6 MTU and not IPv4 for if_update_state_mtu6#226mwinter-osr wants to merge 1 commit into
mwinter-osr wants to merge 1 commit into
Conversation
Fixes: 80c6f98 ("lib: if: track oper-state inline") Signed-off-by: Donatas Abraitis <[email protected]>
Greptile SummaryThis is a one-line bug fix in
|
| Filename | Overview |
|---|---|
| lib/if.c | One-line bug fix: nb_op_updatef in if_update_state_mtu6 was passing ifp->mtu (IPv4) instead of ifp->mtu6 (IPv6) for the mtu6 operational-state notification. Fix is correct and consistent with if_update_state_mtu. |
Sequence Diagram
sequenceDiagram
participant Zebra as zebra/interface.c
participant IfLib as lib/if.c
participant NB as nb_op_updatef (MGMT)
Zebra->>IfLib: if_update_state_mtu6(ifp, mtu)
IfLib->>IfLib: "ifp->mtu6 = mtu"
Note over IfLib: BEFORE: passed ifp->mtu (IPv4!)
Note over IfLib: AFTER: passes ifp->mtu6 (IPv6 ✓)
IfLib->>NB: "nb_op_updatef(state, "mtu6", "%u", ifp->mtu6)"
NB-->>Zebra: operational state updated with correct IPv6 MTU
Reviews (1): Last reviewed commit: "lib: Report IPv6 MTU and not IPv4 for if..." | Re-trigger Greptile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original PR21501 by ton31337