summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-11-11 07:36:14 +0000
committerru <ru@FreeBSD.org>2005-11-11 07:36:14 +0000
commited1132ceab2c722cdbb8d3cf5a717b07ee5ff2c0 (patch)
tree4d7e562715c0e571dbcf93217dd79abe8f2fb3dd /sys/contrib
parent1ec898f53b484ad30595658bdf47c994728abe50 (diff)
downloadFreeBSD-src-ed1132ceab2c722cdbb8d3cf5a717b07ee5ff2c0.zip
FreeBSD-src-ed1132ceab2c722cdbb8d3cf5a717b07ee5ff2c0.tar.gz
- Make IFP2ENADDR() a pointer to IF_LLADDR() rather than another
copy of Ethernet address. - Change iso88025_ifattach() and fddi_ifattach() to accept MAC address as an argument, similar to ether_ifattach(), to make this work.
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/dev/oltr/if_oltr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/contrib/dev/oltr/if_oltr.c b/sys/contrib/dev/oltr/if_oltr.c
index ced116c..b68c355 100644
--- a/sys/contrib/dev/oltr/if_oltr.c
+++ b/sys/contrib/dev/oltr/if_oltr.c
@@ -173,7 +173,6 @@ oltr_attach(device_t dev)
ifp->if_ioctl = oltr_ioctl;
ifp->if_flags = IFF_BROADCAST | IFF_NEEDSGIANT;
ifp->if_snd.ifq_maxlen = IFQ_MAXLEN;
- bcopy(sc->config.macaddress, IFP2ENADDR(sc->ifp), sizeof(sc->config.macaddress));
/*
* Do ifmedia setup.
@@ -203,7 +202,7 @@ oltr_attach(device_t dev)
* Attach the interface
*/
- iso88025_ifattach(ifp, ISO88025_BPF_SUPPORTED);
+ iso88025_ifattach(ifp, sc->config.macaddress, ISO88025_BPF_SUPPORTED);
return(0);
}
OpenPOWER on IntegriCloud