Fix Geneve remote ipv4 attr

This commit is contained in:
Ahmet OZER 2020-12-06 04:19:25 +03:00 committed by Alessandro Boch
parent fbe60771a0
commit f2f0bfd10a
1 changed files with 1 additions and 1 deletions

View File

@ -2469,7 +2469,7 @@ func addGeneveAttrs(geneve *Geneve, linkInfo *nl.RtAttr) {
if ip := geneve.Remote; ip != nil {
if ip4 := ip.To4(); ip4 != nil {
data.AddRtAttr(nl.IFLA_GENEVE_REMOTE, []byte(ip))
data.AddRtAttr(nl.IFLA_GENEVE_REMOTE, ip.To4())
} else {
data.AddRtAttr(nl.IFLA_GENEVE_REMOTE6, []byte(ip))
}