Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
layer2.h File Reference
#include <linux/mISDNif.h>
#include <linux/skbuff.h>
#include "fsm.h"

Go to the source code of this file.

Data Structures

struct  manager
 
struct  teimgr
 
struct  laddr
 
struct  layer2
 

Macros

#define MAX_WINDOW   8
 
#define L2_STATE_COUNT   (ST_L2_8 + 1)
 
#define MAX_L2HEADER_LEN   4
 
#define RR   0x01
 
#define RNR   0x05
 
#define REJ   0x09
 
#define SABME   0x6f
 
#define SABM   0x2f
 
#define DM   0x0f
 
#define UI   0x03
 
#define DISC   0x43
 
#define UA   0x63
 
#define FRMR   0x87
 
#define XID   0xaf
 
#define CMD   0
 
#define RSP   1
 
#define LC_FLUSH_WAIT   1
 
#define FLG_LAPB   0
 
#define FLG_LAPD   1
 
#define FLG_ORIG   2
 
#define FLG_MOD128   3
 
#define FLG_PEND_REL   4
 
#define FLG_L3_INIT   5
 
#define FLG_T200_RUN   6
 
#define FLG_ACK_PEND   7
 
#define FLG_REJEXC   8
 
#define FLG_OWN_BUSY   9
 
#define FLG_PEER_BUSY   10
 
#define FLG_DCHAN_BUSY   11
 
#define FLG_L1_ACTIV   12
 
#define FLG_ESTAB_PEND   13
 
#define FLG_PTP   14
 
#define FLG_FIXED_TEI   15
 
#define FLG_L2BLOCK   16
 
#define FLG_L1_NOTREADY   17
 
#define FLG_LAPD_NET   18
 

Enumerations

enum  {
  ST_L2_1, ST_L2_2, ST_L2_3, ST_L2_4,
  ST_L2_5, ST_L2_6, ST_L2_7, ST_L2_8
}
 

Functions

struct layer2create_l2 (struct mISDNchannel *, u_int, u_long, int, int)
 
int tei_l2 (struct layer2 *, u_int, u_long arg)
 
int l2_tei (struct layer2 *, u_int, u_long arg)
 
void TEIrelease (struct layer2 *)
 
int TEIInit (u_int *)
 
void TEIFree (void)
 

Macro Definition Documentation

#define CMD   0

Definition at line 117 of file layer2.h.

#define DISC   0x43

Definition at line 112 of file layer2.h.

#define DM   0x0f

Definition at line 110 of file layer2.h.

#define FLG_ACK_PEND   7

Definition at line 129 of file layer2.h.

#define FLG_DCHAN_BUSY   11

Definition at line 133 of file layer2.h.

#define FLG_ESTAB_PEND   13

Definition at line 135 of file layer2.h.

#define FLG_FIXED_TEI   15

Definition at line 137 of file layer2.h.

#define FLG_L1_ACTIV   12

Definition at line 134 of file layer2.h.

#define FLG_L1_NOTREADY   17

Definition at line 139 of file layer2.h.

#define FLG_L2BLOCK   16

Definition at line 138 of file layer2.h.

#define FLG_L3_INIT   5

Definition at line 127 of file layer2.h.

#define FLG_LAPB   0

Definition at line 122 of file layer2.h.

#define FLG_LAPD   1

Definition at line 123 of file layer2.h.

#define FLG_LAPD_NET   18

Definition at line 140 of file layer2.h.

#define FLG_MOD128   3

Definition at line 125 of file layer2.h.

#define FLG_ORIG   2

Definition at line 124 of file layer2.h.

#define FLG_OWN_BUSY   9

Definition at line 131 of file layer2.h.

#define FLG_PEER_BUSY   10

Definition at line 132 of file layer2.h.

#define FLG_PEND_REL   4

Definition at line 126 of file layer2.h.

#define FLG_PTP   14

Definition at line 136 of file layer2.h.

#define FLG_REJEXC   8

Definition at line 130 of file layer2.h.

#define FLG_T200_RUN   6

Definition at line 128 of file layer2.h.

#define FRMR   0x87

Definition at line 114 of file layer2.h.

#define L2_STATE_COUNT   (ST_L2_8 + 1)

Definition at line 90 of file layer2.h.

#define LC_FLUSH_WAIT   1

Definition at line 120 of file layer2.h.

#define MAX_L2HEADER_LEN   4

Definition at line 103 of file layer2.h.

#define MAX_WINDOW   8

Definition at line 21 of file layer2.h.

#define REJ   0x09

Definition at line 107 of file layer2.h.

#define RNR   0x05

Definition at line 106 of file layer2.h.

#define RR   0x01

Definition at line 105 of file layer2.h.

#define RSP   1

Definition at line 118 of file layer2.h.

#define SABM   0x2f

Definition at line 109 of file layer2.h.

#define SABME   0x6f

Definition at line 108 of file layer2.h.

#define UA   0x63

Definition at line 113 of file layer2.h.

#define UI   0x03

Definition at line 111 of file layer2.h.

#define XID   0xaf

Definition at line 115 of file layer2.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
ST_L2_1 
ST_L2_2 
ST_L2_3 
ST_L2_4 
ST_L2_5 
ST_L2_6 
ST_L2_7 
ST_L2_8 

Definition at line 79 of file layer2.h.

Function Documentation

struct layer2* create_l2 ( struct mISDNchannel *  ,
u_int  ,
u_long  ,
int  ,
int   
)
read

Definition at line 2134 of file layer2.c.

int l2_tei ( struct layer2 ,
u_int  ,
u_long  arg 
)

Definition at line 943 of file tei.c.

int tei_l2 ( struct layer2 ,
u_int  ,
u_long  arg 
)

Definition at line 2060 of file layer2.c.

void TEIFree ( void  )

Definition at line 1409 of file tei.c.

int TEIInit ( u_int )

Definition at line 1388 of file tei.c.

void TEIrelease ( struct layer2 )

Definition at line 978 of file tei.c.