Skip to content

node/neighbordiscovery: correctly update and delete node IPv6 addresses#44540

Merged
tklauser merged 1 commit intomainfrom
pr/tklauser/nodediscovery-update-delete-ipv6
Feb 26, 2026
Merged

node/neighbordiscovery: correctly update and delete node IPv6 addresses#44540
tklauser merged 1 commit intomainfrom
pr/tklauser/nodediscovery-update-delete-ipv6

Conversation

@tklauser
Copy link
Copy Markdown
Member

@tklauser tklauser commented Feb 26, 2026

The logic in (*nodeNeighborHandler).NodeUpdate and (*nodeNeighborHandler).NodeDelete treats the node IPv4 address retrieved using node.GetNodeIP(false) (where false means ipv6=false) as an IPv6 address. This will lead to the address not correctly compared and propagated to the forwardableIPManager.

Correct this by retrieving the node IPv6 address consistently for the IPv6 paths.

Also rename an incorrectly named local variable in (*nodeNeighborHandler).NodeAdd while at it.

Fixes: ccb7bd1 ("pkg/node/neighbordiscovery: Add node handler for neighbor discovery")

Fix a bug where node IPv6 updates and deletes were not correctly propagated to the Linux kernel neighbor subsystem.

The logic in (*nodeNeighborHandler).NodeUpdate and
(*nodeNeighborHandler).NodeDelete treats the node IPv4 address
retrieved using node.GetNodeIP(false) (where false means ipv6=false) as
an IPv6 address. This will lead to the address not correctly compared
and propagated to the forwardableIPManager.

Correct this by retrieving the node IPv6 address consistently for the
IPv6 paths.

Also rename an incorrectly named local variable in
(*nodeNeighborHandler).NodeAdd while at it.

Fixes: ccb7bd1 ("pkg/node/neighbordiscovery: Add node handler for neighbor discovery")
Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser requested review from a team as code owners February 26, 2026 14:19
@tklauser tklauser added release-note/bug This PR fixes an issue in a previous release of Cilium. feature/ipv6 Relates to IPv6 protocol support needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch needs-backport/1.19 This PR / issue needs backporting to the v1.19 branch labels Feb 26, 2026
@tklauser tklauser requested review from jrife and rastislavs February 26, 2026 14:19
@tklauser
Copy link
Copy Markdown
Member Author

/test

@tklauser tklauser enabled auto-merge February 26, 2026 14:19
Copy link
Copy Markdown
Contributor

@rastislavs rastislavs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tklauser tklauser added the area/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. label Feb 26, 2026
@tklauser tklauser added this pull request to the merge queue Feb 26, 2026
Merged via the queue into main with commit 0b3754e Feb 26, 2026
760 of 787 checks passed
@tklauser tklauser deleted the pr/tklauser/nodediscovery-update-delete-ipv6 branch February 26, 2026 16:33
@nebril nebril mentioned this pull request Mar 2, 2026
2 tasks
@nebril nebril added backport-pending/1.18 The backport for Cilium 1.18.x for this PR is in progress. and removed needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch labels Mar 2, 2026
@nebril nebril mentioned this pull request Mar 2, 2026
5 tasks
@nebril nebril added backport-pending/1.19 The backport for Cilium 1.19.x for this PR is in progress. and removed needs-backport/1.19 This PR / issue needs backporting to the v1.19 branch labels Mar 2, 2026
@github-actions github-actions bot added backport-done/1.19 The backport for Cilium 1.19.x for this PR is done. backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. and removed backport-pending/1.19 The backport for Cilium 1.19.x for this PR is in progress. backport-pending/1.18 The backport for Cilium 1.18.x for this PR is in progress. labels Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. backport-done/1.19 The backport for Cilium 1.19.x for this PR is done. feature/ipv6 Relates to IPv6 protocol support release-note/bug This PR fixes an issue in a previous release of Cilium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants