aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/sgsn/crc24.h
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-09-04 15:13:25 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2017-09-06 16:47:47 +0200
commit396f2e69a047f461e2fcabae4c1f9990730289a3 (patch)
tree88a5843f3dcfb30a010e14289a829adf0e30af8f /include/osmocom/sgsn/crc24.h
parent2c17747c1b470118195518452860c3a3cae946dd (diff)
move include/openbsc to include/osmocom/sgsn
Diffstat (limited to 'include/osmocom/sgsn/crc24.h')
-rw-r--r--include/osmocom/sgsn/crc24.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/osmocom/sgsn/crc24.h b/include/osmocom/sgsn/crc24.h
new file mode 100644
index 000000000..756638c03
--- /dev/null
+++ b/include/osmocom/sgsn/crc24.h
@@ -0,0 +1,10 @@
+#ifndef _CRC24_H
+#define _CRC24_H
+
+#include <stdint.h>
+
+#define INIT_CRC24 0xffffff
+
+uint32_t crc24_calc(uint32_t fcs, uint8_t *cp, unsigned int len);
+
+#endif