Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
lapb.h File Reference

Go to the source code of this file.

Data Structures

struct  lapb_register_struct
 
struct  lapb_parms_struct
 

Macros

#define LAPB_OK   0
 
#define LAPB_BADTOKEN   1
 
#define LAPB_INVALUE   2
 
#define LAPB_CONNECTED   3
 
#define LAPB_NOTCONNECTED   4
 
#define LAPB_REFUSED   5
 
#define LAPB_TIMEDOUT   6
 
#define LAPB_NOMEM   7
 
#define LAPB_STANDARD   0x00
 
#define LAPB_EXTENDED   0x01
 
#define LAPB_SLP   0x00
 
#define LAPB_MLP   0x02
 
#define LAPB_DTE   0x00
 
#define LAPB_DCE   0x04
 

Functions

int lapb_register (struct net_device *dev, const struct lapb_register_struct *callbacks)
 
int lapb_unregister (struct net_device *dev)
 
int lapb_getparms (struct net_device *dev, struct lapb_parms_struct *parms)
 
int lapb_setparms (struct net_device *dev, struct lapb_parms_struct *parms)
 
int lapb_connect_request (struct net_device *dev)
 
int lapb_disconnect_request (struct net_device *dev)
 
int lapb_data_request (struct net_device *dev, struct sk_buff *skb)
 
int lapb_data_received (struct net_device *dev, struct sk_buff *skb)
 

Macro Definition Documentation

#define LAPB_BADTOKEN   1

Definition at line 9 of file lapb.h.

#define LAPB_CONNECTED   3

Definition at line 11 of file lapb.h.

#define LAPB_DCE   0x04

Definition at line 24 of file lapb.h.

#define LAPB_DTE   0x00

Definition at line 23 of file lapb.h.

#define LAPB_EXTENDED   0x01

Definition at line 18 of file lapb.h.

#define LAPB_INVALUE   2

Definition at line 10 of file lapb.h.

#define LAPB_MLP   0x02

Definition at line 21 of file lapb.h.

#define LAPB_NOMEM   7

Definition at line 15 of file lapb.h.

#define LAPB_NOTCONNECTED   4

Definition at line 12 of file lapb.h.

#define LAPB_OK   0

Definition at line 8 of file lapb.h.

#define LAPB_REFUSED   5

Definition at line 13 of file lapb.h.

#define LAPB_SLP   0x00

Definition at line 20 of file lapb.h.

#define LAPB_STANDARD   0x00

Definition at line 17 of file lapb.h.

#define LAPB_TIMEDOUT   6

Definition at line 14 of file lapb.h.

Function Documentation

int lapb_connect_request ( struct net_device dev)

Definition at line 266 of file lapb_iface.c.

int lapb_data_received ( struct net_device dev,
struct sk_buff skb 
)

Definition at line 359 of file lapb_iface.c.

int lapb_data_request ( struct net_device dev,
struct sk_buff skb 
)

Definition at line 338 of file lapb_iface.c.

int lapb_disconnect_request ( struct net_device dev)

Definition at line 294 of file lapb_iface.c.

int lapb_getparms ( struct net_device dev,
struct lapb_parms_struct parms 
)

Definition at line 199 of file lapb_iface.c.

int lapb_register ( struct net_device dev,
const struct lapb_register_struct callbacks 
)

Definition at line 143 of file lapb_iface.c.

int lapb_setparms ( struct net_device dev,
struct lapb_parms_struct parms 
)

Definition at line 231 of file lapb_iface.c.

int lapb_unregister ( struct net_device dev)

Definition at line 175 of file lapb_iface.c.