github.com/sagernet/netlink@v0.0.0-20240612041022-b9a21c07ac6a/socket.go (about) 1 package netlink 2 3 import "net" 4 5 // SocketID identifies a single socket. 6 type SocketID struct { 7 SourcePort uint16 8 DestinationPort uint16 9 Source net.IP 10 Destination net.IP 11 Interface uint32 12 Cookie [2]uint32 13 } 14 15 // Socket represents a netlink socket. 16 type Socket struct { 17 Family uint8 18 State uint8 19 Timer uint8 20 Retrans uint8 21 ID SocketID 22 Expires uint32 23 RQueue uint32 24 WQueue uint32 25 UID uint32 26 INode uint32 27 }