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