mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Move utility package 'iptables' to pkg/iptables
This commit is contained in:
parent
bb754fd34d
commit
7799ae27ca
6 changed files with 5 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
package docker
|
package docker
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/dotcloud/docker/iptables"
|
"github.com/dotcloud/docker/pkg/iptables"
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
2
links.go
2
links.go
|
@ -2,7 +2,7 @@ package docker
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/dotcloud/docker/iptables"
|
"github.com/dotcloud/docker/pkg/iptables"
|
||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/dotcloud/docker/iptables"
|
"github.com/dotcloud/docker/pkg/iptables"
|
||||||
"github.com/dotcloud/docker/pkg/netlink"
|
"github.com/dotcloud/docker/pkg/netlink"
|
||||||
"github.com/dotcloud/docker/proxy"
|
"github.com/dotcloud/docker/proxy"
|
||||||
"github.com/dotcloud/docker/utils"
|
"github.com/dotcloud/docker/utils"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package docker
|
package docker
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/dotcloud/docker/iptables"
|
"github.com/dotcloud/docker/pkg/iptables"
|
||||||
"github.com/dotcloud/docker/proxy"
|
"github.com/dotcloud/docker/proxy"
|
||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -340,6 +340,7 @@ func NewStubProxy(frontendAddr, backendAddr net.Addr) (proxy.Proxy, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestPortMapper(t *testing.T) {
|
func TestPortMapper(t *testing.T) {
|
||||||
|
// FIXME: is this iptables chain still used anywhere?
|
||||||
var chain *iptables.Chain
|
var chain *iptables.Chain
|
||||||
mapper := &PortMapper{
|
mapper := &PortMapper{
|
||||||
tcpMapping: make(map[string]*net.TCPAddr),
|
tcpMapping: make(map[string]*net.TCPAddr),
|
||||||
|
|
Loading…
Reference in a new issue