1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-07 12:23:51 +03:00
Commit Graph

30 Commits

Author SHA1 Message Date
Andrew Tridgell
eba6c84eff r18301: I discovered how to load the warnings from a build farm build into
emacs compile mode (hint, paste to a file, and compile as "cat
filename").

This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
2007-10-10 14:18:04 -05:00
Jelmer Vernooij
f7afa1cb77 r17930: Merge noinclude branch:
* Move dlinklist.h, smb.h to subsystem-specific directories
 * Clean up ads.h and move what is left of it to dsdb/
   (only place where it's used)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
f20e251bfd r17586: merge lib/netif into lib/socket and use -lnsl -lsocket on the
configure check for the interfaces.

should fix the build on some old sun boxes

metze
2007-10-10 14:15:39 -05:00
Andrew Tridgell
61c6100617 r15854: more talloc_set_destructor() typesafe fixes 2007-10-10 14:08:32 -05:00
Jelmer Vernooij
3dd477ca51 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
2007-10-10 13:57:27 -05:00
Jelmer Vernooij
1228358767 r13924: Split more prototypes out of include/proto.h + initial work on header
file dependencies
2007-10-10 13:52:24 -05:00
Stefan Metzmacher
02d6dfa1da r13345: let us replicate with NT4sp6a
I don't yet know what the extra data in the start_association call mean...

This also let w2k use WREPL_REPL_INFORM messages to us, but w2k3 doesn't
it do it yet...

metze
2007-10-10 13:51:47 -05:00
Andrew Bartlett
88198c4881 r12804: This patch reworks the Samba4 sockets layer to use a socket_address
structure that is more generic than just 'IP/port'.

It now passes make test, and has been reviewed and updated by
metze. (Thankyou *very* much).

This passes 'make test' as well as kerberos use (not currently in the
testsuite).

The original purpose of this patch was to have Samba able to pass a
socket address stucture from the BSD layer into the kerberos routines
and back again.   It also removes nbt_peer_addr, which was being used
for a similar purpose.

It is a large change, but worthwhile I feel.

Andrew Bartlett
2007-10-10 13:49:57 -05:00
Stefan Metzmacher
82d5bdb1e7 r12602: fix compiler warning
metze
2007-10-10 13:49:02 -05:00
Stefan Metzmacher
043f5c1054 r12370: - if we got a reply without a pending request, mark the socket as dead
instead of segfaulting

metze
2007-10-10 13:47:31 -05:00
Stefan Metzmacher
58285115c8 r12247: - reject freeing the wrepl_socket inside of wrepl_socket_dead()
- free it at the end of wrepl_socket_dead() if needed

metze
2007-10-10 13:47:24 -05:00
Stefan Metzmacher
a01d5a769c r12240: if the caller isn't interessted in the reply packet, just free it
(mostly use for send_only requests, where we don't have a reply at all)

metze
2007-10-10 13:47:23 -05:00
Stefan Metzmacher
064d9409c3 r12238: don't crash when an error happens while connecting and the packet_context isn't inplace yet
metze
2007-10-10 13:47:23 -05:00
Stefan Metzmacher
f0105b7fcd r12200: - move the the winsreplication client and server code to the packet_context
system
- this needs to be in one big patch, because of the merging code,
  that changes client in server connections and the other way around
- use socket_connect_send/_recv() in the client code

metze
2007-10-10 13:47:17 -05:00
Stefan Metzmacher
f04001f280 r11487: thanks to make test I noticed a dead lock bug, in the last change,
this only happens with socket_wrapper as socket_connect() returns NT_STATUS_OK
instead of NT_STATUS_MORE_PROCESSING_REQUIRED, and we missed to replace the
fde event handler...

metze
2007-10-10 13:45:44 -05:00
Stefan Metzmacher
bf0b96f057 r11485: prevent us from calling the request handler recursiv when
the handler calls talloc_free(wrepl_socket)

metze
2007-10-10 13:45:43 -05:00
Stefan Metzmacher
3f7b09a308 r11090: we need this to run correct under socket_wrapper
metze
2007-10-10 13:44:47 -05:00
Stefan Metzmacher
e7ee73a747 r10836: giving NT_STATUS_NO_MEMORY, when the connection fails wasn't a good idea...
metze
2007-10-10 13:39:33 -05:00
Stefan Metzmacher
dfc95de8fa r10766: - make it possible to mark a wrepl_request as send only,
used for WREPL_REPL_INFORM* messsages
- make it possible to close the connection after a request was send
  used for WREPL_ASSOCIATION_STOP
- fix the torture test that tests the assoc context handling
  between connections, you can issue a request and get the reply
  on another connection, I think we should not implement that in our server
  code, as I think it's a security hole, you can cause a windows server
  to send the replies to someone another client, that doesn't wait for data,
  and as there're no massage_id in the protocol the client would be confused
  by a replies that doesn't belong to a query

metze
2007-10-10 13:39:28 -05:00
Stefan Metzmacher
2f46e54e1b r10761: we need to use a pointer to a nbt_name to fix compiler warnings, because we can
only use a pointers to unknown types in proto.h

metze
2007-10-10 13:39:28 -05:00
Stefan Metzmacher
131e5dfe69 r10638: - add wrepl_socket_merge() function that creates a wrepl_socket on top
of an existing socket, that is needed to handle WREPL_REPL_UPDATE
  in the server, because we need to flig the connection and act as client on it

metze
2007-10-10 13:39:14 -05:00
Stefan Metzmacher
ba3685c41d r10627: - use a wrepl specific enum for the node type
- the unknown flag 0x10 seems to mean that this name was localy registered on this
  currently asked server, that flag is not present in replica records

metze
2007-10-10 13:39:13 -05:00
Stefan Metzmacher
b98efc2905 r10608: - fix hierachical memory handling in ndr_pull_nbt_name
- add wrepl_nbt_name scalar type and do the pull/push in the ndr layer
  instead of the caller
- give the flags and group_flag in the wrepl_name a meaning

metze
2007-10-10 13:39:12 -05:00
Stefan Metzmacher
bfd548ca10 r10569: add all info that we have to wrepl_name, as we need it for replication :-)
metze
2007-10-10 13:39:06 -05:00
Stefan Metzmacher
ff12723477 r10547: - add wrepl_request timeout handling
- when we got an unexpected READ event, we need to do a socket_recv() to find connection errors
  and we need to mark the socket as dead (and remove the fde_event) to prevent,
  endless loops on broken connections

tridge: we should look carefull at other protocol, to handle broken connections without spinning

metze
2007-10-10 13:39:04 -05:00
Stefan Metzmacher
495996cfc4 r10537: - we now use a much nicer way to handle talloc_free(timed_event)
the events code replaces a destructor to one that returns allways -1
  while it's calling the event handler
- we don't need the composite and winsrepl specific fixes any more
- this also fixes the problem with smbcli, dcerpc, cldap, ldap and nbt
  request timeouts

metze
2007-10-10 13:39:03 -05:00
Stefan Metzmacher
0983452bf8 r10530: - fix some crash bugs when we lost the connection...
metze
2007-10-10 13:39:02 -05:00
Stefan Metzmacher
7492afa48d r10129: fix sinple ip's in wins replication, packets
metze
2007-10-10 13:38:01 -05:00
Stefan Metzmacher
e44aca0a8e r10115: bind client connection to the best interface, to the partner
metze
2007-10-10 13:38:00 -05:00
Stefan Metzmacher
d8b84112bb r10113: rename libcli/wins to libcli/wrepl
metze
2007-10-10 13:38:00 -05:00