| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | | |
metze
|
| | |
| | |
| | |
| | | |
metze
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
instead make the normal composite_done() and composite_error()
functions automatically trigger a delayed callback if the caller has
had no opportunity to setup a async callback
this removes one of the common mistakes in writing a composite function
|
| | |
| | |
| | |
| | |
| | |
| | | |
up what address the client has used, as the socket is maybe bound to '0.0.0.0'
metze
|
| | |
| | |
| | |
| | |
| | |
| | | |
and don't assume out_len is >= sizeof(*in_addr)
metze
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
to match all other _recv functions we have
metze
|
| | |
| | |
| | |
| | |
| | |
| | | |
when we havn't finished popt.
Andrew Bartlett
|
| | | |
|
| | |
| | |
| | |
| | | |
talloc, and ldb is now LGPL
|
| | |
| | |
| | |
| | | |
request strucutre. It will take a while for this to happen everywhere.
|
| | | |
|
| | |
| | |
| | |
| | | |
- removed an unnecessary level of pointer in ldb_search structure
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
problem was caused by a callback destroying the packet processing
context while that context was being used in packet_recv()
This is the first time we have used the ability of talloc destructors
to 'refuse' a free request. It works well in this case as it makes the
composite API simpler to use for other code, and isolates the
complexity of having callbacks destroying the packet context to the
packet.c code.
|
| | | |
|
| | |
| | |
| | |
| | | |
this fixes a valgrind error
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
socket_connect_send() rather than the lower level socket code. Also
simplified the state structures a fair bit, and added name resolution,
fixing a bug where the multi-port connect code did a separate name
resolution for each port being tried.
|
| | |
| | |
| | |
| | | |
a bit more consistent
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- removed the duplicate calls to socket_connect(), instead creating a
common function socket_send_connect() used by both code paths
- fixed some NULL ptr checks (probably was cut-and-paste bugs)
- ensure we use the result of the name resolution
- added a few comments
- use 'fde' for the file description event. The variable name
'connect_ev' immediately made me think of an event context, not a
fde. Using common variable name conventions makes code a bit easier
to read
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
to the
resolve_name if it's not used?
I know this is my code, but I don't understand why it breaks tests.
Volker
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
<dtucker@zip.com.au>
Jeremy.
|
| | |
| | |
| | |
| | | |
enabling of packet serialisation
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
metze
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- const uint8_t * in all places
- update header prototype
metze
|
| | | |
|
| | |
| | |
| | |
| | | |
sign of the comparison right :-)
|
| | |
| | |
| | |
| | |
| | | |
under-reads we could end up supplying a buffer to the client that has
an incorrect length
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
allowing it to specify the initial read size (thus preventing
over-reading) and to stop the recv process when needed. This is used
by the dcerpc socket code, which relies on not getting packets when it
isn't ready for them
|
| | |
| | |
| | |
| | | |
packet code
|
| | |
| | |
| | |
| | |
| | |
| | | |
* COPYRIGHT (C) 1986 Gary S. Brown. You may use this program, or
* code or tables extracted from it, as desired without restriction.
Jeremy.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
that...
fix the build with cc on IRIX 6.5 us4
tridge: we should post this to the appweb maintainers, also with my
hex constant fix from a few weeks ago!
metze
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
handle optional request serialisation (this is something that is
commonly needed on stream connections)
|
| | |
| | |
| | |
| | | |
caseless characters as lower/upper
|
| | |
| | |
| | |
| | |
| | | |
packet parsing code. This simplifies the logic in the raw client
library a fair bit
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
something that Andrew Bartlett has been asking for for a while, and
when I started having to re-invent this packet parsing code yet again
for SMB2 I decided it was time to do it generically
you use it by providing a "is this a full packet yet?" helper function
to the packet_*() functions, which then handle all the logic of
partial packet buffering.
This also goes to great lengths to operate efficiently, minimising the
number of recv system calls.
|
| | |
| | |
| | |
| | | |
ldb_result code coud rely on that)
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This patch changes the way lsb_search is called and the meaning of the returned integer.
The last argument of ldb_search is changed from struct ldb_message to struct ldb_result
which contains a pointer to a struct ldb_message list and a count of the number of messages.
The return is not the count of messages anymore but instead it is an ldb error value.
I tryed to keep the patch as tiny as possible bu as you can guess I had to change a good
amount of places. I also tried to double check all my changes being sure that the calling
functions would still behave as before. But this patch is big enough that I fear some bug
may have been introduced anyway even if it passes the test suite. So if you are currently
working on any file being touched please give it a deep look and blame me for any error.
Simo.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- SOCKET_WRAPPER_DEFAULT_IFACE=X specifies the default interface
for 127.0.0.X
- we now use multiple interfaces for smbtorture in make test
127.0.0.26-127.0.0.31
- and 127.0.0.1 only for smbd
the are more work needed for better support for broacast messages...
but this is enough for the winsrepl tests
metze
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
to ldb, based on the sessionInfo we now pass around.
Andrew Bartlett
|
| | | |
|
| | | |
|