Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adapt iptables_windows.go to the new API #1691

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions network/iptables_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ type IPTablesRule struct {
rulespec []string
}

func CreateIP4Chain(table, chain string) { return }
func CreateIP6Chain(table, chain string) { return }
func MasqRules(ipn ip.IP4Net, lease *subnet.Lease) []IPTablesRule { return nil }
func ForwardRules(flannelNetwork string) []IPTablesRule { return nil }
func teardownIPTables(ipt IPTables, rules []IPTablesRule) {}
func SetupAndEnsureIP4Tables(rules []IPTablesRule, resyncPeriod int) {}
func SetupAndEnsureIP6Tables(rules []IPTablesRule, resyncPeriod int) {}
func MasqIP6Rules(ipn ip.IP6Net, lease *subnet.Lease) []IPTablesRule { return nil }
func DeleteIP4Tables(rules []IPTablesRule) error { return nil }
func DeleteIP6Tables(rules []IPTablesRule) error { return nil }
func CreateIP4Chain(table, chain string) { return }
func CreateIP6Chain(table, chain string) { return }
func MasqRules(cluster_cidrs []ip.IP4Net, lease *subnet.Lease) []IPTablesRule { return nil }
func ForwardRules(flannelNetwork string) []IPTablesRule { return nil }
func teardownIPTables(ipt IPTables, rules []IPTablesRule) {}
func SetupAndEnsureIP4Tables(getRules func() []IPTablesRule, resyncPeriod int) {}
func SetupAndEnsureIP6Tables(getRules func() []IPTablesRule, resyncPeriod int) {}
func MasqIP6Rules(cluster_cidrs []ip.IP6Net, lease *subnet.Lease) []IPTablesRule { return nil }
func DeleteIP4Tables(rules []IPTablesRule) error { return nil }
func DeleteIP6Tables(rules []IPTablesRule) error { return nil }