Displaying 1 result from an estimated 1 matches for "lp_wins_server".
1997 Sep 23
0
PATCH: Wins support in smbclient
....c Tue Sep 23 21:52:21 1997
+++ client.c Tue Sep 23 22:17:21 1997
@@ -4136,8 +4136,20 @@
#ifdef USENMB
/* Try and resolve the name with the netbios server */
int bcast;
+ struct in_addr wins_addr;
- if ((bcast = open_socket_in(SOCK_DGRAM, 0, 3,
+ wins_addr.s_addr = interpret_addr (lp_wins_server ());
+
+ if (wins_addr.s_addr && (bcast = open_socket_out (SOCK_DGRAM,
+ &wins_addr,
+ 137, 3000)) != -1) {
+ if (name_query (bcast, host, 0x20, False, True, wins_addr, &dest_ip, 0)) {
+ failed = False;
+ }
+ close (bcast);
+ }
+
+ if (failed && (bc...