summaryrefslogtreecommitdiff
path: root/libnetwork/service_linux.go
diff options
context:
space:
mode:
authorBenjamin Böhmke <benjamin@boehmke.net>2020-07-23 16:52:40 +0200
committerBenjamin Böhmke <benjamin@boehmke.net>2020-07-23 16:52:40 +0200
commit34f470617411b09bb9afa62ab6a97ff8784ce881 (patch)
tree4cfb01e7f06c86b5639cd291c3864ffc19fcd7dd /libnetwork/service_linux.go
parent648d891827a3ac3ef461916fca638a2388714863 (diff)
downloaddocker-34f470617411b09bb9afa62ab6a97ff8784ce881.tar.gz
added TODOs for open IPv6 point
Signed-off-by: Benjamin Böhmke <benjamin@boehmke.net>
Diffstat (limited to 'libnetwork/service_linux.go')
-rw-r--r--libnetwork/service_linux.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/libnetwork/service_linux.go b/libnetwork/service_linux.go
index bb94141c0c..66c8be6b97 100644
--- a/libnetwork/service_linux.go
+++ b/libnetwork/service_linux.go
@@ -302,7 +302,7 @@ func filterPortConfigs(ingressPorts []*PortConfig, isDelete bool) []*PortConfig
}
func programIngress(gwIP net.IP, ingressPorts []*PortConfig, isDelete bool) error {
-
+ // TODO IPv6 support
iptable := iptables.GetIptable(iptables.IPv4)
addDelOpt := "-I"
@@ -464,6 +464,7 @@ func programIngress(gwIP net.IP, ingressPorts []*PortConfig, isDelete bool) erro
// This chain has the rules to allow access to the published ports for swarm tasks
// from local bridge networks and docker_gwbridge (ie:taks on other swarm networks)
func arrangeIngressFilterRule() {
+ // TODO IPv6 support
iptable := iptables.GetIptable(iptables.IPv4)
if iptable.ExistChain(ingressChain, iptables.Filter) {
if iptable.Exists(iptables.Filter, "FORWARD", "-j", ingressChain) {
@@ -610,6 +611,7 @@ func invokeFWMarker(path string, vip net.IP, fwMark uint32, ingressPorts []*Port
// Firewall marker reexec function.
func fwMarker() {
+ // TODO IPv6 support
iptable := iptables.GetIptable(iptables.IPv4)
runtime.LockOSThread()
defer runtime.UnlockOSThread()
@@ -716,6 +718,7 @@ func addRedirectRules(path string, eIP *net.IPNet, ingressPorts []*PortConfig) e
// Redirector reexec function.
func redirector() {
+ // TODO IPv6 support
iptable := iptables.GetIptable(iptables.IPv4)
runtime.LockOSThread()
defer runtime.UnlockOSThread()