Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
llc_output.c File Reference
#include <linux/if_arp.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include <linux/export.h>
#include <net/llc.h>
#include <net/llc_pdu.h>

Go to the source code of this file.

Functions

int llc_mac_hdr_init (struct sk_buff *skb, const unsigned char *sa, const unsigned char *da)
 
int llc_build_and_send_ui_pkt (struct llc_sap *sap, struct sk_buff *skb, unsigned char *dmac, unsigned char dsap)
 
 EXPORT_SYMBOL (llc_mac_hdr_init)
 
 EXPORT_SYMBOL (llc_build_and_send_ui_pkt)
 

Function Documentation

EXPORT_SYMBOL ( llc_mac_hdr_init  )
EXPORT_SYMBOL ( llc_build_and_send_ui_pkt  )
int llc_build_and_send_ui_pkt ( struct llc_sap sap,
struct sk_buff skb,
unsigned char dmac,
unsigned char  dsap 
)

llc_build_and_send_ui_pkt - unitdata request interface for upper layers : sap to use : packet to send : destination mac address : destination sap

Upper layers calls this function when upper layer wants to send data using connection-less mode communication (UI pdu).

Accept data frame from network layer to be sent using connection- less mode communication; timeout/retries handled by network layer; package primitive as an event and send to SAP event handler

Definition at line 65 of file llc_output.c.

int llc_mac_hdr_init ( struct sk_buff skb,
const unsigned char sa,
const unsigned char da 
)

llc_mac_hdr_init - fills MAC header fields : Address of the frame to initialize its MAC header

See Also
: The MAC source address : The MAC destination address

Fills MAC header fields, depending on MAC type. Returns 0, If MAC type is a valid type and initialization completes correctly 1, otherwise.

Definition at line 32 of file llc_output.c.