diff mbox series

[04/11] Make MAC address length requirement explicit

Message ID 73eae9f3e19004708ded8e3381f32dfe08ee958e.1587059210.git.weeksd2@rpi.edu
State New
Headers show
Series IB netboot 1/3: flexible hwaddrs | expand

Commit Message

Daniel M. Weeks April 16, 2020, 5:54 p.m. UTC
In the future, the size of the hwaddr buffer may not be 6 bytes.

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

Patch

diff --git a/discover/ipmi.c b/discover/ipmi.c
index d652e9f..32319fc 100644
--- a/discover/ipmi.c
+++ b/discover/ipmi.c
@@ -244,7 +244,7 @@  int parse_ipmi_interface_override(struct config *config, uint8_t *buf,
 	}
 
 	/* At the moment only support 6-byte MAC addresses */
-	if (hwsize != sizeof(ifconf->hwaddr)) {
+	if (hwsize != HWADDR_SIZE) {
 		pb_log("Unsupported HW address size in network override: %u\n",
 		       hwsize);
 		return -1;