diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-01-07 02:33:00 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1997-01-07 02:33:00 +0000 |
commit | beb116954b9b7f3bb56412b2494b562f02b864b1 (patch) | |
tree | 120e997879884e1b9d93b265221b939d2ef1ade1 /drivers/net/slip.h | |
parent | 908d4681a1dc3792ecafbe64265783a86c4cccb6 (diff) |
Import of Linux/MIPS 2.1.14
Diffstat (limited to 'drivers/net/slip.h')
-rw-r--r-- | drivers/net/slip.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/drivers/net/slip.h b/drivers/net/slip.h index efeff53d0..4d6a9e2e0 100644 --- a/drivers/net/slip.h +++ b/drivers/net/slip.h @@ -12,6 +12,10 @@ * Alan Cox : Added SL_SLIP_LOTS * Dmitry Gorodchanin : A lot of changes in the 'struct slip' * Dmitry Gorodchanin : Added CSLIP statistics. + * Stanislav Voronyi : Make line checking as created by + * Igor Chechik, RELCOM Corp. + * Craig Schlenter : Fixed #define bug that caused + * CSLIP telnets to hang in 1.3.61-6 * * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> */ @@ -31,11 +35,9 @@ #endif /* SLIP configuration. */ -#ifndef SL_SLIP_LOTS -#define SL_NRUNIT 4 /* number of SLIP channels */ -#else -#define SL_NRUNIT 16 -#endif +#define SL_NRUNIT 256 /* MAX number of SLIP channels; + This can be overridden with + insmod -oslip_maxdev=nnn */ #define SL_MTU 296 /* 296; I am used to 600- FvK */ /* SLIP protocol characters. */ @@ -89,6 +91,8 @@ struct slip { #define SLF_INUSE 0 /* Channel in use */ #define SLF_ESCAPE 1 /* ESC received */ #define SLF_ERROR 2 /* Parity, etc. error */ +#define SLF_KEEPTEST 3 /* Keepalive test flag */ +#define SLF_OUTWAIT 4 /* is outpacket was flag */ unsigned char mode; /* SLIP mode */ #define SL_MODE_SLIP 0 @@ -97,7 +101,12 @@ struct slip { #define SL_MODE_CSLIP6 (SL_MODE_SLIP6|SL_MODE_CSLIP) #define SL_MODE_AX25 4 #define SL_MODE_ADAPTIVE 8 -#define SL_MODE_AX25VC 16 +#ifdef CONFIG_SLIP_SMART + unsigned char outfill; /* # of sec between outfill packet */ + unsigned char keepalive; /* keepalive seconds */ + struct timer_list outfill_timer; + struct timer_list keepalive_timer; +#endif }; |