Differential D21570 Diff 62266 sysutils/docker-freebsd/files/patch-vendor_github.com_docker_libnetwork_portmapper_mapper__freebsd.go
Changeset View
Changeset View
Standalone View
Standalone View
sysutils/docker-freebsd/files/patch-vendor_github.com_docker_libnetwork_portmapper_mapper__freebsd.go
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- vendor/github.com/docker/libnetwork/portmapper/mapper_freebsd.go.orig 2019-06-24 18:33:51 UTC | |||||
+++ vendor/github.com/docker/libnetwork/portmapper/mapper_freebsd.go | |||||
@@ -0,0 +1,31 @@ | |||||
+package portmapper | |||||
+ | |||||
+import ( | |||||
+ "net" | |||||
+ "sync" | |||||
+ | |||||
+ "github.com/docker/libnetwork/portallocator" | |||||
+) | |||||
+ | |||||
+// PortMapper manages the network address translation | |||||
+type PortMapper struct { | |||||
+ bridgeName string | |||||
+ | |||||
+ // udp:ip:port | |||||
+ currentMappings map[string]*mapping | |||||
+ lock sync.Mutex | |||||
+ | |||||
+ proxyPath string | |||||
+ | |||||
+ Allocator *portallocator.PortAllocator | |||||
+} | |||||
+ | |||||
+// AppendForwardingTableEntry adds a port mapping to the forwarding table | |||||
+func (pm *PortMapper) AppendForwardingTableEntry(proto string, sourceIP net.IP, sourcePort int, containerIP string, containerPort int) error { | |||||
+ return nil | |||||
+} | |||||
+ | |||||
+// DeleteForwardingTableEntry removes a port mapping from the forwarding table | |||||
+func (pm *PortMapper) DeleteForwardingTableEntry(proto string, sourceIP net.IP, sourcePort int, containerIP string, containerPort int) error { | |||||
+ return nil | |||||
+} |