Mercurial > hg > dhcpcd
diff src/if-options.h @ 5574:2a519da0f1a2 draft
DHCP: Split hardware address randomisation out of anonymous option
A 3rd party might want to control the randomisation.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Mon, 28 Dec 2020 00:02:26 +0000 |
| parents | a0d828e25482 |
| children |
line wrap: on
line diff
--- a/src/if-options.h Sun Dec 27 23:52:44 2020 +0000 +++ b/src/if-options.h Mon Dec 28 00:02:26 2020 +0000 @@ -182,6 +182,7 @@ #define O_MSUSERCLASS O_BASE + 49 #define O_CONFIGURE O_BASE + 50 #define O_NOCONFIGURE O_BASE + 51 +#define O_RANDOMISE_HWADDR O_BASE + 52 extern const struct option cf_options[]; @@ -234,6 +235,7 @@ uint32_t timeout; uint32_t reboot; unsigned long long options; + bool randomise_hwaddr; struct in_addr req_addr; struct in_addr req_mask;
