33#ifndef _RFCNB_RFCNB_PRIV_H
34#define _RFCNB_RFCNB_PRIV_H
47#include <netinet/in.h>
51#define RFCNB_Default_Port RFCNB_PORT
53#define RFCNB_Default_Port 139
56#define RFCNB_MAX_STATS 1
60#define RFCNB_SESSION_MESSAGE 0
61#define RFCNB_SESSION_REQUEST 0x81
62#define RFCNB_SESSION_ACK 0x82
63#define RFCNB_SESSION_REJ 0x83
64#define RFCNB_SESSION_RETARGET 0x84
65#define RFCNB_SESSION_KEEP_ALIVE 0x85
97#define RFCNB_Pkt_Hdr_Len 4
98#define RFCNB_Pkt_Sess_Len 72
99#define RFCNB_Pkt_Retarg_Len 10
100#define RFCNB_Pkt_Nack_Len 5
101#define RFCNB_Pkt_Type_Offset 0
102#define RFCNB_Pkt_Flags_Offset 1
103#define RFCNB_Pkt_Len_Offset 2
104#define RFCNB_Pkt_N1Len_Offset 4
105#define RFCNB_Pkt_Called_Offset 5
106#define RFCNB_Pkt_N2Len_Offset 38
107#define RFCNB_Pkt_Calling_Offset 39
108#define RFCNB_Pkt_Error_Offset 4
109#define RFCNB_Pkt_IP_Offset 4
110#define RFCNB_Pkt_Port_Offset 8
115#define RFCNB_Pkt_Len(p) (PVAL((p), 3) | (PVAL((p), 2) << 8) | \
116 ((PVAL((p), RFCNB_Pkt_Flags_Offset) & 0x01) << 16))
118#define RFCNB_Put_Pkt_Len(p, v) ((p)[1] = (((v) >> 16) & 1)); \
119 ((p)[2] = (((v) >> 8) & 0xFF)); \
120 ((p)[3] = ((v) & 0xFF));
122#define RFCNB_Pkt_Type(p) (CVAL((p), RFCNB_Pkt_Type_Offset))
struct RFCNB_Con RFCNB_Con
struct redirect_addr * redirect_ptr
struct redirect_addr * redirect_list
struct redirect_addr * last_addr