diff options
Diffstat (limited to 'contrib/smbfs/include/netsmb/nb_lib.h')
-rw-r--r-- | contrib/smbfs/include/netsmb/nb_lib.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/smbfs/include/netsmb/nb_lib.h b/contrib/smbfs/include/netsmb/nb_lib.h index dbbdc6b..13498cf 100644 --- a/contrib/smbfs/include/netsmb/nb_lib.h +++ b/contrib/smbfs/include/netsmb/nb_lib.h @@ -30,6 +30,7 @@ * SUCH DAMAGE. * * $Id: nb_lib.h,v 1.2 2000/07/17 01:49:27 bp Exp $ + * $FreeBSD$ */ #ifndef _NETSMB_NB_LIB_H_ #define _NETSMB_NB_LIB_H_ @@ -63,6 +64,8 @@ struct nb_ctx { char * nb_nsname; /* name server */ struct sockaddr_in nb_ns; /* ip addr of name server */ struct sockaddr_in nb_lastns; + long nb_nmbtcpport; /* default: NMB_TCP_PORT = 137 */ + long nb_smbtcpport; /* default: SMB_TCP_PORT = 139 */ }; /* @@ -128,7 +131,7 @@ int nb_snballoc(int namelen, struct sockaddr_nb **); void nb_snbfree(struct sockaddr*); int nb_sockaddr(struct sockaddr *, struct nb_name *, struct sockaddr_nb **); -int nb_resolvehost_in(const char *, struct sockaddr **); +int nb_resolvehost_in(const char *, struct sockaddr **, long); int nbns_resolvename(const char *, struct nb_ctx *, struct sockaddr **); int nb_getlocalname(char *name); int nb_enum_if(struct nb_ifdesc **, int); |