diff options
| author | Evgeni Golov <evgeni@debian.org> | 2023-02-27 22:50:56 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2023-02-27 22:51:27 +0000 |
| commit | 55747938b5c4c913f742fd03189f0c660ced7bef (patch) | |
| tree | 5834b5bf5f165d1178a984b55a0552b36b8609b6 /sys/dev/re | |
| parent | 28ed159f2669b8d401ca95bf5c6e9ff06a997ef9 (diff) | |
Diffstat (limited to 'sys/dev/re')
| -rw-r--r-- | sys/dev/re/if_re.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c index aaf3860fcc48..734760898e55 100644 --- a/sys/dev/re/if_re.c +++ b/sys/dev/re/if_re.c @@ -1674,6 +1674,11 @@ re_attach(device_t dev) goto fail; } + /* If address was not found, create one based on the hostid and name. */ + if (ETHER_IS_ZERO(eaddr)) { + ether_gen_addr(ifp, (struct ether_addr *)eaddr); + } + /* * Call MI attach routine. */ |
