summaryrefslogtreecommitdiff
path: root/source4/lib/socket
AgeCommit message (Collapse)AuthorFilesLines
2007-12-21r26335: Specify name_resolve_order to socket code.Jelmer Vernooij4-6/+21
(This used to be commit b03e5d00110be3f1fe5809dad4eb6ca5cea7463d)
2007-12-21r26325: Remove use of global_loadparm in netif.Jelmer Vernooij2-18/+19
(This used to be commit e452cb28594f23add7c00247ed39e8323aea78a6)
2007-12-21r26313: Fix more uses of static loadparm.Jelmer Vernooij1-9/+8
(This used to be commit 6fd0d9d3b75546d08c24c513e05b1843d5777608)
2007-12-21r25624: Remove ipv4_addr hack. Only causes 4 extra includes of ↵Jelmer Vernooij2-37/+30
system/network.h because we stripped down includes. (This used to be commit 262c1c23a61f1f4fae13e0a61179fe98b682cecf)
2007-10-10r25600: fix stupid typo...this should fix the build on sunXStefan Metzmacher1-1/+1
metze (This used to be commit 192c05556f786b4523fb325cee6d87b251aee059)
2007-10-10r25545: Use inet_ntop for ipv4 code as well - should make it easier to share ↵Jelmer Vernooij2-12/+17
code between IPv4 and IPv6 later on. (This used to be commit e3df90927b2878917f0f555772a875f05bf609e8)
2007-10-10r25522: Convert to standard bool types.Jelmer Vernooij6-69/+69
(This used to be commit 5e814287ba475e12f8cc934fdd09b199dcdfdb86)
2007-10-10r25430: Add the loadparm context to all parametric options.Jelmer Vernooij1-1/+1
(This used to be commit fd697d77c9fe67a00939a1f04b35c451316fff58)
2007-10-10r25411: Fix IPv6 socket backend.Jelmer Vernooij1-10/+12
(This used to be commit 02b4621181c35ebf3e7c2531302b44863b94f8bf)
2007-10-10r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij3-3/+3
(This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
2007-10-10r25384: Support DGRAM IPv6 sockets.Jelmer Vernooij1-10/+23
(This used to be commit e227c749711aef2f2ce2eb66f7f3485962f36399)
2007-10-10r25122: fix interface detection codeStefan Metzmacher1-0/+3
jelmer: I wonder what broke it... metze (This used to be commit 4c8063b9c4ca2c0359859338a8335e177e9c31bd)
2007-10-10r25043: Avoid allocation on with NULL parent.Jelmer Vernooij1-2/+3
(This used to be commit 3f30cd5688a532a2d6c4d970c2bc759efa2a1b04)
2007-10-10r25035: Fix some more warnings, use service pointer rather than service ↵Jelmer Vernooij1-1/+1
number in more places. (This used to be commit df9cebcb97e20564359097148665bd519f31bc6f)
2007-10-10r25027: Fix more warnings.Jelmer Vernooij1-1/+1
(This used to be commit 5085c53fcfade614e83d21fc2c1a5bc43bb2a729)
2007-10-10r25026: Move param/param.h out of includes.hJelmer Vernooij4-0/+4
(This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
2007-10-10r25001: Fix more C++ and other warnings, fix some of the indentation with ↵Jelmer Vernooij1-1/+2
ts=4 lines that I accidently added earlier. (This used to be commit 0bcb21ed740fcec0f48ad36bbc2deee2948e8fc7)
2007-10-10r24992: Remove some uses of lp_*().Jelmer Vernooij1-4/+0
(This used to be commit a5a1a5540510cdb1bfbb3e89b84f4ba5b2812c55)
2007-10-10r24939: Integrate IPv4 and IPv6 modules (a lot of code can be shared).Jelmer Vernooij3-556/+443
(This used to be commit 15f47aaf533bec4d7d82d75d27c233b3b0b261cd)
2007-10-10r24937: Merge tests spoolss RPC callbacks.Jelmer Vernooij1-0/+2
(This used to be commit 9b256a0ca232ea6e89771bf73a1adf877273a752)
2007-10-10r24712: No longer expose the 'BOOL' data type in any interfaces.Jelmer Vernooij1-2/+2
(This used to be commit 1ce32673d960c8b05b6c1b1b99e1976a402417ae)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell12-36/+24
There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10r23701: when we create a new socket with socket_accept(), clear any flags thatAndrew Tridgell1-0/+1
were set in the old one. Otherwise SOCKET_FLAG_NOCLOSE causes a major fd leak (This used to be commit 4e31eda055781a710d285c509d0c51b42e351431)
2007-10-10r22960: added a SOCKET_FLAG_NOCLOSE to allow us to tell the socket layer thatAndrew Tridgell2-1/+12
we will handle the close of the socket (This used to be commit d57aaf5ba60464e5e782353a0879a84f8c70dd32)
2007-10-10r22602: s/HAVE_SOCKET_IPV6/HAVE_IPV6/ to match the define used by Heimdal.Jelmer Vernooij2-2/+2
(This used to be commit 5ff665b6531fdb4c7e56c49b7f923546d93b384c)
2007-10-10r22503: Add support for dgram to socket_ipv6. No tests yet...Jelmer Vernooij1-3/+99
(This used to be commit 2f64b758460a3bde6c7b4a240998fb76bd6e0827)
2007-10-10r22488: Hopefully fix ipv6.Jelmer Vernooij1-3/+16
(This used to be commit 7a0da66e39fde8c06ab8af94a14113141076c969)
2007-10-10r22404: more dependencies which should be privateStefan Metzmacher1-4/+3
metze (This used to be commit e0e35965d1eaab182941d17da744b70c4234ca52)
2007-10-10r22089: check the return value of interpret_addr2()Andrew Tridgell1-0/+3
(This used to be commit af6661e442ff37070cf49b6d9ab85a1c045ef293)
2007-10-10r21656: Move tests a bit closer to the things they test, should make syncing ↵Jelmer Vernooij1-0/+191
with samba3 easier. (This used to be commit 4d755fb5d7adedd1dd8bad917b921324411bfd59)
2007-10-10r18708: much nicer fixStefan Metzmacher1-2/+1
metze (This used to be commit 8999a9eb2e7f3e8e4ff8f5311b9375bde590f2a5)
2007-10-10r18704: readd BOOL define to fix the buildStefan Metzmacher1-0/+1
but I think this is the wrong fix... metze (This used to be commit 018b142d93ba2d36cd68db407e4a591461137b9b)
2007-10-10r18685: we don't need this hereStefan Metzmacher1-1/+0
metze (This used to be commit cc729e646c5e3cb7919d033f90bda1dce545ff6b)
2007-10-10r18589: make inclusion of net/if.h conditional. It breaks HPUX with gcc.Andrew Tridgell1-4/+7
(This used to be commit ac71f40f8ff13c422e528dd5013842aa5a5004e7)
2007-10-10r18563: - move more of the header checks into lib/replace/Andrew Tridgell1-5/+0
- change the test for net/if.h to do a full compile, not just an existance test. net/if.h is completely broken on hpux, and can never compile (it uses stuff before it defines it), so by using a AC_TRY_COMPILE() test we avoid using net/if.h on hpux, which should fix the build (This used to be commit bde18f3d5ce837f600bae8d63f31d92a579fe1f2)
2007-10-10r18553: - confdefs.h is always included in configure checks no need to ↵Stefan Metzmacher1-3/+1
include them explicit - undefine _XOPEN_SOURCE_EXTENDED for the AIX interface detection test #define _XOPEN_SOURCE_EXTENDED 1 brings in sa_len to sockaddr on Tru64 which means the AIX code compiles... metze (This used to be commit 04a0a5144a249e12a9dcb327c5b6055e6a6135db)
2007-10-10r18548: don't use #elif as we don't notice when 2 HAVE_IFACE_ versions are ↵Stefan Metzmacher1-3/+9
defined try to find the problem on Tru64...where configure says the AIX method finds 1 interface but later can't compile netif.c. (revision 18486 was the last that detects ifconf with 2 interfaces) metze (This used to be commit 8fa9852160680054ddb5316c4ee03a03f8553a37)
2007-10-10r18321: fixed some warnings on AIXAndrew Tridgell1-0/+1
(This used to be commit 449fab2c264aa50601f9a2d3310f1910ba97706b)
2007-10-10r18213: don't list LIBREPLACE depdendecies explicit andStefan Metzmacher1-3/+3
always at it as first private dependencies metze (This used to be commit 135d096776b53ae09ffc2b4f767dfbd18139570f)
2007-10-10r18130: the move to system/ in libreplace broke some things ... should beAndrew Tridgell1-3/+3
happier now (This used to be commit 18542f184f75074e56a9793a9e3b6c6d747bb9e6)
2007-10-10r17930: Merge noinclude branch:Jelmer Vernooij1-1/+1
* 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) (This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
2007-10-10r17586: merge lib/netif into lib/socket and use -lnsl -lsocket on theStefan Metzmacher5-0/+851
configure check for the interfaces. should fix the build on some old sun boxes metze (This used to be commit f20e251bfd9f1eb7ce5c00739631b1625a2aa467)
2007-10-10r17524: Lets see if we can try and get the socket_wapper includes to beAndrew Bartlett1-1/+1
pre-processed last, and get AIX and some other hosts to pass make test again (I think the macros were being over-overridden). Andrew Bartlett (This used to be commit 650b99b19d3ede84848ebe747f8afbf2cce9d7e2)
2007-10-10r17253: add configure checks for writev/readv to see how portable they'reStefan Metzmacher1-0/+3
metze (This used to be commit b5c06d5b4ca4da6d1b582a33830471443a62d842)
2007-10-10r17197: This patch moves the encryption of bulk data on SASL negotiated securityAndrew Bartlett2-14/+19
contexts from the application layer into the socket layer. This improves a number of correctness aspects, as we now allow LDAP packets to cross multiple SASL packets. It should also make it much easier to write async LDAP tests from windows clients, as they use SASL by default. It is also vital to allowing OpenLDAP clients to use GSSAPI against Samba4, as it negotiates a rather small SASL buffer size. This patch mirrors the earlier work done to move TLS into the socket layer. Unusual in this pstch is the extra read callback argument I take. As SASL is a layer on top of a socket, it is entirely possible for the SASL layer to drain a socket dry, but for the caller not to have read all the decrypted data. This would leave the system without an event to restart the read (as the socket is dry). As such, I re-invoke the read handler from a timed callback, which should trigger on the next running of the event loop. I believe that the TLS code does require a similar callback. In trying to understand why this is required, imagine a SASL-encrypted LDAP packet in the following formation: +-----------------+---------------------+ | SASL Packet #1 | SASL Packet #2 | ----------------------------------------+ | LDAP Packet #1 | LDAP Packet #2 | ----------------------------------------+ In the old code, this was illegal, but it is perfectly standard SASL-encrypted LDAP. Without the callback, we would read and process the first LDAP packet, and the SASL code would have read the second SASL packet (to decrypt enough data for the LDAP packet), and no data would remain on the socket. Without data on the socket, read events stop. That is why I add timed events, until the SASL buffer is drained. Another approach would be to add a hack to the event system, to have it pretend there remained data to read off the network (but that is ugly). In improving the code, to handle more real-world cases, I've been able to remove almost all the special-cases in the testnonblock code. The only special case is that we must use a deterministic partial packet when calling send, rather than a random length. (1 + n/2). This is needed because of the way the SASL and TLS code works, and the 'resend on failure' requirements. Andrew Bartlett (This used to be commit 5d7c9c12cb2b39673172a357092b80cd814850b0)
2007-10-10r17168: Now that TLS (and soon SASL) is below the socket layer, we need toAndrew Bartlett2-11/+24
make the testnonblock skip some things. The socket *under* the tls socket is still tested. Andrew Bartlett (This used to be commit 9c33c6a20a77e3f15eac3d62488117517afad940)
2007-10-10r15854: more talloc_set_destructor() typesafe fixesAndrew Tridgell1-2/+1
(This used to be commit 61c6100617589ac6df4f527877241464cacbf8b3)
2007-10-10r15798: shortcut the lookup of "localhost" in the ipv6 backendAndrew Tridgell1-1/+5
(This used to be commit dea82fa615e33115e42ef04c8d2a54788aa38e9a)
2007-10-10r15573: Fix build of systems that have iconv headers in non-standard locationsJelmer Vernooij1-1/+1
Split of system/locale.h header from system/iconv.h Previously, iconv wasn't being used on these systems (This used to be commit aa6d66fda69779d1c2948a1aca85dbd5208f1cba)
2007-10-10r15400: Move the TLS code behind the socket interface.Andrew Bartlett2-3/+6
This reduces caller complexity, because the TLS code is now called just like any other socket. (A new socket context is returned by the tls_init_server and tls_init_client routines). When TLS is not available, the original socket is returned. Andrew Bartlett (This used to be commit 09b2f30dfa7a640f5187b4933204e9680be61497)