Linux Kernel
3.7.1
|
#include <linux/gfp.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <asm/errno.h>
#include <net/llc_if.h>
#include <net/llc_sap.h>
#include <net/llc_s_ev.h>
#include <net/llc_conn.h>
#include <net/sock.h>
#include <net/llc_c_ev.h>
#include <net/llc_c_ac.h>
#include <net/llc_c_st.h>
#include <net/tcp_states.h>
Go to the source code of this file.
Functions | |
int | llc_build_and_send_pkt (struct sock *sk, struct sk_buff *skb) |
int | llc_establish_connection (struct sock *sk, u8 *lmac, u8 *dmac, u8 dsap) |
int | llc_send_disc (struct sock *sk) |
llc_build_and_send_pkt - Connection data sending for upper layers. : connection : packet to send
This function is called when upper layer wants to send data using connection oriented communication mode. During sending data, connection will be locked and received frames and expired timers will be queued. Returns 0 for success, -ECONNABORTED when the connection already closed and -EBUSY when sending data is not permitted in this state or LLC has send an I pdu with p bit set to 1 and is waiting for it's response.
llc_establish_connection - Called by upper layer to establish a conn : connection : local mac address : destination mac address : destination sap
Upper layer calls this to establish an LLC connection with a remote machine. This function packages a proper event and sends it connection component state machine. Success or failure of connection establishment will inform to upper layer via calling it's confirm function and passing proper information.
llc_send_disc - Called by upper layer to close a connection : connection to be closed
Upper layer calls this when it wants to close an established LLC connection with a remote machine. This function packages a proper event and sends it to connection component state machine. Returns 0 for success, 1 otherwise.