mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 01:52:39 +03:00
[ipv6] Add IPv6 socket address converter
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user