mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Constify iso88025_broadcastaddr to make it clear no explicit
synchronization is required.
This commit is contained in:
parent
2d3b3d66b4
commit
5a78f313fb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126907
@ -79,7 +79,7 @@
|
||||
#include <netipx/ipx_if.h>
|
||||
#endif
|
||||
|
||||
static u_char iso88025_broadcastaddr[ISO88025_ADDR_LEN] =
|
||||
static const u_char iso88025_broadcastaddr[ISO88025_ADDR_LEN] =
|
||||
{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
|
||||
|
||||
static int iso88025_resolvemulti (struct ifnet *, struct sockaddr **,
|
||||
@ -498,8 +498,8 @@ iso88025_input(ifp, m)
|
||||
* Set mbuf flags for bcast/mcast.
|
||||
*/
|
||||
if (th->iso88025_dhost[0] & 1) {
|
||||
if (bcmp((caddr_t)iso88025_broadcastaddr,
|
||||
(caddr_t)th->iso88025_dhost, ISO88025_ADDR_LEN) == 0)
|
||||
if (bcmp(iso88025_broadcastaddr, th->iso88025_dhost,
|
||||
ISO88025_ADDR_LEN) == 0)
|
||||
m->m_flags |= M_BCAST;
|
||||
else
|
||||
m->m_flags |= M_MCAST;
|
||||
|
Loading…
Reference in New Issue
Block a user