$OpenBSD: patch-util_h,v 1.1 2006/11/01 21:13:20 kili Exp $

# From upstream SVN.

--- util.h.orig	Wed Jun 15 23:54:08 2005
+++ util.h	Fri Oct 20 15:38:06 2006
@@ -91,4 +91,11 @@ int FetchSysLoadAvg(uint8_t *in_avgmaj, 
 // Adler-32 checksum
 uint32_t Adler32Checksum(char *buf1, int len);
 
+// 802.11 checksum functions, extracted from the BBN USRP code
+#define IEEE_802_3_CRC32_POLY	0xEDB88320
+unsigned int update_crc32_80211(unsigned int crc, const unsigned char *data,
+								int len, unsigned int poly);
+void crc32_init_table_80211(unsigned int *crc32_table);
+unsigned int crc32_le_80211(unsigned int *crc32_table, const unsigned char *buf, int len);
+
 #endif
