mirror of
https://github.com/vishvananda/netlink
synced 2025-02-18 21:27:00 +00:00
Fix parsing of IFLA_GRE_COLLECT_METADATA
This commit is contained in:
parent
a1c9a648f7
commit
07130f38b9
@ -2280,9 +2280,7 @@ func parseGretapData(link Link, data []syscall.NetlinkRouteAttr) {
|
|||||||
case nl.IFLA_GRE_ENCAP_FLAGS:
|
case nl.IFLA_GRE_ENCAP_FLAGS:
|
||||||
gre.EncapFlags = native.Uint16(datum.Value[0:2])
|
gre.EncapFlags = native.Uint16(datum.Value[0:2])
|
||||||
case nl.IFLA_GRE_COLLECT_METADATA:
|
case nl.IFLA_GRE_COLLECT_METADATA:
|
||||||
if len(datum.Value) > 0 {
|
gre.FlowBased = true
|
||||||
gre.FlowBased = int8(datum.Value[0]) != 0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user