diff options
author | imp <imp@FreeBSD.org> | 2003-11-14 05:37:36 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-11-14 05:37:36 +0000 |
commit | 382926743881c33491c3c90190a5ac047ea2e500 (patch) | |
tree | 8ae860e3772316e25d577b33c69eec0168107756 /sys/dev/sn/if_sn.c | |
parent | 11c86098de710d000139839ef17b5f7bc8ea711c (diff) | |
download | FreeBSD-src-382926743881c33491c3c90190a5ac047ea2e500.zip FreeBSD-src-382926743881c33491c3c90190a5ac047ea2e500.tar.gz |
Reconst-poison crc routine that was renamed to mchash.
re-remove the _ in u_intXX_t
Diffstat (limited to 'sys/dev/sn/if_sn.c')
-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 90a3d46..1768b6d 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 */ |