From 2c76c1a6d801a5290c25c2d7bb3632e4af2f61c6 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 21 Oct 2013 14:06:07 +0100 Subject: [ipv6] Add IPv6 socket address converter Signed-off-by: Michael Brown --- src/include/ipxe/netdevice.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/ipxe/netdevice.h b/src/include/ipxe/netdevice.h index 2d08f34ff..ae6e5585a 100644 --- a/src/include/ipxe/netdevice.h +++ b/src/include/ipxe/netdevice.h @@ -292,6 +292,9 @@ struct net_device_stats { struct net_device_error errors[NETDEV_MAX_UNIQUE_ERRORS]; }; +/** Maximum length of a network device name */ +#define NETDEV_NAME_LEN 12 + /** * A network device * @@ -312,7 +315,7 @@ struct net_device { /** Index of this network device */ unsigned int index; /** Name of this network device */ - char name[12]; + char name[NETDEV_NAME_LEN]; /** Underlying hardware device */ struct device *dev; -- cgit v1.2.3-55-g7522