#include "squid.h"
#include "rfcnb/rfcnb-io.h"
#include "rfcnb/rfcnb-priv.h"
#include "rfcnb/rfcnb-util.h"
#include "rfcnb/rfcnb.h"
#include "rfcnb/std-includes.h"
Go to the source code of this file.
Functions | |
void | RFCNB_CvtPad_Name (char *name1, char *name2) |
void | RFCNB_AName_To_NBName (char *AName, char *NBName) |
void | RFCNB_NBName_To_AName (char *NBName, char *AName) |
void | RFCNB_Print_Hex (FILE *fd, struct RFCNB_Pkt *pkt, int Offset, int Len) |
struct RFCNB_Pkt * | RFCNB_Alloc_Pkt (int n) |
void | RFCNB_Free_Pkt (struct RFCNB_Pkt *pkt) |
void | RFCNB_Print_Pkt (FILE *fd, char *dirn, struct RFCNB_Pkt *pkt, int len) |
int | RFCNB_Name_To_IP (char *host, struct in_addr *Dest_IP) |
int | RFCNB_Close (int fd) |
int | RFCNB_IP_Connect (struct in_addr Dest_IP, int port) |
int | RFCNB_Session_Req (struct RFCNB_Con *con, char *Called_Name, char *Calling_Name, BOOL *redirect, struct in_addr *Dest_IP, int *port) |
Variables | |
const char * | RFCNB_Error_Strings [] |
Function Documentation
◆ RFCNB_Alloc_Pkt()
Definition at line 202 of file rfcnb-util.c.
References RFCNB_Pkt::data, RFCNB_Pkt::len, RFCNB_Pkt::next, NULL, RFCNB_errno, RFCNB_saved_errno, and RFCNBE_NoSpace.
Referenced by RFCNB_Recv(), RFCNB_Send(), RFCNB_Session_Req(), SMB_Check_Dir(), SMB_Close(), SMB_Create(), SMB_Create_Dir(), SMB_Delete(), SMB_Delete_Dir(), SMB_Logon_And_TCon(), SMB_Logon_Server(), SMB_Logon_TCon_Open(), SMB_Negotiate(), SMB_Open(), SMB_Read(), SMB_Search(), SMB_TreeConnect(), SMB_TreeDisconnect(), SMB_Write(), SMBapi_NetSetUserInfo(), and SMBapi_NetUserPasswordSet().
◆ RFCNB_AName_To_NBName()
void RFCNB_AName_To_NBName | ( | char * | AName, |
char * | NBName | ||
) |
Definition at line 109 of file rfcnb-util.c.
◆ RFCNB_Close()
Definition at line 371 of file rfcnb-util.c.
Referenced by RFCNB_Call(), and RFCNB_Hangup().
◆ RFCNB_CvtPad_Name()
void RFCNB_CvtPad_Name | ( | char * | name1, |
char * | name2 | ||
) |
◆ RFCNB_Free_Pkt()
void RFCNB_Free_Pkt | ( | struct RFCNB_Pkt * | pkt | ) |
Definition at line 231 of file rfcnb-util.c.
References RFCNB_Pkt::data, RFCNB_Pkt::next, and NULL.
Referenced by RFCNB_Recv(), RFCNB_Send(), RFCNB_Session_Req(), SMB_Check_Dir(), SMB_Close(), SMB_Create(), SMB_Create_Dir(), SMB_Delete(), SMB_Delete_Dir(), SMB_Logon_And_TCon(), SMB_Logon_Server(), SMB_Logon_TCon_Open(), SMB_Negotiate(), SMB_Open(), SMB_Read(), SMB_Search(), SMB_TreeConnect(), SMB_TreeDisconnect(), SMB_Write(), SMBapi_NetSetUserInfo(), and SMBapi_NetUserPasswordSet().
◆ RFCNB_IP_Connect()
Definition at line 384 of file rfcnb-util.c.
References port, RFCNB_errno, RFCNB_saved_errno, RFCNBE_Bad, RFCNBE_BadSocket, and RFCNBE_ConnectFailed.
Referenced by RFCNB_Call().
◆ RFCNB_Name_To_IP()
int RFCNB_Name_To_IP | ( | char * | host, |
struct in_addr * | Dest_IP | ||
) |
Definition at line 336 of file rfcnb-util.c.
References INADDR_NONE, NULL, RFCNB_errno, RFCNB_saved_errno, RFCNBE_Bad, and RFCNBE_BadName.
Referenced by RFCNB_Call().
◆ RFCNB_NBName_To_AName()
void RFCNB_NBName_To_AName | ( | char * | NBName, |
char * | AName | ||
) |
◆ RFCNB_Print_Hex()
Definition at line 151 of file rfcnb-util.c.
References RFCNB_Pkt::data, RFCNB_Pkt::len, RFCNB_Pkt::next, and NULL.
Referenced by RFCNB_Print_Pkt().
◆ RFCNB_Print_Pkt()
Definition at line 254 of file rfcnb-util.c.
References CVAL, RFCNB_Pkt::data, Prot_Print_Routine, RFCNB_NBName_To_AName(), RFCNB_Pkt_Called_Offset, RFCNB_Pkt_Calling_Offset, RFCNB_Pkt_Error_Offset, RFCNB_Pkt_Hdr_Len, RFCNB_Pkt_Len, RFCNB_Pkt_Type, RFCNB_Print_Hex(), RFCNB_SESSION_ACK, RFCNB_SESSION_KEEP_ALIVE, RFCNB_SESSION_MESSAGE, RFCNB_SESSION_REJ, RFCNB_SESSION_REQUEST, and RFCNB_SESSION_RETARGET.
Referenced by RFCNB_Get_Pkt(), and RFCNB_Put_Pkt().
◆ RFCNB_Session_Req()
int RFCNB_Session_Req | ( | struct RFCNB_Con * | con, |
char * | Called_Name, | ||
char * | Calling_Name, | ||
BOOL * | redirect, | ||
struct in_addr * | Dest_IP, | ||
int * | port | ||
) |
Definition at line 419 of file rfcnb-util.c.
References CVAL, RFCNB_Pkt::data, RFCNB_Pkt::len, RFCNB_Pkt::next, NULL, port, RFCNB_Alloc_Pkt(), RFCNB_CvtPad_Name(), RFCNB_errno, RFCNB_Free_Pkt(), RFCNB_Get_Pkt(), RFCNB_Pkt_Called_Offset, RFCNB_Pkt_Calling_Offset, RFCNB_Pkt_Error_Offset, RFCNB_Pkt_Hdr_Len, RFCNB_Pkt_IP_Offset, RFCNB_Pkt_N1Len_Offset, RFCNB_Pkt_N2Len_Offset, RFCNB_Pkt_Port_Offset, RFCNB_Pkt_Sess_Len, RFCNB_Pkt_Type, RFCNB_Pkt_Type_Offset, RFCNB_Put_Pkt(), RFCNB_Put_Pkt_Len, RFCNB_SESSION_ACK, RFCNB_SESSION_REJ, RFCNB_SESSION_REQUEST, RFCNB_SESSION_RETARGET, RFCNBE_Bad, RFCNBE_CallRejCNNP, RFCNBE_CallRejInfRes, RFCNBE_CallRejNLFCN, RFCNBE_CallRejNLOCN, RFCNBE_CallRejUnSpec, RFCNBE_ProtErr, SVAL, and TRUE.
Referenced by RFCNB_Call().
Variable Documentation
◆ RFCNB_Error_Strings
const char* RFCNB_Error_Strings[] |
Definition at line 47 of file rfcnb-util.c.
Referenced by manage_request(), and RFCNB_Get_Error().