diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ppp_defs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/ppp_defs.h b/include/linux/ppp_defs.h index fde9fa21107b..58c71466a726 100644 --- a/include/linux/ppp_defs.h +++ b/include/linux/ppp_defs.h @@ -42,6 +42,8 @@ #ifndef _PPP_DEFS_H_ #define _PPP_DEFS_H_ +#include <linux/crc16.h> + /* * The basic PPP frame. */ @@ -95,7 +97,7 @@ #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) crc16_byte(fcs, c) /* * Extended asyncmap - allows any character to be escaped. |
