Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
hdlc_fr.c File Reference
#include <linux/errno.h>
#include <linux/etherdevice.h>
#include <linux/hdlc.h>
#include <linux/if_arp.h>
#include <linux/inetdevice.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pkt_sched.h>
#include <linux/poll.h>
#include <linux/rtnetlink.h>
#include <linux/skbuff.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  __packed
 
struct  pvc_device_struct
 
struct  frad_state
 

Macros

#define FR_UI   0x03
 
#define FR_PAD   0x00
 
#define NLPID_IP   0xCC
 
#define NLPID_IPV6   0x8E
 
#define NLPID_SNAP   0x80
 
#define NLPID_PAD   0x00
 
#define NLPID_CCITT_ANSI_LMI   0x08
 
#define NLPID_CISCO_LMI   0x09
 
#define LMI_CCITT_ANSI_DLCI   0 /* LMI DLCI */
 
#define LMI_CISCO_DLCI   1023
 
#define LMI_CALLREF   0x00 /* Call Reference */
 
#define LMI_ANSI_LOCKSHIFT   0x95 /* ANSI locking shift */
 
#define LMI_ANSI_CISCO_REPTYPE   0x01 /* report type */
 
#define LMI_CCITT_REPTYPE   0x51
 
#define LMI_ANSI_CISCO_ALIVE   0x03 /* keep alive */
 
#define LMI_CCITT_ALIVE   0x53
 
#define LMI_ANSI_CISCO_PVCSTAT   0x07 /* PVC status */
 
#define LMI_CCITT_PVCSTAT   0x57
 
#define LMI_FULLREP   0x00 /* full report */
 
#define LMI_INTEGRITY   0x01 /* link integrity report */
 
#define LMI_SINGLE   0x02 /* single PVC report */
 
#define LMI_STATUS_ENQUIRY   0x75
 
#define LMI_STATUS   0x7D /* reply */
 
#define LMI_REPT_LEN   1 /* report type element length */
 
#define LMI_INTEG_LEN   2 /* link integrity element length */
 
#define LMI_CCITT_CISCO_LENGTH   13 /* LMI frame lengths */
 
#define LMI_ANSI_LENGTH   14
 

Typedefs

typedef struct pvc_device_struct pvc_device
 

Functions

 module_init (mod_init)
 
 module_exit (mod_exit)
 
 MODULE_AUTHOR ("Krzysztof Halasa <khc@pm.waw.pl>")
 
 MODULE_DESCRIPTION ("Frame-Relay protocol support for generic HDLC")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define FR_PAD   0x00

Definition at line 57 of file hdlc_fr.c.

#define FR_UI   0x03

Definition at line 56 of file hdlc_fr.c.

#define LMI_ANSI_CISCO_ALIVE   0x03 /* keep alive */

Definition at line 74 of file hdlc_fr.c.

#define LMI_ANSI_CISCO_PVCSTAT   0x07 /* PVC status */

Definition at line 76 of file hdlc_fr.c.

#define LMI_ANSI_CISCO_REPTYPE   0x01 /* report type */

Definition at line 72 of file hdlc_fr.c.

#define LMI_ANSI_LENGTH   14

Definition at line 90 of file hdlc_fr.c.

#define LMI_ANSI_LOCKSHIFT   0x95 /* ANSI locking shift */

Definition at line 71 of file hdlc_fr.c.

#define LMI_CALLREF   0x00 /* Call Reference */

Definition at line 70 of file hdlc_fr.c.

#define LMI_CCITT_ALIVE   0x53

Definition at line 75 of file hdlc_fr.c.

#define LMI_CCITT_ANSI_DLCI   0 /* LMI DLCI */

Definition at line 67 of file hdlc_fr.c.

#define LMI_CCITT_CISCO_LENGTH   13 /* LMI frame lengths */

Definition at line 89 of file hdlc_fr.c.

#define LMI_CCITT_PVCSTAT   0x57

Definition at line 77 of file hdlc_fr.c.

#define LMI_CCITT_REPTYPE   0x51

Definition at line 73 of file hdlc_fr.c.

#define LMI_CISCO_DLCI   1023

Definition at line 68 of file hdlc_fr.c.

#define LMI_FULLREP   0x00 /* full report */

Definition at line 79 of file hdlc_fr.c.

#define LMI_INTEG_LEN   2 /* link integrity element length */

Definition at line 87 of file hdlc_fr.c.

#define LMI_INTEGRITY   0x01 /* link integrity report */

Definition at line 80 of file hdlc_fr.c.

#define LMI_REPT_LEN   1 /* report type element length */

Definition at line 86 of file hdlc_fr.c.

#define LMI_SINGLE   0x02 /* single PVC report */

Definition at line 81 of file hdlc_fr.c.

#define LMI_STATUS   0x7D /* reply */

Definition at line 84 of file hdlc_fr.c.

#define LMI_STATUS_ENQUIRY   0x75

Definition at line 83 of file hdlc_fr.c.

#define NLPID_CCITT_ANSI_LMI   0x08

Definition at line 63 of file hdlc_fr.c.

#define NLPID_CISCO_LMI   0x09

Definition at line 64 of file hdlc_fr.c.

#define NLPID_IP   0xCC

Definition at line 59 of file hdlc_fr.c.

#define NLPID_IPV6   0x8E

Definition at line 60 of file hdlc_fr.c.

#define NLPID_PAD   0x00

Definition at line 62 of file hdlc_fr.c.

#define NLPID_SNAP   0x80

Definition at line 61 of file hdlc_fr.c.

Typedef Documentation

Function Documentation

MODULE_AUTHOR ( "Krzysztof Halasa <khc@pm.waw.pl>"  )
MODULE_DESCRIPTION ( "Frame-Relay protocol support for generic HDLC"  )
module_exit ( mod_exit  )
module_init ( mod_init  )
MODULE_LICENSE ( "GPL v2 )