Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
irlmp.c File Reference
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/skbuff.h>
#include <linux/types.h>
#include <linux/proc_fs.h>
#include <linux/init.h>
#include <linux/kmod.h>
#include <linux/random.h>
#include <linux/seq_file.h>
#include <net/irda/irda.h>
#include <net/irda/timer.h>
#include <net/irda/qos.h>
#include <net/irda/irlap.h>
#include <net/irda/iriap.h>
#include <net/irda/irlmp.h>
#include <net/irda/irlmp_frame.h>
#include <asm/unaligned.h>

Go to the source code of this file.

Functions

int __init irlmp_init (void)
 
void irlmp_cleanup (void)
 
struct lsap_cbirlmp_open_lsap (__u8 slsap_sel, notify_t *notify, __u8 pid)
 
 EXPORT_SYMBOL (irlmp_open_lsap)
 
void irlmp_close_lsap (struct lsap_cb *self)
 
 EXPORT_SYMBOL (irlmp_close_lsap)
 
void irlmp_register_link (struct irlap_cb *irlap, __u32 saddr, notify_t *notify)
 
void irlmp_unregister_link (__u32 saddr)
 
int irlmp_connect_request (struct lsap_cb *self, __u8 dlsap_sel, __u32 saddr, __u32 daddr, struct qos_info *qos, struct sk_buff *userdata)
 
 EXPORT_SYMBOL (irlmp_connect_request)
 
void irlmp_connect_indication (struct lsap_cb *self, struct sk_buff *skb)
 
int irlmp_connect_response (struct lsap_cb *self, struct sk_buff *userdata)
 
 EXPORT_SYMBOL (irlmp_connect_response)
 
void irlmp_connect_confirm (struct lsap_cb *self, struct sk_buff *skb)
 
struct lsap_cbirlmp_dup (struct lsap_cb *orig, void *instance)
 
int irlmp_disconnect_request (struct lsap_cb *self, struct sk_buff *userdata)
 
 EXPORT_SYMBOL (irlmp_disconnect_request)
 
void irlmp_disconnect_indication (struct lsap_cb *self, LM_REASON reason, struct sk_buff *skb)
 
void irlmp_do_expiry (void)
 
void irlmp_do_discovery (int nslots)
 
void irlmp_discovery_request (int nslots)
 
 EXPORT_SYMBOL (irlmp_discovery_request)
 
struct irda_device_infoirlmp_get_discoveries (int *pn, __u16 mask, int nslots)
 
 EXPORT_SYMBOL (irlmp_get_discoveries)
 
void irlmp_discovery_confirm (hashbin_t *log, DISCOVERY_MODE mode)
 
void irlmp_discovery_expiry (discinfo_t *expiries, int number)
 
discovery_tirlmp_get_discovery_response (void)
 
int irlmp_data_request (struct lsap_cb *self, struct sk_buff *userdata)
 
 EXPORT_SYMBOL (irlmp_data_request)
 
void irlmp_data_indication (struct lsap_cb *self, struct sk_buff *skb)
 
int irlmp_udata_request (struct lsap_cb *self, struct sk_buff *userdata)
 
void irlmp_udata_indication (struct lsap_cb *self, struct sk_buff *skb)
 
void irlmp_status_indication (struct lap_cb *self, LINK_STATUS link, LOCK_STATUS lock)
 
void irlmp_flow_indication (struct lap_cb *self, LOCAL_FLOW flow)
 
__u16 irlmp_service_to_hint (int service)
 
 EXPORT_SYMBOL (irlmp_service_to_hint)
 
voidirlmp_register_service (__u16 hints)
 
 EXPORT_SYMBOL (irlmp_register_service)
 
int irlmp_unregister_service (void *handle)
 
 EXPORT_SYMBOL (irlmp_unregister_service)
 
voidirlmp_register_client (__u16 hint_mask, DISCOVERY_CALLBACK1 disco_clb, DISCOVERY_CALLBACK2 expir_clb, void *priv)
 
 EXPORT_SYMBOL (irlmp_register_client)
 
int irlmp_update_client (void *handle, __u16 hint_mask, DISCOVERY_CALLBACK1 disco_clb, DISCOVERY_CALLBACK2 expir_clb, void *priv)
 
 EXPORT_SYMBOL (irlmp_update_client)
 
int irlmp_unregister_client (void *handle)
 
 EXPORT_SYMBOL (irlmp_unregister_client)
 
LM_REASON irlmp_convert_lap_reason (LAP_REASON lap_reason)
 

Variables

struct irlmp_cbirlmp = NULL
 
int sysctl_discovery = 0
 
int sysctl_discovery_timeout = 3
 
int sysctl_discovery_slots = 6
 
int sysctl_lap_keepalive_time = LM_IDLE_TIMEOUT * 1000 / HZ
 
char sysctl_devname [65]
 
const charirlmp_reasons []
 

Function Documentation

EXPORT_SYMBOL ( irlmp_open_lsap  )
EXPORT_SYMBOL ( irlmp_close_lsap  )
EXPORT_SYMBOL ( irlmp_connect_request  )
EXPORT_SYMBOL ( irlmp_connect_response  )
EXPORT_SYMBOL ( irlmp_disconnect_request  )
EXPORT_SYMBOL ( irlmp_discovery_request  )
EXPORT_SYMBOL ( irlmp_get_discoveries  )
EXPORT_SYMBOL ( irlmp_data_request  )
EXPORT_SYMBOL ( irlmp_service_to_hint  )
EXPORT_SYMBOL ( irlmp_register_service  )
EXPORT_SYMBOL ( irlmp_unregister_service  )
EXPORT_SYMBOL ( irlmp_register_client  )
EXPORT_SYMBOL ( irlmp_update_client  )
EXPORT_SYMBOL ( irlmp_unregister_client  )
void irlmp_cleanup ( void  )

