Skip to content

Geneve Remote is always 0.0.0.0 #599

@ahmetozer

Description

@ahmetozer

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

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.123

Kind Regards
Ahmet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions