-
Notifications
You must be signed in to change notification settings - Fork 751
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable compilation in non linux environments Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
- Loading branch information
1 parent
c771f0b
commit 0ac4d25
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// +build !linux | ||
|
||
package netlink | ||
|
||
// ConntrackTableType Conntrack table for the netlink operation | ||
type ConntrackTableType uint8 | ||
|
||
// InetFamily Family type | ||
type InetFamily uint8 | ||
|
||
// ConntrackFlow placeholder | ||
type ConntrackFlow struct{} | ||
|
||
// ConntrackFilter placeholder | ||
type ConntrackFilter struct{} | ||
|
||
// ConntrackTableList returns the flow list of a table of a specific family | ||
// conntrack -L [table] [options] List conntrack or expectation table | ||
func ConntrackTableList(table ConntrackTableType, family InetFamily) ([]*ConntrackFlow, error) { | ||
return nil, ErrNotImplemented | ||
} | ||
|
||
// ConntrackTableFlush flushes all the flows of a specified table | ||
// conntrack -F [table] Flush table | ||
// The flush operation applies to all the family types | ||
func ConntrackTableFlush(table ConntrackTableType) error { | ||
return ErrNotImplemented | ||
} | ||
|
||
// ConntrackDeleteFilter deletes entries on the specified table on the base of the filter | ||
// conntrack -D [table] parameters Delete conntrack or expectation | ||
func ConntrackDeleteFilter(table ConntrackTableType, family InetFamily, filter *ConntrackFilter) (uint, error) { | ||
return 0, ErrNotImplemented | ||
} | ||
|
||
// ConntrackTableList returns the flow list of a table of a specific family using the netlink handle passed | ||
// conntrack -L [table] [options] List conntrack or expectation table | ||
func (h *Handle) ConntrackTableList(table ConntrackTableType, family InetFamily) ([]*ConntrackFlow, error) { | ||
return nil, ErrNotImplemented | ||
} | ||
|
||
// ConntrackTableFlush flushes all the flows of a specified table using the netlink handle passed | ||
// conntrack -F [table] Flush table | ||
// The flush operation applies to all the family types | ||
func (h *Handle) ConntrackTableFlush(table ConntrackTableType) error { | ||
return ErrNotImplemented | ||
} | ||
|
||
// ConntrackDeleteFilter deletes entries on the specified table on the base of the filter using the netlink handle passed | ||
// conntrack -D [table] parameters Delete conntrack or expectation | ||
func (h *Handle) ConntrackDeleteFilter(table ConntrackTableType, family InetFamily, filter *ConntrackFilter) (uint, error) { | ||
return 0, ErrNotImplemented | ||
} |