-
Notifications
You must be signed in to change notification settings - Fork 806
Closed
Description
Hi there,
I am trying to add geneve interface with unicast remote.
geneveInterface := &netlink.Geneve{
LinkAttrs: la,
ID: 0x1000,
Remote: net.IPv4(123, 132, 112, 123)}I watch my container and system is trying to send packets to 0.0.0.0 on dev lo0 not specified remote.
For debugging I add print in link_link.go
Line 2472 in fbe6077
| data.AddRtAttr(nl.IFLA_GENEVE_REMOTE, []byte(ip)) |
if ip := geneve.Remote; ip != nil {
if ip4 := ip.To4(); ip4 != nil {
test := data.AddRtAttr(nl.IFLA_GENEVE_REMOTE, ip )
fmt.Printf("remote addr %v %v \n", test ,ip)
} else {
data.AddRtAttr(nl.IFLA_GENEVE_REMOTE6, []byte(ip))
}
}Here is output.
remote addr &{{0 2} [0 0 0 0 0 0 0 0 0 0 255 255 123 132 112 123] []} 123.132.112.123Kind Regards
Ahmet
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels