Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
dn_nsp.h File Reference

Go to the source code of this file.

Data Structures

struct  nsp_data_seg_msg
 
struct  nsp_data_opt_msg
 
struct  nsp_data_opt_msg1
 
struct  nsp_data_ack_msg
 
struct  nsp_conn_ack_msg
 
struct  nsp_conn_init_msg
 
struct  nsp_disconn_init_msg
 
struct  srcobj_fmt
 

Macros

#define NSP_REASON_OK   0 /* No error */
 
#define NSP_REASON_NR   1 /* No resources */
 
#define NSP_REASON_UN   2 /* Unrecognised node name */
 
#define NSP_REASON_SD   3 /* Node shutting down */
 
#define NSP_REASON_ID   4 /* Invalid destination end user */
 
#define NSP_REASON_ER   5 /* End user lacks resources */
 
#define NSP_REASON_OB   6 /* Object too busy */
 
#define NSP_REASON_US   7 /* Unspecified error */
 
#define NSP_REASON_TP   8 /* Third-Party abort */
 
#define NSP_REASON_EA   9 /* End user has aborted the link */
 
#define NSP_REASON_IF   10 /* Invalid node name format */
 
#define NSP_REASON_LS   11 /* Local node shutdown */
 
#define NSP_REASON_LL   32 /* Node lacks logical-link resources */
 
#define NSP_REASON_LE   33 /* End user lacks logical-link resources */
 
#define NSP_REASON_UR   34 /* Unacceptable RQSTRID or PASSWORD field */
 
#define NSP_REASON_UA   36 /* Unacceptable ACCOUNT field */
 
#define NSP_REASON_TM   38 /* End user timed out logical link */
 
#define NSP_REASON_NU   39 /* Node unreachable */
 
#define NSP_REASON_NL   41 /* No-link message */
 
#define NSP_REASON_DC   42 /* Disconnect confirm */
 
#define NSP_REASON_IO   43 /* Image data field overflow */
 
#define NSP_DISCINIT   0x38
 
#define NSP_DISCCONF   0x48
 
#define NSP_CI   0x18 /* Connect Initiate */
 
#define NSP_RCI   0x68 /* Retrans. Conn Init */
 
#define NSP_FC_NONE   0x00 /* Flow Control None */
 
#define NSP_FC_SRC   0x04 /* Seg Req. Count */
 
#define NSP_FC_SCMC   0x08 /* Sess. Control Mess */
 
#define NSP_FC_MASK   0x0c /* FC type mask */
 
#define DN_MAX_NSP_DATA_HEADER   (11)
 

Functions

void dn_nsp_send_data_ack (struct sock *sk)
 
void dn_nsp_send_oth_ack (struct sock *sk)
 
void dn_nsp_delayed_ack (struct sock *sk)
 
void dn_send_conn_ack (struct sock *sk)
 
void dn_send_conn_conf (struct sock *sk, gfp_t gfp)
 
void dn_nsp_send_disc (struct sock *sk, unsigned char type, unsigned short reason, gfp_t gfp)
 
void dn_nsp_return_disc (struct sk_buff *skb, unsigned char type, unsigned short reason)
 
void dn_nsp_send_link (struct sock *sk, unsigned char lsflags, char fcval)
 
void dn_nsp_send_conninit (struct sock *sk, unsigned char flags)
 
void dn_nsp_output (struct sock *sk)
 
int dn_nsp_check_xmit_queue (struct sock *sk, struct sk_buff *skb, struct sk_buff_head *q, unsigned short acknum)
 
void dn_nsp_queue_xmit (struct sock *sk, struct sk_buff *skb, gfp_t gfp, int oob)
 
unsigned long dn_nsp_persist (struct sock *sk)
 
int dn_nsp_xmit_timeout (struct sock *sk)
 
int dn_nsp_rx (struct sk_buff *)
 
int dn_nsp_backlog_rcv (struct sock *sk, struct sk_buff *skb)
 
struct sk_buffdn_alloc_skb (struct sock *sk, int size, gfp_t pri)
 
struct sk_buffdn_alloc_send_skb (struct sock *sk, size_t *size, int noblock, long timeo, int *err)
 

Variables

struct nsp_data_seg_msg __packed
 

Macro Definition Documentation

#define DN_MAX_NSP_DATA_HEADER   (11)

Definition at line 199 of file dn_nsp.h.

#define NSP_CI   0x18 /* Connect Initiate */

Definition at line 109 of file dn_nsp.h.

#define NSP_DISCCONF   0x48

Definition at line 65 of file dn_nsp.h.

#define NSP_DISCINIT   0x38

Definition at line 64 of file dn_nsp.h.

#define NSP_FC_MASK   0x0c /* FC type mask */

Definition at line 117 of file dn_nsp.h.

#define NSP_FC_NONE   0x00 /* Flow Control None */

Definition at line 114 of file dn_nsp.h.

#define NSP_FC_SCMC   0x08 /* Sess. Control Mess */

Definition at line 116 of file dn_nsp.h.

#define NSP_FC_SRC   0x04 /* Seg Req. Count */

Definition at line 115 of file dn_nsp.h.

#define NSP_RCI   0x68 /* Retrans. Conn Init */

Definition at line 110 of file dn_nsp.h.

