From a1e32a3ad97cea55b0c463f016f085584fbd8f89 Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Mon, 21 Aug 2017 17:38:16 +0200 Subject: [PATCH] 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 --- repos/os/src/server/nic_router/mac_allocator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/os/src/server/nic_router/mac_allocator.cc b/repos/os/src/server/nic_router/mac_allocator.cc index 8f3bbb252..2839a4ec8 100644 --- a/repos/os/src/server/nic_router/mac_allocator.cc +++ b/repos/os/src/server/nic_router/mac_allocator.cc @@ -14,4 +14,4 @@ /* Genode includes */ #include -Net::Mac_address Net::Mac_allocator::mac_addr_base(0x03); +Net::Mac_address Net::Mac_allocator::mac_addr_base(0x02);