nic_router: use local but individual MAC addresses

IP stacks may treat a network interface as "down" when it states a MAC
address with the I/G bit (bit 40) set to "Group" (value 0) instead of
"Individual" (value 1). This was observed with a TinyCore 8 inside a
Virtualbox VM. Thus, the previously choosen 03:03:03:03:03:00 as base
for the MAC address allocator is bad. Now we use the 02:02:02:02:02:00
instead. This also ensures that the MAC addresses are not marked as
"Universal" but as "Local" (bit 41, value 1) which is correct in general
as the router allocates MAC addresses only for virtual networks.

Ref #2490
This commit is contained in:
Martin Stein 2017-08-21 17:38:16 +02:00 committed by Christian Helmuth
parent 8a6ad5f94b
commit a1e32a3ad9
1 changed files with 1 additions and 1 deletions

View File

@ -14,4 +14,4 @@
/* Genode includes */
#include <nic_bridge/mac_allocator.h>
Net::Mac_address Net::Mac_allocator::mac_addr_base(0x03);
Net::Mac_address Net::Mac_allocator::mac_addr_base(0x02);