Definition at line 122 of file irlmp.c.

void irlmp_close_lsap ( struct lsap_cb self)

Definition at line 228 of file irlmp.c.

void irlmp_connect_confirm ( struct lsap_cb self,
struct sk_buff skb 
)

Definition at line 586 of file irlmp.c.

void irlmp_connect_indication ( struct lsap_cb self,
struct sk_buff skb 
)

Definition at line 513 of file irlmp.c.

int irlmp_connect_request ( struct lsap_cb self,
__u8  dlsap_sel,
__u32  saddr,
__u32  daddr,
struct qos_info qos,
struct sk_buff userdata 
)

Definition at line 370 of file irlmp.c.

int irlmp_connect_response ( struct lsap_cb self,
struct sk_buff userdata 
)

Definition at line 556 of file irlmp.c.

LM_REASON irlmp_convert_lap_reason ( LAP_REASON  lap_reason)

Definition at line 1821 of file irlmp.c.

void irlmp_data_indication ( struct lsap_cb self,
struct sk_buff skb 
)

Definition at line 1145 of file irlmp.c.

int irlmp_data_request ( struct lsap_cb self,
struct sk_buff userdata 
)

Definition at line 1119 of file irlmp.c.

void irlmp_disconnect_indication ( struct lsap_cb self,
LM_REASON  reason,
struct sk_buff skb 
)

Definition at line 745 of file irlmp.c.

int irlmp_disconnect_request ( struct lsap_cb self,
struct sk_buff userdata 
)

Definition at line 683 of file irlmp.c.

void irlmp_discovery_confirm ( hashbin_t log,
DISCOVERY_MODE  mode 
)

Definition at line 1012 of file irlmp.c.

void irlmp_discovery_expiry ( discinfo_t expiries,
int  number 
)

Definition at line 1046 of file irlmp.c.

void irlmp_discovery_request ( int  nslots)

Definition at line 892 of file irlmp.c.

void irlmp_do_discovery ( int  nslots)

Definition at line 840 of file irlmp.c.

void irlmp_do_expiry ( void  )

Definition at line 807 of file irlmp.c.

struct lsap_cb* irlmp_dup ( struct lsap_cb orig,
void instance 
)
read

Definition at line 627 of file irlmp.c.

void irlmp_flow_indication ( struct lap_cb self,
LOCAL_FLOW  flow 
)

Definition at line 1325 of file irlmp.c.

struct irda_device_info* irlmp_get_discoveries ( int pn,
__u16  mask,
int  nslots 
)
read

Definition at line 922 of file irlmp.c.

discovery_t* irlmp_get_discovery_response ( void  )

Definition at line 1084 of file irlmp.c.

int __init irlmp_init ( void  )

Definition at line 77 of file irlmp.c.

struct lsap_cb* irlmp_open_lsap ( __u8  slsap_sel,
notify_t notify,
__u8  pid 
)
read

Definition at line 147 of file irlmp.c.

void* irlmp_register_client ( __u16  hint_mask,
DISCOVERY_CALLBACK1  disco_clb,
DISCOVERY_CALLBACK2  expir_clb,
void priv 
)

Definition at line 1556 of file irlmp.c.

void irlmp_register_link ( struct irlap_cb irlap,
__u32  saddr,
notify_t notify 
)

Definition at line 281 of file irlmp.c.

void* irlmp_register_service ( __u16  hints)

Definition at line 1482 of file irlmp.c.

__u16 irlmp_service_to_hint ( int  service)

Definition at line 1465 of file irlmp.c.

void irlmp_status_indication ( struct lap_cb self,
LINK_STATUS  link,
LOCK_STATUS  lock 
)

Definition at line 1291 of file irlmp.c.

void irlmp_udata_indication ( struct lsap_cb self,
struct sk_buff skb 
)

Definition at line 1186 of file irlmp.c.

int irlmp_udata_request ( struct lsap_cb self,
struct sk_buff userdata 
)

Definition at line 1160 of file irlmp.c.

int irlmp_unregister_client ( void handle)

Definition at line 1622 of file irlmp.c.

void irlmp_unregister_link ( __u32  saddr)

Definition at line 335 of file irlmp.c.

int irlmp_unregister_service ( void handle)

Definition at line 1511 of file irlmp.c.

int irlmp_update_client ( void handle,
__u16  hint_mask,
DISCOVERY_CALLBACK1  disco_clb,
DISCOVERY_CALLBACK2  expir_clb,
void priv 
)

Definition at line 1592 of file irlmp.c.

Variable Documentation

struct irlmp_cb* irlmp = NULL

Definition at line 52 of file irlmp.c.

const char* irlmp_reasons[]
Initial value:
= {
"ERROR, NOT USED",
"LM_USER_REQUEST",
"LM_LAP_DISCONNECT",
"LM_CONNECT_FAILURE",
"LM_LAP_RESET",
"LM_INIT_DISCONNECT",
"ERROR, NOT USED",
}

Definition at line 61 of file irlmp.c.

char sysctl_devname[65]

Definition at line 59 of file irlmp.c.

int sysctl_discovery = 0

Definition at line 55 of file irlmp.c.

int sysctl_discovery_slots = 6

Definition at line 57 of file irlmp.c.

int sysctl_discovery_timeout = 3

Definition at line 56 of file irlmp.c.

int sysctl_lap_keepalive_time = LM_IDLE_TIMEOUT * 1000 / HZ

Definition at line 58 of file irlmp.c.