mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 21:11:03 +03:00
[ipv6] Treat a missing network device name as "netX"
When an IPv6 socket address string specifies a link-local or multicast address but does not specify the requisite network device name (e.g. "fe80::69ff:fe50:5845" rather than "fe80::69ff:fe50:5845%net0"), assume the use of "netX". Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -63,6 +63,9 @@ struct in6_addr {
|
||||
( ( *( ( const uint16_t * ) (addr) ) & htons ( 0xffc0 ) ) == \
|
||||
htons ( 0xfe80 ) )
|
||||
|
||||
#define IN6_IS_ADDR_NONGLOBAL( addr ) \
|
||||
( IN6_IS_ADDR_LINKLOCAL (addr) || IN6_IS_ADDR_MULTICAST (addr) )
|
||||
|
||||
/**
|
||||
* IPv4 socket address
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user