rfcnb-priv.h File Reference
Include dependency graph for rfcnb-priv.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  redirect_addr
 
struct  RFCNB_Con
 

Macros

#define GLOBAL   extern
 
#define RFCNB_Default_Port   139
 
#define RFCNB_MAX_STATS   1
 
#define RFCNB_SESSION_MESSAGE   0
 
#define RFCNB_SESSION_REQUEST   0x81
 
#define RFCNB_SESSION_ACK   0x82
 
#define RFCNB_SESSION_REJ   0x83
 
#define RFCNB_SESSION_RETARGET   0x84
 
#define RFCNB_SESSION_KEEP_ALIVE   0x85
 
#define RFCNB_Pkt_Hdr_Len   4
 
#define RFCNB_Pkt_Sess_Len   72
 
#define RFCNB_Pkt_Retarg_Len   10
 
#define RFCNB_Pkt_Nack_Len   5
 
#define RFCNB_Pkt_Type_Offset   0
 
#define RFCNB_Pkt_Flags_Offset   1
 
#define RFCNB_Pkt_Len_Offset   2 /* Length is 2 bytes plus a flag bit */
 
#define RFCNB_Pkt_N1Len_Offset   4
 
#define RFCNB_Pkt_Called_Offset   5
 
#define RFCNB_Pkt_N2Len_Offset   38
 
#define RFCNB_Pkt_Calling_Offset   39
 
#define RFCNB_Pkt_Error_Offset   4
 
#define RFCNB_Pkt_IP_Offset   4
 
#define RFCNB_Pkt_Port_Offset   8
 
#define RFCNB_Pkt_Len(p)
 
#define RFCNB_Put_Pkt_Len(p, v)
 
#define RFCNB_Pkt_Type(p)   (CVAL((p), RFCNB_Pkt_Type_Offset))
 

Typedefs

typedef unsigned short uint16
 
typedef struct redirect_addrredirect_ptr
 
typedef struct RFCNB_Con RFCNB_Con
 
typedef char RFCNB_Hdr [4]
 

Variables

int RFCNB_errno
 
int RFCNB_saved_errno
 

Macro Definition Documentation

#define GLOBAL   extern

Definition at line 40 of file rfcnb-priv.h.

#define RFCNB_Default_Port   139

Definition at line 53 of file rfcnb-priv.h.

Referenced by RFCNB_Call().

#define RFCNB_MAX_STATS   1

Definition at line 56 of file rfcnb-priv.h.

#define RFCNB_Pkt_Called_Offset   5

Definition at line 105 of file rfcnb-priv.h.

Referenced by RFCNB_Print_Pkt(), and RFCNB_Session_Req().

#define RFCNB_Pkt_Calling_Offset   39

Definition at line 107 of file rfcnb-priv.h.

Referenced by RFCNB_Print_Pkt(), and RFCNB_Session_Req().

#define RFCNB_Pkt_Error_Offset   4

Definition at line 108 of file rfcnb-priv.h.

Referenced by RFCNB_Print_Pkt(), and RFCNB_Session_Req().

#define RFCNB_Pkt_Flags_Offset   1

Definition at line 102 of file rfcnb-priv.h.

#define RFCNB_Pkt_Hdr_Len   4
#define RFCNB_Pkt_IP_Offset   4

Definition at line 109 of file rfcnb-priv.h.

Referenced by RFCNB_Session_Req().

#define RFCNB_Pkt_Len (   p)
Value:
(PVAL((p), 3) | (PVAL((p), 2) << 8) | \
((PVAL((p), RFCNB_Pkt_Flags_Offset) & 0x01) << 16))
#define PVAL(buf, pos)
Definition: byteorder.h:50
char * p
Definition: membanger.c:43
#define RFCNB_Pkt_Flags_Offset
Definition: rfcnb-priv.h:102

Definition at line 115 of file rfcnb-priv.h.

Referenced by RFCNB_Get_Pkt(), and RFCNB_Print_Pkt().

#define RFCNB_Pkt_Len_Offset   2 /* Length is 2 bytes plus a flag bit */

Definition at line 103 of file rfcnb-priv.h.

#define RFCNB_Pkt_N1Len_Offset   4

Definition at line 104 of file rfcnb-priv.h.

Referenced by RFCNB_Session_Req().

#define RFCNB_Pkt_N2Len_Offset   38

Definition at line 106 of file rfcnb-priv.h.

Referenced by RFCNB_Session_Req().

#define RFCNB_Pkt_Nack_Len   5

Definition at line 100 of file rfcnb-priv.h.

#define RFCNB_Pkt_Port_Offset   8

Definition at line 110 of file rfcnb-priv.h.

Referenced by RFCNB_Session_Req().

#define RFCNB_Pkt_Retarg_Len   10

Definition at line 99 of file rfcnb-priv.h.

#define RFCNB_Pkt_Sess_Len   72

Definition at line 98 of file rfcnb-priv.h.

Referenced by RFCNB_Session_Req().

#define RFCNB_Pkt_Type (   p)    (CVAL((p), RFCNB_Pkt_Type_Offset))

Definition at line 122 of file rfcnb-priv.h.

Referenced by RFCNB_Get_Pkt(), RFCNB_Print_Pkt(), and RFCNB_Session_Req().

#define RFCNB_Pkt_Type_Offset   0

Definition at line 101 of file rfcnb-priv.h.

Referenced by RFCNB_Send(), and RFCNB_Session_Req().

#define RFCNB_Put_Pkt_Len (   p,
 
)
Value:
((p)[1] = (((v) >> 16) & 1)); \
((p)[2] = (((v) >> 8) & 0xFF)); \
((p)[3] = ((v) & 0xFF));
char * p
Definition: membanger.c:43

Definition at line 118 of file rfcnb-priv.h.

Referenced by RFCNB_Send(), and RFCNB_Session_Req().

#define RFCNB_SESSION_ACK   0x82

Definition at line 62 of file rfcnb-priv.h.

Referenced by RFCNB_Print_Pkt(), and RFCNB_Session_Req().

#define RFCNB_SESSION_KEEP_ALIVE   0x85

Definition at line 65 of file rfcnb-priv.h.

Referenced by RFCNB_Get_Pkt(), and RFCNB_Print_Pkt().

#define RFCNB_SESSION_MESSAGE   0

Definition at line 60 of file rfcnb-priv.h.

Referenced by RFCNB_Print_Pkt(), and RFCNB_Send().

#define RFCNB_SESSION_REJ   0x83

Definition at line 63 of file rfcnb-priv.h.

Referenced by RFCNB_Print_Pkt(), and RFCNB_Session_Req().

#define RFCNB_SESSION_REQUEST   0x81

Definition at line 61 of file rfcnb-priv.h.

Referenced by RFCNB_Print_Pkt(), and RFCNB_Session_Req().

#define RFCNB_SESSION_RETARGET   0x84

Definition at line 64 of file rfcnb-priv.h.

Referenced by RFCNB_Print_Pkt(), and RFCNB_Session_Req().

Typedef Documentation

typedef struct redirect_addr* redirect_ptr

Definition at line 69 of file rfcnb-priv.h.

typedef struct RFCNB_Con RFCNB_Con
typedef char RFCNB_Hdr[4]

Definition at line 90 of file rfcnb-priv.h.

typedef unsigned short uint16

Definition at line 38 of file rfcnb-priv.h.

Variable Documentation

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors