Re: ether_crc32_[bl]e()
From: M. Warner Losh (imp_at_bsdimp.com)
Date: 05/31/04
- Previous message: M. Warner Losh: "Re: ether_crc32_[bl]e()"
- In reply to: Christian Weisgerber: "ether_crc32_[bl]e()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 31 May 2004 11:29:17 -0600 (MDT) To: naddy@mips.inka.de
In message: <c9d9u3$o6k$1@kemoauc.mips.inka.de>
naddy@mips.inka.de (Christian Weisgerber) writes:
: NetBSD and OpenBSD have two helper functions in if_ethersubr.c
:
: ether_crc32_le(const u_int8_t *buf, size_t len)
------------------------^^^^^^^^ uint8_t
: ether_crc32_be(const u_int8_t *buf, size_t len)
------------------------^^^^^^^^ uint8_t
: These CRCs are used all over our network drivers, e.g. for setting
: up multicast hash filters. Functions to calculate them are duplicated
: all over. These could be factored out of some thirty drivers.
: NetBSD has done so, btw.
...
The other comment that I have about this stuff is to make sure that if
you are directly copying these routines form somewhere, you make sure
that you give proper credit in the if_ethersubr.c file.
: +ether_crc32_be(const u_int8_t *buf, size_t len)
------------------------^^^^^^^^ uint8_t
Warner
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: M. Warner Losh: "Re: ether_crc32_[bl]e()"
- In reply to: Christian Weisgerber: "ether_crc32_[bl]e()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]