Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ppp_async.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/skbuff.h>
#include <linux/tty.h>
#include <linux/netdevice.h>
#include <linux/poll.h>
#include <linux/crc-ccitt.h>
#include <linux/ppp_defs.h>
#include <linux/ppp-ioctl.h>
#include <linux/ppp_channel.h>
#include <linux/spinlock.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/jiffies.h>
#include <linux/slab.h>
#include <asm/unaligned.h>
#include <asm/uaccess.h>
#include <asm/string.h>

Go to the source code of this file.

Data Structures

struct  asyncppp
 

Macros

#define PPP_VERSION   "2.4.2"
 
#define OBUFSIZE   4096
 
#define XMIT_WAKEUP   0
 
#define XMIT_FULL   1
 
#define XMIT_BUSY   2
 
#define SC_TOSS   1
 
#define SC_ESCAPE   2
 
#define SC_PREV_ERROR   4
 
#define SC_RCV_BITS   (SC_RCV_B7_1|SC_RCV_B7_0|SC_RCV_ODDP|SC_RCV_EVNP)
 
#define PUT_BYTE(ap, buf, c, islcp)
 
#define CONFREQ   1 /* LCP code field values */
 
#define CONFACK   2
 
#define LCP_MRU   1 /* LCP option numbers */
 
#define LCP_ASYNCMAP   2
 

Functions

 module_param (flag_time, int, 0)
 
 MODULE_PARM_DESC (flag_time,"ppp_async: interval between flagged packets (in clock ticks)")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_LDISC (N_PPP)
 
 module_init (ppp_async_init)
 
 module_exit (ppp_async_cleanup)
 

Macro Definition Documentation

#define CONFACK   2

Definition at line 951 of file ppp_async.c.

#define CONFREQ   1 /* LCP code field values */

Definition at line 950 of file ppp_async.c.

#define LCP_ASYNCMAP   2

Definition at line 953 of file ppp_async.c.

#define LCP_MRU   1 /* LCP option numbers */

Definition at line 952 of file ppp_async.c.

#define OBUFSIZE   4096

Definition at line 42 of file ppp_async.c.

#define PPP_VERSION   "2.4.2"

Definition at line 40 of file ppp_async.c.

#define PUT_BYTE (   ap,
  buf,
  c,
  islcp 
)
Value:
do { \
if ((islcp && c < 0x20) || (ap->xaccm[c >> 5] & (1 << (c & 0x1f)))) {\
*buf++ = PPP_ESCAPE; \
*buf++ = c ^ PPP_TRANS; \
} else \
*buf++ = c; \
} while (0)

Definition at line 524 of file ppp_async.c.

#define SC_ESCAPE   2

Definition at line 85 of file ppp_async.c.

#define SC_PREV_ERROR   4

Definition at line 86 of file ppp_async.c.

#define SC_RCV_BITS   (SC_RCV_B7_1|SC_RCV_B7_0|SC_RCV_ODDP|SC_RCV_EVNP)

Definition at line 89 of file ppp_async.c.

#define SC_TOSS   1

Definition at line 84 of file ppp_async.c.

#define XMIT_BUSY   2

Definition at line 81 of file ppp_async.c.

#define XMIT_FULL   1

Definition at line 80 of file ppp_async.c.

#define XMIT_WAKEUP   0

Definition at line 79 of file ppp_async.c.

Function Documentation

MODULE_ALIAS_LDISC ( N_PPP  )
module_exit ( ppp_async_cleanup  )
module_init ( ppp_async_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( flag_time  ,
int  ,
 
)
MODULE_PARM_DESC ( flag_time  ,
"ppp_async: interval between flagged packets (in clock ticks)"   
)