summaryrefslogtreecommitdiffhomepage
path: root/runsc/boot/network.go
diff options
context:
space:
mode:
authorBhasker Hariharan <bhaskerh@google.com>2021-09-09 11:01:29 -0700
committergVisor bot <gvisor-bot@google.com>2021-09-09 11:07:01 -0700
commit5e9c3a0b934f0dd7513e21372b3fd8593b87525b (patch)
tree6016ca539a2dd7de30f6cd234c53ed26da41cdc7 /runsc/boot/network.go
parente90ecdb48885bcabd0d7b00ff01621e7f92e3614 (diff)
Add EthernetHeader only if underlying NIC has a mac address.
Fixes #6532 PiperOrigin-RevId: 395741741
Diffstat (limited to 'runsc/boot/network.go')
-rw-r--r--runsc/boot/network.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/boot/network.go b/runsc/boot/network.go
index 5c6879198..534242551 100644
--- a/runsc/boot/network.go
+++ b/runsc/boot/network.go
@@ -210,7 +210,7 @@ func (n *Network) CreateLinksAndRoutes(args *CreateLinksAndRoutesArgs, _ *struct
linkEP, err := fdbased.New(&fdbased.Options{
FDs: FDs,
MTU: uint32(link.MTU),
- EthernetHeader: true,
+ EthernetHeader: mac != "",
Address: mac,
PacketDispatchMode: fdbased.RecvMMsg,
GSOMaxSize: link.GSOMaxSize,