Stefan Sperling wrote:
> On Sat, Sep 26, 2015 at 03:37:22PM +0200, Stefan Sperling wrote:
> > This diff fixes the issue for me.
>
> Same diff, + my uncommitted mac context diff from
> http://marc.info/?l=openbsd-tech&m=144294310002198&w=2
>
> Also adds a tweak to the ioctl handler which finally fixes
> ifconfig iwm0 lladdr random
> This depends on the etheranyaddr changes of the bsd.rd fix diff.
> +if_setlladdr(struct ifnet *ifp, caddr_t lladdr)
> +{
> + struct sockaddr_dl *sdl;
> +
> + sdl = (struct sockaddr_dl *)ifp->if_sadl;
> + if (sdl == NULL)
> + return (EINVAL);
> +
> + bcopy(lladdr, (caddr_t)((struct arpcom *)ifp)->ac_enaddr,
> + ETHER_ADDR_LEN);
> + bcopy(lladdr, LLADDR(sdl), ETHER_ADDR_LEN);
can we please use memcpy in new code?