Merge pull request #82 from drzaeus77/nlmsghdr

Add syscall.NlMsghdr to LinkUpdate
This commit is contained in:
Vish Ishaya 2016-01-11 15:58:21 -08:00
commit 1281ba6af5
1 changed files with 2 additions and 1 deletions

View File

@ -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}
}
}
}()