]>
Commit | Line | Data |
---|---|---|
9864722f AJ |
1 | #ifndef _RFCNB_RFCNB_UTIL_H |
2 | #define _RFCNB_RFCNB_UTIL_H | |
3 | ||
7c16470c | 4 | /* UNIX RFCNB (RFC1001/RFC1002) NetBIOS implementation |
6ca34f6f HN |
5 | * |
6 | * Version 1.0 | |
7 | * RFCNB Utility Defines | |
8 | * | |
9 | * Copyright (C) Richard Sharpe 1996 | |
10 | * | |
11 | */ | |
7c16470c AJ |
12 | |
13 | /* | |
6ca34f6f HN |
14 | * This program is free software; you can redistribute it and/or modify |
15 | * it under the terms of the GNU General Public License as published by | |
16 | * the Free Software Foundation; either version 2 of the License, or | |
17 | * (at your option) any later version. | |
18 | * | |
19 | * This program is distributed in the hope that it will be useful, | |
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22 | * GNU General Public License for more details. | |
23 | * | |
24 | * You should have received a copy of the GNU General Public License | |
25 | * along with this program; if not, write to the Free Software | |
26 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
27 | */ | |
7c16470c | 28 | |
9864722f AJ |
29 | #include "rfcnb/std-includes.h" |
30 | ||
7c16470c AJ |
31 | void RFCNB_CvtPad_Name(char *name1, char *name2); |
32 | ||
33 | void RFCNB_AName_To_NBName(char *AName, char *NBName); | |
34 | ||
35 | void RFCNB_NBName_To_AName(char *NBName, char *AName); | |
36 | ||
6ca34f6f | 37 | void RFCNB_Print_Hex(FILE * fd, struct RFCNB_Pkt *pkt, int Offset, int Len); |
7c16470c | 38 | |
6ca34f6f | 39 | void RFCNB_Print_Pkt(FILE * fd, char *dirn, struct RFCNB_Pkt *pkt, int len); |
7c16470c AJ |
40 | |
41 | int RFCNB_Name_To_IP(char *host, struct in_addr *Dest_IP); | |
42 | ||
bcc17f9c | 43 | int RFCNB_Close(int fd); |
7c16470c AJ |
44 | |
45 | int RFCNB_IP_Connect(struct in_addr Dest_IP, int port); | |
46 | ||
47 | int RFCNB_Session_Req(struct RFCNB_Con *con, | |
48 | char *Called_Name, | |
49 | char *Calling_Name, | |
6ca34f6f | 50 | BOOL * redirect, |
7c16470c | 51 | struct in_addr *Dest_IP, |
6ca34f6f | 52 | int *port); |
231fda33 FC |
53 | |
54 | typedef void RFCNB_Prot_Print_Routine(FILE * fd, int dir, struct RFCNB_Pkt *pkt, int header, int payload); | |
55 | extern RFCNB_Prot_Print_Routine *Prot_Print_Routine; | |
9864722f AJ |
56 | |
57 | #endif /* _RFCNB_RFCNB_UTIL_H */ |