#ifndef _PPP_DEFS_H_
#define _PPP_DEFS_H_
+#include <linux/crc-ccitt.h>
+
/*
* The basic PPP frame.
*/
#define PPP_INITFCS 0xffff /* Initial FCS value */
#define PPP_GOODFCS 0xf0b8 /* Good final FCS value */
-#define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff])
+#define PPP_FCS(fcs, c) crc_ccitt_byte(fcs, c)
/*
* Extended asyncmap - allows any character to be escaped.