mirror of
https://github.com/vishvananda/netlink
synced 2025-02-16 12:06:49 +00:00
Set NetNsId to -1 when attr is not specified
This commit is contained in:
parent
187053b978
commit
fc5a223eaf
@ -1707,6 +1707,7 @@ func LinkDeserialize(hdr *unix.NlMsghdr, m []byte) (Link, error) {
|
||||
base.RawFlags = msg.Flags
|
||||
base.Flags = linkFlags(msg.Flags)
|
||||
base.EncapType = msg.EncapType()
|
||||
base.NetNsID = -1
|
||||
if msg.Flags&unix.IFF_PROMISC != 0 {
|
||||
base.Promisc = 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user