diff options
author | 2014-11-18 01:56:32 +0000 | |
---|---|---|
committer | 2014-11-18 01:56:32 +0000 | |
commit | b9405d4d90a4094887a82c6e37aa72d3df715d07 (patch) | |
tree | 94127166edcf7139f916845f151c62dd69b9fde2 /sys | |
parent | (except for the arm architectures...) unify the way the ld.script is (diff) | |
download | wireguard-openbsd-b9405d4d90a4094887a82c6e37aa72d3df715d07.tar.xz wireguard-openbsd-b9405d4d90a4094887a82c6e37aa72d3df715d07.zip |
Use pa_device to ensure each MAC address of a multi port board
is unique; as done by hme(4).
ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_cas.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_cas.c b/sys/dev/pci/if_cas.c index 7bc4602bfd6..cdab4e1245e 100644 --- a/sys/dev/pci/if_cas.c +++ b/sys/dev/pci/if_cas.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cas.c,v 1.34 2014/11/16 05:46:20 brad Exp $ */ +/* $OpenBSD: if_cas.c,v 1.35 2014/11/18 01:56:32 brad Exp $ */ /* * @@ -280,6 +280,7 @@ next: desc += strlen("local-mac-address") + 1; bcopy(desc, sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN); + sc->sc_arpcom.ac_enaddr[5] += pa->pa_device; rv = 0; } break; |