diff mbox series

[06/11] Add hwaddr length field to interface

Message ID b65072866beb99578570b73a56968fcb38f6b750.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:55 p.m. UTC
This adds a field to the interface data structure within the network
unit, to match the field added to the interface config.

Signed-off-by: Daniel M. Weeks <weeksd2@rpi.edu>
---
 discover/network.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/discover/network.c b/discover/network.c
index 62df720..99f97b7 100644
--- a/discover/network.c
+++ b/discover/network.c
@@ -40,9 +40,10 @@ 
 
 
 struct interface {
-	int	ifindex;
-	char	name[IFNAMSIZ];
-	uint8_t	hwaddr[HWADDR_SIZE];
+	int		ifindex;
+	char		name[IFNAMSIZ];
+	uint8_t		hwaddr[HWADDR_SIZE];
+	unsigned int	hwaddr_len;
 
 	enum {
 		IFSTATE_NEW,