summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe
diff options
context:
space:
mode:
authorMichael Brown2013-10-21 15:06:07 +0200
committerMichael Brown2013-10-21 15:34:08 +0200
commit2c76c1a6d801a5290c25c2d7bb3632e4af2f61c6 (patch)
tree5c40fdc68b1a6d92741b18a2e64b9e124e1d8511 /src/include/ipxe
parent[ipv4] Add IPv4 socket address converter (diff)
downloadipxe-2c76c1a6d801a5290c25c2d7bb3632e4af2f61c6.tar.gz
ipxe-2c76c1a6d801a5290c25c2d7bb3632e4af2f61c6.tar.xz
ipxe-2c76c1a6d801a5290c25c2d7bb3632e4af2f61c6.zip
[ipv6] Add IPv6 socket address converter
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
-rw-r--r--src/include/ipxe/netdevice.h5
1 files changed, 4 insertions, 1 deletions
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;