Module Name: src Committed By: mrg Date: Thu Feb 8 07:53:47 UTC 2018
Modified Files: src/sys/dev/pci: if_et.c Log Message: update for GCC 6: - fix an array bounds violation and pass the right address to ether_crc32_be(). (i assume this actually makes et(4) multicast work.) To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/dev/pci/if_et.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_et.c diff -u src/sys/dev/pci/if_et.c:1.15 src/sys/dev/pci/if_et.c:1.16 --- src/sys/dev/pci/if_et.c:1.15 Sat Jul 29 01:47:48 2017 +++ src/sys/dev/pci/if_et.c Thu Feb 8 07:53:47 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: if_et.c,v 1.15 2017/07/29 01:47:48 riastradh Exp $ */ +/* $NetBSD: if_et.c,v 1.16 2018/02/08 07:53:47 mrg Exp $ */ /* $OpenBSD: if_et.c,v 1.11 2008/06/08 06:18:07 jsg Exp $ */ /* * Copyright (c) 2007 The DragonFly Project. All rights reserved. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_et.c,v 1.15 2017/07/29 01:47:48 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_et.c,v 1.16 2018/02/08 07:53:47 mrg Exp $"); #include "opt_inet.h" #include "vlan.h" @@ -1224,8 +1224,7 @@ et_setmulti(struct et_softc *sc) addr[i] &= enm->enm_addrlo[i]; } - h = ether_crc32_be(LLADDR((struct sockaddr_dl *)addr), - ETHER_ADDR_LEN); + h = ether_crc32_be(addr, ETHER_ADDR_LEN); h = (h & 0x3f800000) >> 23; hp = &hash[0];