diff options
| author | Roy Marples <roy@marples.name> | 2020-02-07 15:04:25 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-02-07 15:04:25 +0000 |
| commit | 57ab5f7c51248ddb529ac28617082f306418065c (patch) | |
| tree | 8fcb6c928ec37476a8cf99fdee47995386dcee7f /src/if.c | |
| parent | ccf3a5e9fe4ea8f63cfcdb27f96b02ec2cc8ff70 (diff) | |
| download | dhcpcd-57ab5f7c51248ddb529ac28617082f306418065c.tar.xz | |
dhcpcd: randomise hardware address on start if no carrier
For more anonymity.
Diffstat (limited to 'src/if.c')
| -rw-r--r-- | src/if.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -213,7 +213,7 @@ if_randomisemac(struct interface *ifp) logdebugx("%s: hardware address randomised to %s", ifp->name, - hwaddr_ntoa(buf, sizeof(buf), sbuf, sizeof(sbuf))); + hwaddr_ntoa(buf, ifp->hwlen, sbuf, sizeof(sbuf))); retval = if_setmac(ifp, buf, ifp->hwlen); if (retval == 0) memcpy(ifp->hwaddr, buf, ifp->hwlen); |
