diff options
author | Samba Release Account <samba-bugs@samba.org> | 1997-04-03 16:57:06 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1997-04-03 16:57:06 +0000 |
commit | 02e610b927c9038cf498f726d807ee95a14714be (patch) | |
tree | 10fb0eb802582534badda7c32590825317b3d992 /source3 | |
parent | fd09f506d32bdda4f6a3909dcef3fbdba2a7ab90 (diff) | |
download | samba-02e610b927c9038cf498f726d807ee95a14714be.tar.gz samba-02e610b927c9038cf498f726d807ee95a14714be.tar.bz2 samba-02e610b927c9038cf498f726d807ee95a14714be.zip |
name_type for name_query with smbclient -M name should be used. that way,
you get messages to the proper location.
lkcl
(This used to be commit deedac6523cdc435a1a26ad0c13d7a53042aafb6)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/client/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 708b80a23b..ac6878786a 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -2921,7 +2921,7 @@ static BOOL send_session_request(char *inbuf,char *outbuf) /* put in the destination name */ p = outbuf+len; - name_mangle(dest,p,name_type); + name_mangle(dest,p,0x20); /* 0x20 is the SMB server NetBIOS type. */ len += name_len(p); /* and my name */ @@ -4011,7 +4011,7 @@ static BOOL open_sockets(int port ) interpret_addr(lp_socket_address()))) != -1) { set_socket_options(bcast, "SO_BROADCAST"); - if (name_query(bcast, host, 0x20, True, True, *iface_bcast(dest_ip), + if (name_query(bcast, host, name_type, True, True, *iface_bcast(dest_ip), &dest_ip,0)) { failed = False; } @@ -4392,7 +4392,7 @@ static void usage(char *pname) strcpy(user_socket_options,optarg); break; case 'M': - name_type = 3; + name_type = 0x03; /* messages are sent to NetBIOS name type 0x3 */ strcpy(desthost,optarg); strupper(desthost); message = True; |