Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
llc_c_ev.c File Reference
#include <linux/netdevice.h>
#include <net/llc_conn.h>
#include <net/llc_sap.h>
#include <net/sock.h>
#include <net/llc_c_ac.h>
#include <net/llc_c_ev.h>
#include <net/llc_pdu.h>

Go to the source code of this file.

Macros

#define dprintk(args...)   printk(KERN_DEBUG args)
 

Functions

int llc_conn_ev_conn_req (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_data_req (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_disc_req (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rst_req (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_local_busy_detected (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_local_busy_cleared (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_bad_pdu (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_disc_cmd_pbit_set_x (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_dm_rsp_fbit_set_x (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_frmr_rsp_fbit_set_x (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_i_cmd_pbit_set_0 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_i_cmd_pbit_set_1 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_i_cmd_pbit_set_x_inval_ns (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_i_rsp_fbit_set_0 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_i_rsp_fbit_set_1 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_i_rsp_fbit_set_x (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_i_rsp_fbit_set_0_unexpd_ns (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_i_rsp_fbit_set_1_unexpd_ns (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_i_rsp_fbit_set_x_unexpd_ns (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_i_rsp_fbit_set_x_inval_ns (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_rej_cmd_pbit_set_0 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_rej_cmd_pbit_set_1 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_rej_rsp_fbit_set_0 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_rej_rsp_fbit_set_1 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_rej_rsp_fbit_set_x (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_rnr_cmd_pbit_set_0 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_rnr_cmd_pbit_set_1 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_rnr_rsp_fbit_set_0 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_rnr_rsp_fbit_set_1 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_rr_cmd_pbit_set_0 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_rr_cmd_pbit_set_1 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_rr_rsp_fbit_set_0 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_rr_rsp_fbit_set_1 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_sabme_cmd_pbit_set_x (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_ua_rsp_fbit_set_x (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_xxx_cmd_pbit_set_1 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_xxx_cmd_pbit_set_x (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_xxx_rsp_fbit_set_x (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_zzz_cmd_pbit_set_x_inval_nr (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_zzz_rsp_fbit_set_x_inval_nr (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rx_any_frame (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_p_tmr_exp (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_ack_tmr_exp (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_rej_tmr_exp (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_busy_tmr_exp (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_init_p_f_cycle (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_tx_buffer_full (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_data_flag_eq_1 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_data_flag_eq_0 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_data_flag_eq_2 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_p_flag_eq_1 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_last_frame_eq_1 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_last_frame_eq_0 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_p_flag_eq_0 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_p_flag_eq_f (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_remote_busy_eq_0 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_remote_busy_eq_1 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_retry_cnt_lt_n2 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_retry_cnt_gte_n2 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_s_flag_eq_1 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_s_flag_eq_0 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_cause_flag_eq_1 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_cause_flag_eq_0 (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_set_status_conn (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_set_status_disc (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_set_status_failed (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_set_status_remote_busy (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_set_status_refuse (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_set_status_conflict (struct sock *sk, struct sk_buff *skb)
 
int llc_conn_ev_qlfy_set_status_rst_done (struct sock *sk, struct sk_buff *skb)
 

Macro Definition Documentation

#define dprintk (   args...)    printk(KERN_DEBUG args)

Definition at line 45 of file llc_c_ev.c.

Function Documentation

int llc_conn_ev_ack_tmr_exp ( struct sock sk,
struct sk_buff skb 
)

Definition at line 550 of file llc_c_ev.c.

int llc_conn_ev_busy_tmr_exp ( struct sock sk,
struct sk_buff skb 
)

Definition at line 564 of file llc_c_ev.c.

int llc_conn_ev_conn_req ( struct sock sk,
struct sk_buff skb 
)

Definition at line 99 of file llc_c_ev.c.

int llc_conn_ev_data_req ( struct sock sk,
struct sk_buff skb 
)

Definition at line 107 of file llc_c_ev.c.

int llc_conn_ev_disc_req ( struct sock sk,
struct sk_buff skb 
)

Definition at line 115 of file llc_c_ev.c.

int llc_conn_ev_init_p_f_cycle ( struct sock sk,
struct sk_buff skb 
)

Definition at line 571 of file llc_c_ev.c.

int llc_conn_ev_local_busy_cleared ( struct sock sk,
struct sk_buff skb 
)

Definition at line 139 of file llc_c_ev.c.

int llc_conn_ev_local_busy_detected ( struct sock sk,
struct sk_buff skb 
)

Definition at line 131 of file llc_c_ev.c.

int llc_conn_ev_p_tmr_exp ( struct sock sk,
struct sk_buff skb 
)

Definition at line 543 of file llc_c_ev.c.

int llc_conn_ev_qlfy_cause_flag_eq_0 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 688 of file llc_c_ev.c.

int llc_conn_ev_qlfy_cause_flag_eq_1 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 683 of file llc_c_ev.c.

int llc_conn_ev_qlfy_data_flag_eq_0 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 595 of file llc_c_ev.c.

int llc_conn_ev_qlfy_data_flag_eq_1 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 590 of file llc_c_ev.c.

int llc_conn_ev_qlfy_data_flag_eq_2 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 600 of file llc_c_ev.c.

int llc_conn_ev_qlfy_last_frame_eq_0 ( struct sock sk,
struct sk_buff skb 
)

conn_ev_qlfy_last_frame_eq_0 - checks if frame isn't last in tx window : current connection structure. : current event.

This function determines when frame which is sent, isn't last frame of transmit window, if it isn't then this function return zero else return one. Returns 0 if frame isn't last frame, 1 otherwise.

Definition at line 635 of file llc_c_ev.c.

int llc_conn_ev_qlfy_last_frame_eq_1 ( struct sock sk,
struct sk_buff skb 
)

conn_ev_qlfy_last_frame_eq_1 - checks if frame is last in tx window : current connection structure. : current event.

This function determines when frame which is sent, is last frame of transmit window, if it is then this function return zero else return one. This function is used for sending last frame of transmit window as I-format command with p-bit set to one. Returns 0 if frame is last frame, 1 otherwise.

Definition at line 621 of file llc_c_ev.c.

int llc_conn_ev_qlfy_p_flag_eq_0 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 640 of file llc_c_ev.c.

int llc_conn_ev_qlfy_p_flag_eq_1 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 605 of file llc_c_ev.c.

int llc_conn_ev_qlfy_p_flag_eq_f ( struct sock sk,
struct sk_buff skb 
)

Definition at line 645 of file llc_c_ev.c.

int llc_conn_ev_qlfy_remote_busy_eq_0 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 653 of file llc_c_ev.c.

int llc_conn_ev_qlfy_remote_busy_eq_1 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 658 of file llc_c_ev.c.

int llc_conn_ev_qlfy_retry_cnt_gte_n2 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 668 of file llc_c_ev.c.

int llc_conn_ev_qlfy_retry_cnt_lt_n2 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 663 of file llc_c_ev.c.

int llc_conn_ev_qlfy_s_flag_eq_0 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 678 of file llc_c_ev.c.

int llc_conn_ev_qlfy_s_flag_eq_1 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 673 of file llc_c_ev.c.

int llc_conn_ev_qlfy_set_status_conflict ( struct sock sk,
struct sk_buff skb 
)

Definition at line 734 of file llc_c_ev.c.

int llc_conn_ev_qlfy_set_status_conn ( struct sock sk,
struct sk_buff skb 
)

Definition at line 693 of file llc_c_ev.c.

int llc_conn_ev_qlfy_set_status_disc ( struct sock sk,
struct sk_buff skb 
)

Definition at line 701 of file llc_c_ev.c.

int llc_conn_ev_qlfy_set_status_failed ( struct sock sk,
struct sk_buff skb 
)

Definition at line 709 of file llc_c_ev.c.

int llc_conn_ev_qlfy_set_status_refuse ( struct sock sk,
struct sk_buff skb 
)

Definition at line 726 of file llc_c_ev.c.

int llc_conn_ev_qlfy_set_status_remote_busy ( struct sock sk,
struct sk_buff skb 
)

Definition at line 717 of file llc_c_ev.c.

int llc_conn_ev_qlfy_set_status_rst_done ( struct sock sk,
struct sk_buff skb 
)

Definition at line 742 of file llc_c_ev.c.

int llc_conn_ev_rej_tmr_exp ( struct sock sk,
struct sk_buff skb 
)

Definition at line 557 of file llc_c_ev.c.

int llc_conn_ev_rst_req ( struct sock sk,
struct sk_buff skb 
)

Definition at line 123 of file llc_c_ev.c.

int llc_conn_ev_rx_any_frame ( struct sock sk,
struct sk_buff skb 
)

Definition at line 538 of file llc_c_ev.c.

int llc_conn_ev_rx_bad_pdu ( struct sock sk,
struct sk_buff skb 
)

Definition at line 147 of file llc_c_ev.c.

int llc_conn_ev_rx_disc_cmd_pbit_set_x ( struct sock sk,
struct sk_buff skb 
)

Definition at line 152 of file llc_c_ev.c.

int llc_conn_ev_rx_dm_rsp_fbit_set_x ( struct sock sk,
struct sk_buff skb 
)

Definition at line 160 of file llc_c_ev.c.

int llc_conn_ev_rx_frmr_rsp_fbit_set_x ( struct sock sk,
struct sk_buff skb 
)

Definition at line 168 of file llc_c_ev.c.

int llc_conn_ev_rx_i_cmd_pbit_set_0 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 176 of file llc_c_ev.c.

int llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns ( struct sock sk,
struct sk_buff skb 
)

Definition at line 196 of file llc_c_ev.c.

int llc_conn_ev_rx_i_cmd_pbit_set_1 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 186 of file llc_c_ev.c.

int llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns ( struct sock sk,
struct sk_buff skb 
)

Definition at line 208 of file llc_c_ev.c.

int llc_conn_ev_rx_i_cmd_pbit_set_x_inval_ns ( struct sock sk,
struct sk_buff skb 
)

Definition at line 220 of file llc_c_ev.c.

int llc_conn_ev_rx_i_rsp_fbit_set_0 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 235 of file llc_c_ev.c.

int llc_conn_ev_rx_i_rsp_fbit_set_0_unexpd_ns ( struct sock sk,
struct sk_buff skb 
)

Definition at line 263 of file llc_c_ev.c.

int llc_conn_ev_rx_i_rsp_fbit_set_1 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 245 of file llc_c_ev.c.

int llc_conn_ev_rx_i_rsp_fbit_set_1_unexpd_ns ( struct sock sk,
struct sk_buff skb 
)

Definition at line 275 of file llc_c_ev.c.

int llc_conn_ev_rx_i_rsp_fbit_set_x ( struct sock sk,
struct sk_buff skb 
)

Definition at line 254 of file llc_c_ev.c.

int llc_conn_ev_rx_i_rsp_fbit_set_x_inval_ns ( struct sock sk,
struct sk_buff skb 
)

Definition at line 298 of file llc_c_ev.c.

int llc_conn_ev_rx_i_rsp_fbit_set_x_unexpd_ns ( struct sock sk,
struct sk_buff skb 
)

Definition at line 287 of file llc_c_ev.c.

int llc_conn_ev_rx_rej_cmd_pbit_set_0 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 313 of file llc_c_ev.c.

int llc_conn_ev_rx_rej_cmd_pbit_set_1 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 322 of file llc_c_ev.c.

int llc_conn_ev_rx_rej_rsp_fbit_set_0 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 331 of file llc_c_ev.c.

int llc_conn_ev_rx_rej_rsp_fbit_set_1 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 340 of file llc_c_ev.c.

int llc_conn_ev_rx_rej_rsp_fbit_set_x ( struct sock sk,
struct sk_buff skb 
)

Definition at line 349 of file llc_c_ev.c.

int llc_conn_ev_rx_rnr_cmd_pbit_set_0 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 357 of file llc_c_ev.c.

int llc_conn_ev_rx_rnr_cmd_pbit_set_1 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 366 of file llc_c_ev.c.

int llc_conn_ev_rx_rnr_rsp_fbit_set_0 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 375 of file llc_c_ev.c.

int llc_conn_ev_rx_rnr_rsp_fbit_set_1 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 384 of file llc_c_ev.c.

int llc_conn_ev_rx_rr_cmd_pbit_set_0 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 393 of file llc_c_ev.c.

int llc_conn_ev_rx_rr_cmd_pbit_set_1 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 402 of file llc_c_ev.c.

int llc_conn_ev_rx_rr_rsp_fbit_set_0 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 411 of file llc_c_ev.c.

int llc_conn_ev_rx_rr_rsp_fbit_set_1 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 421 of file llc_c_ev.c.

int llc_conn_ev_rx_sabme_cmd_pbit_set_x ( struct sock sk,
struct sk_buff skb 
)

Definition at line 431 of file llc_c_ev.c.

int llc_conn_ev_rx_ua_rsp_fbit_set_x ( struct sock sk,
struct sk_buff skb 
)

Definition at line 439 of file llc_c_ev.c.

int llc_conn_ev_rx_xxx_cmd_pbit_set_1 ( struct sock sk,
struct sk_buff skb 
)

Definition at line 447 of file llc_c_ev.c.

int llc_conn_ev_rx_xxx_cmd_pbit_set_x ( struct sock sk,
struct sk_buff skb 
)

Definition at line 462 of file llc_c_ev.c.

int llc_conn_ev_rx_xxx_rsp_fbit_set_x ( struct sock sk,
struct sk_buff skb 
)

Definition at line 481 of file llc_c_ev.c.

int llc_conn_ev_rx_zzz_cmd_pbit_set_x_inval_nr ( struct sock sk,
struct sk_buff skb 
)

Definition at line 502 of file llc_c_ev.c.

int llc_conn_ev_rx_zzz_rsp_fbit_set_x_inval_nr ( struct sock sk,
struct sk_buff skb 
)

Definition at line 520 of file llc_c_ev.c.

int llc_conn_ev_tx_buffer_full ( struct sock sk,
struct sk_buff skb 
)

Definition at line 576 of file llc_c_ev.c.