Displaying 1 result from an estimated 1 matches for "wins_addr".
Did you mean:
sin_addr
1997 Sep 23
0
PATCH: Wins support in smbclient
...me
since this is my first patch.
Baldur
-------------- next part --------------
--- /root/client.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_add...