mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 15:48:06 +02:00
platform: reuse nm_ip_addr_zero for a all-zero ethernet MAC address
This commit is contained in:
parent
a4a75b638f
commit
82f2fbf78d
1 changed files with 5 additions and 0 deletions
|
|
@ -96,6 +96,11 @@ typedef struct {
|
|||
guint8 addr_ptr[1];
|
||||
in_addr_t addr4;
|
||||
struct in6_addr addr6;
|
||||
|
||||
/* NMIPAddr is really a union for IP addresses.
|
||||
* However, as ethernet addresses fit in here nicely, ruse
|
||||
* it also for an ethernet MAC address. */
|
||||
guint8 addr_eth[6 /*ETH_ALEN*/];
|
||||
};
|
||||
} NMIPAddr;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue