[ipv6] Add IPv6 socket address converter

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2013-10-21 14:06:07 +01:00
parent 365a09d867
commit 2c76c1a6d8
2 changed files with 102 additions and 2 deletions

View File

@@ -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;