PPP: Add option to skip FCS table

Option PPP_FCS_TABLE is created which controls if PPPoS FCS calculation
should be done against precalculated table or by using a short algorithm.

Default value is 1, keeps old behaviour.
Setting it to 0 saves around 0.5 kB flash.
This commit is contained in:
Erik Ekman
2012-06-23 15:11:49 +02:00
committed by Sylvain Rochet
parent ba0c619844
commit 11a3057e8e
3 changed files with 27 additions and 2 deletions

View File

@@ -1703,6 +1703,13 @@
#if PPP_SUPPORT
/**
* PPP_FCS_TABLE: Keep a 256*2 byte table to speed up FCS calculation
*/
#ifndef PPP_FCS_TABLE
#define PPP_FCS_TABLE 1
#endif
/**
* PAP_SUPPORT==1: Support PAP.
*/