Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
llc_sap.h File Reference
#include <asm/types.h>

Go to the source code of this file.

Functions

void llc_sap_rtn_pdu (struct llc_sap *sap, struct sk_buff *skb)
 
void llc_save_primitive (struct sock *sk, struct sk_buff *skb, unsigned char prim)
 
struct sk_buffllc_alloc_frame (struct sock *sk, struct net_device *dev, u8 type, u32 data_size)
 
void llc_build_and_send_test_pkt (struct llc_sap *sap, struct sk_buff *skb, unsigned char *dmac, unsigned char dsap)
 
void llc_build_and_send_xid_pkt (struct llc_sap *sap, struct sk_buff *skb, unsigned char *dmac, unsigned char dsap)
 

Function Documentation

struct sk_buff* llc_alloc_frame ( struct sock sk,
struct net_device dev,
u8  type,
u32  data_size 
)
read

llc_alloc_frame - allocates sk_buff for frame : network device this skb will be sent over : pdu type to allocate : data size to allocate

Allocates an sk_buff for frame and initializes sk_buff fields. Returns allocated skb or NULL when out of memory.

Definition at line 47 of file llc_sap.c.

void llc_build_and_send_test_pkt ( struct llc_sap sap,
struct sk_buff skb,
u8 dmac,
u8  dsap 
)

llc_build_and_send_test_pkt - TEST interface for upper layers. : sap to use : packet to send : destination mac address : destination sap

This function is called when upper layer wants to send a TEST pdu. Returns 0 for success, 1 otherwise.

Definition at line 237 of file llc_sap.c.

void llc_build_and_send_xid_pkt ( struct llc_sap sap,
struct sk_buff skb,
u8 dmac,
u8  dsap 
)

llc_build_and_send_xid_pkt - XID interface for upper layers : sap to use : packet to send : destination mac address : destination sap

This function is called when upper layer wants to send a XID pdu. Returns 0 for success, 1 otherwise.

Definition at line 263 of file llc_sap.c.

void llc_sap_rtn_pdu ( struct llc_sap sap,
struct sk_buff skb 
)

llc_sap_rtn_pdu - Informs upper layer on rx of an UI, XID or TEST pdu. : pointer to SAP : received pdu

Definition at line 91 of file llc_sap.c.

void llc_save_primitive ( struct sock sk,
struct sk_buff skb,
unsigned char  prim 
)

Definition at line 69 of file llc_sap.c.