diff options
author | naddy <naddy@FreeBSD.org> | 2004-06-02 21:34:14 +0000 |
---|---|---|
committer | naddy <naddy@FreeBSD.org> | 2004-06-02 21:34:14 +0000 |
commit | 00ef0952615323d2902cc53eba57204553d65c76 (patch) | |
tree | 78c74dce0325352d0d283b6fd918081622ada4cf /sys/net/ethernet.h | |
parent | f53d93d179b368c4c403823d034302b594307b2d (diff) | |
download | FreeBSD-src-00ef0952615323d2902cc53eba57204553d65c76.zip FreeBSD-src-00ef0952615323d2902cc53eba57204553d65c76.tar.gz |
Add helper functions to calculate the standard ethernet CRC in
little/big endian fashion, so that network drivers can just reference
the standard implementation and don't have to bring their own.
As discussed on arch@.
Obtained from: NetBSD
Diffstat (limited to 'sys/net/ethernet.h')
-rw-r--r-- | sys/net/ethernet.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/ethernet.h b/sys/net/ethernet.h index f804591..27fb6d5 100644 --- a/sys/net/ethernet.h +++ b/sys/net/ethernet.h @@ -350,6 +350,8 @@ struct mbuf; struct rtentry; struct sockaddr; +extern uint32_t ether_crc32_le(const uint8_t *, size_t); +extern uint32_t ether_crc32_be(const uint8_t *, size_t); extern void ether_demux(struct ifnet *, struct mbuf *); extern void ether_ifattach(struct ifnet *, const u_int8_t *); extern void ether_ifdetach(struct ifnet *); |