Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
pptp.c File Reference
#include <linux/string.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/netdevice.h>
#include <linux/net.h>
#include <linux/skbuff.h>
#include <linux/vmalloc.h>
#include <linux/init.h>
#include <linux/ppp_channel.h>
#include <linux/ppp_defs.h>
#include <linux/if_pppox.h>
#include <linux/ppp-ioctl.h>
#include <linux/notifier.h>
#include <linux/file.h>
#include <linux/in.h>
#include <linux/ip.h>
#include <linux/netfilter.h>
#include <linux/netfilter_ipv4.h>
#include <linux/rcupdate.h>
#include <linux/spinlock.h>
#include <net/sock.h>
#include <net/protocol.h>
#include <net/ip.h>
#include <net/icmp.h>
#include <net/route.h>
#include <net/gre.h>
#include <linux/uaccess.h>

Go to the source code of this file.

Data Structures

struct  pptp_gre_header
 

Macros

#define PPTP_DRIVER_VERSION   "0.8.5"
 
#define MAX_CALLID   65535
 
#define PPP_LCP_ECHOREQ   0x09
 
#define PPP_LCP_ECHOREP   0x0A
 
#define SC_RCV_BITS   (SC_RCV_B7_1|SC_RCV_B7_0|SC_RCV_ODDP|SC_RCV_EVNP)
 
#define MISSING_WINDOW   20
 
#define WRAPPED(curseq, lastseq)
 
#define PPTP_GRE_PROTO   0x880B
 
#define PPTP_GRE_VER   0x1
 
#define PPTP_GRE_FLAG_C   0x80
 
#define PPTP_GRE_FLAG_R   0x40
 
#define PPTP_GRE_FLAG_K   0x20
 
#define PPTP_GRE_FLAG_S   0x10
 
#define PPTP_GRE_FLAG_A   0x80
 
#define PPTP_GRE_IS_C(f)   ((f)&PPTP_GRE_FLAG_C)
 
#define PPTP_GRE_IS_R(f)   ((f)&PPTP_GRE_FLAG_R)
 
#define PPTP_GRE_IS_K(f)   ((f)&PPTP_GRE_FLAG_K)
 
#define PPTP_GRE_IS_S(f)   ((f)&PPTP_GRE_FLAG_S)
 
#define PPTP_GRE_IS_A(f)   ((f)&PPTP_GRE_FLAG_A)
 
#define PPTP_HEADER_OVERHEAD   (2+sizeof(struct pptp_gre_header))
 

Functions

 module_init (pptp_init_module)
 
 module_exit (pptp_exit_module)
 
 MODULE_DESCRIPTION ("Point-to-Point Tunneling Protocol")
 
 MODULE_AUTHOR ("D. Kozlov ([email protected])")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct pptp_gre_header __packed
 

Macro Definition Documentation

#define MAX_CALLID   65535

Definition at line 47 of file pptp.c.

#define MISSING_WINDOW   20

Definition at line 62 of file pptp.c.

#define PPP_LCP_ECHOREP   0x0A

Definition at line 59 of file pptp.c.

#define PPP_LCP_ECHOREQ   0x09

Definition at line 58 of file pptp.c.

#define PPTP_DRIVER_VERSION   "0.8.5"

Definition at line 45 of file pptp.c.

#define PPTP_GRE_FLAG_A   0x80

Definition at line 74 of file pptp.c.

#define PPTP_GRE_FLAG_C   0x80

Definition at line 70 of file pptp.c.

#define PPTP_GRE_FLAG_K   0x20

Definition at line 72 of file pptp.c.

#define PPTP_GRE_FLAG_R   0x40

Definition at line 71 of file pptp.c.

#define PPTP_GRE_FLAG_S   0x10

Definition at line 73 of file pptp.c.

#define PPTP_GRE_IS_A (   f)    ((f)&PPTP_GRE_FLAG_A)

Definition at line 80 of file pptp.c.

#define PPTP_GRE_IS_C (   f)    ((f)&PPTP_GRE_FLAG_C)

Definition at line 76 of file pptp.c.

#define PPTP_GRE_IS_K (   f)    ((f)&PPTP_GRE_FLAG_K)

Definition at line 78 of file pptp.c.

#define PPTP_GRE_IS_R (   f)    ((f)&PPTP_GRE_FLAG_R)

Definition at line 77 of file pptp.c.

#define PPTP_GRE_IS_S (   f)    ((f)&PPTP_GRE_FLAG_S)

Definition at line 79 of file pptp.c.

#define PPTP_GRE_PROTO   0x880B

Definition at line 67 of file pptp.c.

#define PPTP_GRE_VER   0x1

Definition at line 68 of file pptp.c.

#define PPTP_HEADER_OVERHEAD   (2+sizeof(struct pptp_gre_header))

Definition at line 82 of file pptp.c.

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

Definition at line 60 of file pptp.c.

#define WRAPPED (   curseq,
  lastseq 
)
Value:
((((curseq) & 0xffffff00) == 0) &&\
(((lastseq) & 0xffffff00) == 0xffffff00))

Definition at line 63 of file pptp.c.

Function Documentation

MODULE_AUTHOR ( "D. Kozlov ([email protected])"  )
MODULE_DESCRIPTION ( "Point-to-Point Tunneling Protocol )
module_exit ( pptp_exit_module  )
module_init ( pptp_init_module  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation