mapper_windows.go 812 B

12345678910111213141516171819202122232425262728293031
  1. package portmapper
  2. import (
  3. "net"
  4. "sync"
  5. "github.com/docker/docker/libnetwork/portallocator"
  6. )
  7. // PortMapper manages the network address translation
  8. type PortMapper struct {
  9. bridgeName string
  10. // udp:ip:port
  11. currentMappings map[string]*mapping
  12. lock sync.Mutex
  13. proxyPath string
  14. allocator *portallocator.PortAllocator
  15. }
  16. // AppendForwardingTableEntry adds a port mapping to the forwarding table
  17. func (pm *PortMapper) AppendForwardingTableEntry(proto string, sourceIP net.IP, sourcePort int, containerIP string, containerPort int) error {
  18. return nil
  19. }
  20. // DeleteForwardingTableEntry removes a port mapping from the forwarding table
  21. func (pm *PortMapper) DeleteForwardingTableEntry(proto string, sourceIP net.IP, sourcePort int, containerIP string, containerPort int) error {
  22. return nil
  23. }