summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-16 04:03:31 -0700
committerGitHub <noreply@github.com>2019-03-16 04:03:31 -0700
commit0015f403b5a042d9560a5356be2b7d2af6de5278 (patch)
tree8d97f5fb56a01a1bd011fecaa44b9af79bc0fbd0
parent2c727eef836a6c0342bc46202d2712572a3ea40b (diff)
parent101e6f6b74d4ddda1f3e5a4332ca8b072fb1a872 (diff)
downloadpodman-0015f403b5a042d9560a5356be2b7d2af6de5278.tar.gz
podman-0015f403b5a042d9560a5356be2b7d2af6de5278.tar.bz2
podman-0015f403b5a042d9560a5356be2b7d2af6de5278.zip
Merge pull request #2658 from mheon/sctp
Add support for SCTP port forwarding
-rw-r--r--libpod/oci.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/libpod/oci.go b/libpod/oci.go
index 30360d289..69cff6d3c 100644
--- a/libpod/oci.go
+++ b/libpod/oci.go
@@ -183,6 +183,7 @@ func waitPidsStop(pids []int, timeout time.Duration) error {
func bindPorts(ports []ocicni.PortMapping) ([]*os.File, error) {
var files []*os.File
+ notifySCTP := false
for _, i := range ports {
switch i.Protocol {
case "udp":
@@ -218,6 +219,12 @@ func bindPorts(ports []ocicni.PortMapping) ([]*os.File, error) {
}
files = append(files, f)
break
+ case "sctp":
+ if !notifySCTP {
+ notifySCTP = true
+ logrus.Warnf("port reservation for SCTP is not supported")
+ }
+ break
default:
return nil, fmt.Errorf("unknown protocol %s", i.Protocol)