#define NSP_REASON_DC   42 /* Disconnect confirm */

Definition at line 61 of file dn_nsp.h.

#define NSP_REASON_EA   9 /* End user has aborted the link */

Definition at line 51 of file dn_nsp.h.

#define NSP_REASON_ER   5 /* End user lacks resources */

Definition at line 47 of file dn_nsp.h.

#define NSP_REASON_ID   4 /* Invalid destination end user */

Definition at line 46 of file dn_nsp.h.

#define NSP_REASON_IF   10 /* Invalid node name format */

Definition at line 52 of file dn_nsp.h.

#define NSP_REASON_IO   43 /* Image data field overflow */

Definition at line 62 of file dn_nsp.h.

#define NSP_REASON_LE   33 /* End user lacks logical-link resources */

Definition at line 55 of file dn_nsp.h.

#define NSP_REASON_LL   32 /* Node lacks logical-link resources */

Definition at line 54 of file dn_nsp.h.

#define NSP_REASON_LS   11 /* Local node shutdown */

Definition at line 53 of file dn_nsp.h.

#define NSP_REASON_NL   41 /* No-link message */

Definition at line 60 of file dn_nsp.h.

#define NSP_REASON_NR   1 /* No resources */

Definition at line 43 of file dn_nsp.h.

#define NSP_REASON_NU   39 /* Node unreachable */

Definition at line 59 of file dn_nsp.h.

#define NSP_REASON_OB   6 /* Object too busy */

Definition at line 48 of file dn_nsp.h.

#define NSP_REASON_OK   0 /* No error */

Definition at line 42 of file dn_nsp.h.

#define NSP_REASON_SD   3 /* Node shutting down */

Definition at line 45 of file dn_nsp.h.

#define NSP_REASON_TM   38 /* End user timed out logical link */

Definition at line 58 of file dn_nsp.h.

#define NSP_REASON_TP   8 /* Third-Party abort */

Definition at line 50 of file dn_nsp.h.

#define NSP_REASON_UA   36 /* Unacceptable ACCOUNT field */

Definition at line 57 of file dn_nsp.h.

#define NSP_REASON_UN   2 /* Unrecognised node name */

Definition at line 44 of file dn_nsp.h.

#define NSP_REASON_UR   34 /* Unacceptable RQSTRID or PASSWORD field */

Definition at line 56 of file dn_nsp.h.

#define NSP_REASON_US   7 /* Unspecified error */

Definition at line 49 of file dn_nsp.h.

Function Documentation

struct sk_buff* dn_alloc_send_skb ( struct sock sk,
size_t size,
int  noblock,
long  timeo,
int err 
)
read
struct sk_buff* dn_alloc_skb ( struct sock sk,
int  size,
gfp_t  pri 
)
read

Definition at line 118 of file dn_nsp_out.c.

int dn_nsp_backlog_rcv ( struct sock sk,
struct sk_buff skb 
)

Definition at line 828 of file dn_nsp_in.c.

int dn_nsp_check_xmit_queue ( struct sock sk,
struct sk_buff skb,
struct sk_buff_head q,
unsigned short  acknum 
)

Definition at line 380 of file dn_nsp_out.c.

void dn_nsp_delayed_ack ( struct sock sk)

Definition at line 494 of file dn_nsp_out.c.

void dn_nsp_output ( struct sock sk)

dn_nsp_output - Try and send something from socket queues : The socket whose queues are to be investigated

Try and send the packet on the end of the data and other data queues. Other data gets priority over data, and if we retransmit a packet we reduce the window by dividing it in two.

Definition at line 238 of file dn_nsp_out.c.

unsigned long dn_nsp_persist ( struct sock sk)

Definition at line 142 of file dn_nsp_out.c.

void dn_nsp_queue_xmit ( struct sock sk,
struct sk_buff skb,
gfp_t  gfp,
int  oob 
)

Definition at line 351 of file dn_nsp_out.c.

void dn_nsp_return_disc ( struct sk_buff skb,
unsigned char  type,
unsigned short  reason 
)

Definition at line 606 of file dn_nsp_out.c.

int dn_nsp_rx ( struct sk_buff )

Definition at line 817 of file dn_nsp_in.c.

void dn_nsp_send_conninit ( struct sock sk,
unsigned char  flags 
)

Definition at line 650 of file dn_nsp_out.c.

void dn_nsp_send_data_ack ( struct sock sk)

Definition at line 453 of file dn_nsp_out.c.

void dn_nsp_send_disc ( struct sock sk,
unsigned char  type,
unsigned short  reason,
gfp_t  gfp 
)

Definition at line 589 of file dn_nsp_out.c.

void dn_nsp_send_link ( struct sock sk,
unsigned char  lsflags,
char  fcval 
)

Definition at line 618 of file dn_nsp_out.c.

void dn_nsp_send_oth_ack ( struct sock sk)

Definition at line 465 of file dn_nsp_out.c.

int dn_nsp_xmit_timeout ( struct sock sk)

Definition at line 274 of file dn_nsp_out.c.

void dn_send_conn_ack ( struct sock sk)

Definition at line 478 of file dn_nsp_out.c.

void dn_send_conn_conf ( struct sock sk,
gfp_t  gfp 
)

Definition at line 515 of file dn_nsp_out.c.

Variable Documentation