diff --git a/nl/nl_linux.go b/nl/nl_linux.go index 8dbd92b..ef13120 100644 --- a/nl/nl_linux.go +++ b/nl/nl_linux.go @@ -323,6 +323,10 @@ func (s *NetlinkSocket) Close() { syscall.Close(s.fd) } +func (s *NetlinkSocket) GetFd() int { + return s.fd +} + func (s *NetlinkSocket) Send(request *NetlinkRequest) error { if err := syscall.Sendto(s.fd, request.Serialize(), 0, &s.lsa); err != nil { return err