diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-03-14 01:25:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-14 01:25:19 -0700 |
commit | c8dea5f56e96f1a5b4b6564191176913d71bf4f3 (patch) | |
tree | 42b5ba80c7ae8ef16cff6a89fecbff7bb68d6c25 | |
parent | f6cfa8f4d84b0ef999031e142dcb24bc60685ce9 (diff) | |
parent | ac37fc149e158a0db781e48f41c299cc629f1572 (diff) | |
download | podman-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.go | 4 |
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{ |