[PATCH 06/11] Add hwaddr length field to interface

Daniel M. Weeks weeksd2 at rpi.edu
Fri Apr 17 03:55:04 AEST 2020


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 at rpi.edu>
---
 discover/network.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

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,
-- 
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