[PATCH 11/11] Ready interfaces with hwaddr longer than MAC

Daniel M. Weeks weeksd2 at rpi.edu
Fri Apr 17 04:00:51 AEST 2020


With all other components prepared to parse, display, store and load
hardware addresses longer than a MAC address (at least an Infiniband
GUID), ready interfaces up to the maximum hardware address size
supported.

Signed-off-by: Daniel M. Weeks <weeksd2 at rpi.edu>
---
 discover/network.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/discover/network.c b/discover/network.c
index 6887fc5..099ca98 100644
--- a/discover/network.c
+++ b/discover/network.c
@@ -673,7 +673,7 @@ void network_mark_interface_ready(struct device_handler *handler,
 		return;
 	}
 
-	if (hwsize != MAC_HWADDR_SIZE)
+	if (hwsize > MAX_HWADDR_SIZE)
 		return;
 
 	if (strncmp(ifname, "lo", strlen("lo")) == 0)
-- 
Daniel M. Weeks


-- 
Daniel M. Weeks
Lead HPC Developer
Center for Computational Innovations
Rensselaer Polytechnic Institute
Troy, NY 12180
518-276-4458


More information about the Petitboot mailing list