Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Aug 2012 09:34:42 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>, freebsd-net@freebsd.org, Mitya <mitya@cabletv.dp.ua>, freebsd-hackers@freebsd.org
Subject:   Re: Replace bcopy() to update ether_addr
Message-ID:  <CAJ-VmokQLD6YgyrsOyez=3cLm4Q8jZOnJ9vo4Wq3sjRu%2BG-E7A@mail.gmail.com>
In-Reply-To: <420BA06C-C776-47DB-B3BB-F1414C115F99@bsdimp.com>
References:  <50324DB4.6080905@cabletv.dp.ua> <alpine.BSF.2.00.1208201844220.35173@wojtek.tensor.gdynia.pl> <B2BB7724-57A9-40C9-AE9F-FFEC83D9DE9A@bsdimp.com> <alpine.BSF.2.00.1208202117230.19372@wojtek.tensor.gdynia.pl> <5452BF37-3658-4C1F-B965-CE3EA28B6EA5@bsdimp.com> <alpine.BSF.2.00.1208210942150.33814@wojtek.tensor.gdynia.pl> <420BA06C-C776-47DB-B3BB-F1414C115F99@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

What about just creating an ETHER_ADDR_COPY(dst, src) and putting that
in a relevant include file, then hide the ugliness there?

The same benefits will likely appear when copying wifi MAC addresses
to/from headers.

Thanks, I'm glad someone noticed this.




Adrian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmokQLD6YgyrsOyez=3cLm4Q8jZOnJ9vo4Wq3sjRu%2BG-E7A>