Skip to content

Commit ce24db6

Browse files
vipul-21root
andauthored
fix: Reverting the hardware address to use NUD_PERMANENT for ipv6 cases (#1535)
* Adding constant hardware address to the veth * update the variable and error log message * Removing the shadow variable * Removing the shadow variable * Adding the hardware ad address while endpoint creation * Refactoring based on the comments * Updated based on comments * removing merge conflicts * update the function parameter * Addressing comments * go lint errors * updating the IPAddr variable * updating the state to NUD PROBE for transparent endpoint * Reverting the hardware address to use NUD_PERMANENT Co-authored-by: root <[email protected]>
1 parent afcb977 commit ce24db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

network/transparent_endpointclient_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ func (client *TransparentEndpointClient) setIPV6NeighEntry() error {
306306
MacAddress: client.hostVethMac,
307307
}
308308

309-
if err := client.netlink.SetOrRemoveLinkAddress(linkInfo, netlink.ADD, netlink.NUD_PROBE); err != nil {
309+
if err := client.netlink.SetOrRemoveLinkAddress(linkInfo, netlink.ADD, netlink.NUD_PERMANENT); err != nil {
310310
log.Printf("Failed setting neigh entry in container: %+v", err)
311311
return fmt.Errorf("Failed setting neigh entry in container: %w", err)
312312
}

0 commit comments

Comments
 (0)