summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-14 01:25:19 -0700
committerGitHub <noreply@github.com>2019-03-14 01:25:19 -0700
commitc8dea5f56e96f1a5b4b6564191176913d71bf4f3 (patch)
tree42b5ba80c7ae8ef16cff6a89fecbff7bb68d6c25
parentf6cfa8f4d84b0ef999031e142dcb24bc60685ce9 (diff)
parentac37fc149e158a0db781e48f41c299cc629f1572 (diff)
downloadpodman-c8dea5f56e96f1a5b4b6564191176913d71bf4f3.tar.gz
podman-c8dea5f56e96f1a5b4b6564191176913d71bf4f3.tar.bz2
podman-c8dea5f56e96f1a5b4b6564191176913d71bf4f3.zip
Merge pull request #2626 from giuseppe/slirp-set-mtu
slirp4netns: set mtu to 65520
-rw-r--r--libpod/networking_linux.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/networking_linux.go b/libpod/networking_linux.go
index 80d7d8213..b7f1c2f1b 100644
--- a/libpod/networking_linux.go
+++ b/libpod/networking_linux.go
@@ -162,9 +162,9 @@ func (r *Runtime) setupRootlessNetNS(ctr *Container) (err error) {
var cmd *exec.Cmd
if havePortMapping {
// if we need ports to be mapped from the host, create a API socket to use for communicating with slirp4netns.
- cmd = exec.Command(path, "-c", "-e", "3", "-r", "4", "--api-socket", apiSocket, fmt.Sprintf("%d", ctr.state.PID), "tap0")
+ cmd = exec.Command(path, "--mtu", "65520", "-c", "-e", "3", "-r", "4", "--api-socket", apiSocket, fmt.Sprintf("%d", ctr.state.PID), "tap0")
} else {
- cmd = exec.Command(path, "-c", "-e", "3", "-r", "4", fmt.Sprintf("%d", ctr.state.PID), "tap0")
+ cmd = exec.Command(path, "--mtu", "65520", "-c", "-e", "3", "-r", "4", fmt.Sprintf("%d", ctr.state.PID), "tap0")
}
cmd.SysProcAttr = &syscall.SysProcAttr{