socket.go 464 B

12345678910111213141516171819202122232425262728
  1. package netlink
  2. import "net"
  3. // SocketID identifies a single socket.
  4. type SocketID struct {
  5. SourcePort uint16
  6. DestinationPort uint16
  7. Source net.IP
  8. Destination net.IP
  9. Interface uint32
  10. Cookie [2]uint32
  11. }
  12. // Socket represents a netlink socket.
  13. type Socket struct {
  14. Family uint8
  15. State uint8
  16. Timer uint8
  17. Retrans uint8
  18. ID SocketID
  19. Expires uint32
  20. RQueue uint32
  21. WQueue uint32
  22. UID uint32
  23. INode uint32
  24. }