mirror of
https://github.com/vishvananda/netlink
synced 2025-02-13 18:46:56 +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:
|
||||
gre.EncapFlags = native.Uint16(datum.Value[0:2])
|
||||
case nl.IFLA_GRE_COLLECT_METADATA:
|
||||
if len(datum.Value) > 0 {
|
||||
gre.FlowBased = int8(datum.Value[0]) != 0
|
||||
}
|
||||
gre.FlowBased = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user