r3278: - rewrote the client side rpc connection code to use lib/socket/
authorAndrew Tridgell <tridge@samba.org>
Wed, 27 Oct 2004 03:15:42 +0000 (03:15 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:04:49 +0000 (13:04 -0500)
commit9d055846f225bea4953822f40fab1d2f1a2e2d07
tree9a513f3eeb7223a96e1df1d65060b095002e534e
parent5ae448116165a6bb9d792686db825b8b47f27201
r3278: - rewrote the client side rpc connection code to use lib/socket/
  rather than doing everything itself. This greatly simplifies the
  code, although I really don't like the socket_recv() interface (it
  always allocates memory for you, which means an extra memcpy in this
  code)

- fixed several bugs in the socket_ipv4.c code, in particular client
  side code used a non-blocking connect but didn't handle EINPROGRESS,
  so it had no chance of working. Also fixed the error codes, using
  map_nt_error_from_unix()

- cleaned up and expanded map_nt_error_from_unix()

- changed interpret_addr2() to not take a mem_ctx. It makes absolutely
  no sense to allocate a fixed size 4 byte structure like this. Dozens
  of places in the code were also using interpret_addr2() incorrectly
  (precisely because the allocation made no sense)
(This used to be commit 7f2c771b0e0e98c5c9e5cf662592d64d34ff1205)
20 files changed:
source4/auth/auth_domain.c
source4/client/smbmount.c
source4/ldap_server/ldap_server.c
source4/lib/interface.c
source4/lib/socket/socket.c
source4/lib/socket/socket_ipv4.c
source4/lib/socket/socket_unix.c
source4/lib/util.c
source4/lib/util_sock.c
source4/lib/wins_srv.c
source4/libads/ldap.c
source4/libcli/namequery.c
source4/libcli/util/errormap.c
source4/librpc/rpc/dcerpc_sock.c
source4/librpc/rpc/dcerpc_util.c
source4/ntvfs/posix/pvfs_wait.c
source4/rpc_server/dcerpc_sock.c
source4/smb_server/smb_server.c
source4/torture/rpc/epmapper.c
source4/utils/nmblookup.c