Skip to content

Commit f68ab78

Browse files
committed
netlink: remove sockaddr from Linux conn
Signed-off-by: Matt Layher <mdlayher@gmail.com>
1 parent cfc949a commit f68ab78

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

conn_linux.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ var _ Socket = &conn{}
2222
// All conn methods must wrap system call errors with os.NewSyscallError to
2323
// enable more intelligible error messages in OpError.
2424
type conn struct {
25-
s *socket
26-
sa *unix.SockaddrNetlink
25+
s *socket
2726
}
2827

2928
// dial is the entry point for Dial. dial opens a netlink socket using
@@ -101,8 +100,7 @@ func newConn(s *socket, config *Config) (*conn, uint32, error) {
101100
}
102101

103102
return &conn{
104-
s: s,
105-
sa: addr,
103+
s: s,
106104
}, sa.(*unix.SockaddrNetlink).Pid, nil
107105
}
108106

0 commit comments

Comments
 (0)