mirror of https://github.com/vishvananda/netlink
Merge pull request #82 from drzaeus77/nlmsghdr
Add syscall.NlMsghdr to LinkUpdate
This commit is contained in:
commit
1281ba6af5
|
@ -817,6 +817,7 @@ func LinkList() ([]Link, error) {
|
|||
// LinkUpdate is used to pass information back from LinkSubscribe()
|
||||
type LinkUpdate struct {
|
||||
nl.IfInfomsg
|
||||
Header syscall.NlMsghdr
|
||||
Link
|
||||
}
|
||||
|
||||
|
@ -846,7 +847,7 @@ func LinkSubscribe(ch chan<- LinkUpdate, done <-chan struct{}) error {
|
|||
if err != nil {
|
||||
return
|
||||
}
|
||||
ch <- LinkUpdate{IfInfomsg: *ifmsg, Link: link}
|
||||
ch <- LinkUpdate{IfInfomsg: *ifmsg, Header: m.Header, Link: link}
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue