Skip to content

Conversation

suchit07-git
Copy link
Contributor

@suchit07-git suchit07-git commented Jul 19, 2025

Go 1.20 introduced slice-to-array conversions, which allow directly casting a slice to an array. This commit updates the Address.SolicitedNodeMaddr() method to use the cleaner [16]byte(slice) syntax instead of *(*[16]byte)(slice) as mentioned in the TODO.

…dr()

Go 1.20 introduced slice-to-array conversions, which allow directly casting a slice to an array. This commit updates the Address.SolicitedNodeMaddr() method to use the cleaner [16]byte(slice) syntax instead of *(*[16]byte)(slice).

Signed-off-by: Suchit Karunakaran <suchitkarunakaran@gmail.com>
@suchit07-git suchit07-git requested a review from a team as a code owner July 19, 2025 19:33
@suchit07-git suchit07-git requested a review from ldelossa July 19, 2025 19:33
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jul 19, 2025
@github-actions github-actions bot added the kind/community-contribution This was a contribution made by a community member. label Jul 19, 2025
@suchit07-git suchit07-git changed the title multicast: use Go 1.20 slice-to-array conversion for SolicitedNodeMadr() multicast: use Go 1.20 slice-to-array conversion for SolicitedNodeMaddr() Jul 20, 2025
@ldelossa ldelossa requested review from harsimran-pabla and removed request for ldelossa July 22, 2025 00:16
@tklauser
Copy link
Member

/test

@tklauser tklauser added the release-note/misc This PR makes changes that have no direct user impact. label Jul 22, 2025
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jul 22, 2025
@tklauser tklauser enabled auto-merge July 22, 2025 09:47
Copy link
Member

@tklauser tklauser left a comment

Choose a reason for hiding this comment

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

@suchit07-git thanks for the PR. Could you also apply the same change at

return Address(netip.AddrFrom16(*(*[16]byte)(maddr))).SolicitedNodeMaddr()
while at it?

Use Go 1.20 slice-to-array conversion syntax in randMaddr() function

Signed-off-by: Suchit Karunakaran <suchitkarunakaran@gmail.com>
auto-merge was automatically disabled July 22, 2025 10:23

Head branch was pushed to by a user without write access

@suchit07-git
Copy link
Contributor Author

suchit07-git commented Jul 22, 2025

@suchit07-git thanks for the PR. Could you also apply the same change at

return Address(netip.AddrFrom16(*(*[16]byte)(maddr))).SolicitedNodeMaddr()

while at it?

Done @tklauser

@tklauser
Copy link
Member

/test

@tklauser tklauser enabled auto-merge July 22, 2025 11:55
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jul 22, 2025
@tklauser tklauser added this pull request to the merge queue Jul 22, 2025
Merged via the queue into cilium:main with commit 51c4802 Jul 22, 2025
68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/community-contribution This was a contribution made by a community member. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants