nic_router: do not change ethernet header as hub

When forwarding domain-local traffic like a hub, the NIC router shouldn't
modify packets at all.

Fixes #3625
This commit is contained in:
Martin Stein 2020-02-07 12:15:39 +01:00 committed by Norman Feske
parent 8d60bc11b5
commit d56b21d329
1 changed files with 0 additions and 1 deletions

View File

@ -790,7 +790,6 @@ void Interface::_domain_broadcast(Ethernet_frame &eth,
Size_guard &size_guard,
Domain &local_domain)
{
eth.src(_router_mac);
local_domain.interfaces().for_each([&] (Interface &interface) {
if (&interface != this) {
interface.send(eth, size_guard);