diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-12-23 09:16:12 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-12-23 09:16:12 +0000 |
commit | 38c6126cf6f646f08d440afc08a6a72b9b1129d2 (patch) | |
tree | 49990f594a72ebf33c6c01347114cfb88ae4f040 /sys/dev | |
parent | 06fcefd7ba7b6074f7dd303eb5b5a2b596ca4264 (diff) |
init ether address correctly, since our Ether_ifattach macro does not do
that job; 3612, rspmn@arcor.de
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/if_url.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/if_url.c b/sys/dev/usb/if_url.c index 505721efc91..eb249cb05b0 100644 --- a/sys/dev/usb/if_url.c +++ b/sys/dev/usb/if_url.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_url.c,v 1.12 2003/12/15 23:36:14 cedric Exp $ */ +/* $OpenBSD: if_url.c,v 1.13 2003/12/23 09:16:11 deraadt Exp $ */ /* $NetBSD: if_url.c,v 1.6 2002/09/29 10:19:21 martin Exp $ */ /* * Copyright (c) 2001, 2002 @@ -283,6 +283,9 @@ USB_ATTACH(url) /* Print Ethernet Address */ printf("%s: address %s\n", devname, ether_sprintf(eaddr)); +#if defined(__OpenBSD__) + bcopy(eaddr, (char *)&sc->sc_ac.ac_enaddr, ETHER_ADDR_LEN); +#endif /* initialize interface infomation */ ifp = GET_IFP(sc); ifp->if_softc = sc; |