github.com/sagernet/netlink@v0.0.0-20240612041022-b9a21c07ac6a/conntrack_unspecified.go (about)

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