conntrack_unspecified.go 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // +build !linux
  2. package netlink
  3. // ConntrackTableType Conntrack table for the netlink operation
  4. type ConntrackTableType uint8
  5. // InetFamily Family type
  6. type InetFamily uint8
  7. // ConntrackFlow placeholder
  8. type ConntrackFlow struct{}
  9. // ConntrackFilter placeholder
  10. type ConntrackFilter struct{}
  11. // ConntrackTableList returns the flow list of a table of a specific family
  12. // conntrack -L [table] [options] List conntrack or expectation table
  13. func ConntrackTableList(table ConntrackTableType, family InetFamily) ([]*ConntrackFlow, error) {
  14. return nil, ErrNotImplemented
  15. }
  16. // ConntrackTableFlush flushes all the flows of a specified table
  17. // conntrack -F [table] Flush table
  18. // The flush operation applies to all the family types
  19. func ConntrackTableFlush(table ConntrackTableType) error {
  20. return ErrNotImplemented
  21. }
  22. // ConntrackDeleteFilter deletes entries on the specified table on the base of the filter
  23. // conntrack -D [table] parameters Delete conntrack or expectation
  24. func ConntrackDeleteFilter(table ConntrackTableType, family InetFamily, filter *ConntrackFilter) (uint, error) {
  25. return 0, ErrNotImplemented
  26. }
  27. // ConntrackTableList returns the flow list of a table of a specific family using the netlink handle passed
  28. // conntrack -L [table] [options] List conntrack or expectation table
  29. func (h *Handle) ConntrackTableList(table ConntrackTableType, family InetFamily) ([]*ConntrackFlow, error) {
  30. return nil, ErrNotImplemented
  31. }
  32. // ConntrackTableFlush flushes all the flows of a specified table using the netlink handle passed
  33. // conntrack -F [table] Flush table
  34. // The flush operation applies to all the family types
  35. func (h *Handle) ConntrackTableFlush(table ConntrackTableType) error {
  36. return ErrNotImplemented
  37. }
  38. // ConntrackDeleteFilter deletes entries on the specified table on the base of the filter using the netlink handle passed
  39. // conntrack -D [table] parameters Delete conntrack or expectation
  40. func (h *Handle) ConntrackDeleteFilter(table ConntrackTableType, family InetFamily, filter *ConntrackFilter) (uint, error) {
  41. return 0, ErrNotImplemented
  42. }