diff options
| author | Warner Losh <imp@FreeBSD.org> | 2003-11-14 05:37:36 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2003-11-14 05:37:36 +0000 |
| commit | 55e8a70c67b164f59f606581d01e58d963d43c80 (patch) | |
| tree | 8ae860e3772316e25d577b33c69eec0168107756 /sys/dev | |
| parent | 6f9e4d866dca96be626883cc7cfec1d1066bfb02 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/sn/if_sn.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/sn/if_sn.c b/sys/dev/sn/if_sn.c index 90a3d46180b9d..1768b6d22c879 100644 --- a/sys/dev/sn/if_sn.c +++ b/sys/dev/sn/if_sn.c @@ -134,7 +134,7 @@ static void snwatchdog(struct ifnet *); static void sn_setmcast(struct sn_softc *); static int sn_getmcf(struct arpcom *ac, u_char *mcf); -static u_int32_t sn_mchash(caddr_t); +static uint32_t sn_mchash(const uint8_t *addr); /* I (GB) have been unlucky getting the hardware padding * to work properly. @@ -1453,13 +1453,13 @@ sn_getmcf(struct arpcom *ac, uint8_t *mcf) return 1; /* use multicast filter */ } -static u_int32_t -sn_mchash(caddr_t addr) +static uint32_t +sn_mchash(const uint8_t *addr) { const uint32_t poly = 0xedb88320; - u_int32_t crc; + uint32_t crc; int idx, bit; - u_int8_t data; + uint8_t data; /* Compute CRC for the address value. */ crc = 0xFFFFFFFF; /* initial value */ |
