diff options
author | Fabricio Voznika <fvoznika@google.com> | 2019-06-11 14:30:34 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-06-11 14:31:46 -0700 |
commit | 847c4b9759c49cb30728579cfb0f4a69f1987b94 (patch) | |
tree | 391c01d83c02983f4cfcb685e43516aa9b2d5004 /runsc/sandbox/network.go | |
parent | a775ae82fed4f703db28edc3d9d58b5652d6979d (diff) |
Use net.HardwareAddr for FDBasedLink.LinkAddress
It prints formatted to the log.
PiperOrigin-RevId: 252699551
Diffstat (limited to 'runsc/sandbox/network.go')
-rw-r--r-- | runsc/sandbox/network.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/sandbox/network.go b/runsc/sandbox/network.go index 1fd091514..e9e24fc58 100644 --- a/runsc/sandbox/network.go +++ b/runsc/sandbox/network.go @@ -228,7 +228,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) + link.LinkAddress = ifaceLink.Attrs().HardwareAddr log.Debugf("Setting up network channels") // Create the socket for the device. |