diff options
author | Andrei Vagin <avagin@google.com> | 2019-05-15 11:10:56 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-05-15 11:11:58 -0700 |
commit | 85380ff03d21da417ad74d28b293c768d7effb4f (patch) | |
tree | f5a5edf12da71a1fe9c8f0d7f7e3a6bb1557fbbd /runsc/sandbox | |
parent | dc4a042f3a6810f6d1d96eff9c40651621b4692b (diff) |
gvisor/runsc: use a veth link address instead of generating a new one
PiperOrigin-RevId: 248367340
Change-Id: Id792afcfff9c9d2cfd62cae21048316267b4a924
Diffstat (limited to 'runsc/sandbox')
-rw-r--r-- | runsc/sandbox/network.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runsc/sandbox/network.go b/runsc/sandbox/network.go index 2a68d7043..0460d5f1a 100644 --- a/runsc/sandbox/network.go +++ b/runsc/sandbox/network.go @@ -246,6 +246,7 @@ func createInterfacesAndRoutesFromNS(conn *urpc.Client, nsPath string, enableGSO if err != nil { return fmt.Errorf("getting link for interface %q: %v", iface.Name, err) } + link.LinkAddress = []byte(ifaceLink.Attrs().HardwareAddr) if enableGSO { gso, err := isGSOEnabled(fd, iface.Name) |