summaryrefslogtreecommitdiff
path: root/source4/lib/socket_wrapper
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r21729: Some more testsJelmer Vernooij2-6/+29
(This used to be commit d2baa8218cf504d6631d610f9fd393ad8c61574c)
2007-10-10r21707: Finally merge my (long-living) perlselftest branch.Jelmer Vernooij1-3/+3
This changes the main selftest code to be in perl rather than in shell script. The selftest script is now no longer a black box but a regular executable that takes --help. This adds the following features: * "make test TESTS=foo" will run only the tests that match the regex "foo" * ability to deal with expected failures. the suite will not warn about tests that fail and are known to fail, but will warn about other failing tests and tests that are succeeding tests but incorrectly marked as failing. * ability to print a summary with all failures at the end of the run It also opens up the way to the following features, which I hope to implement later: * "environments", for example having a complete domains with DCs and domain members in a testenvironment * only set up smbd if necessary (not when running LOCAL tests, for example) * different mktestsetup scripts per target. except for the mktestsetup script, we can use the same infrastructure for samba 3 or windows. (This used to be commit 38f867880beb40c691e9713f854426031310629c)
2007-10-10r21671: Add initial simple tests for socket wrapperJelmer Vernooij3-1/+84
(This used to be commit 872e2ad541478597191ca9e31872d5c8e2bbb832)
2007-10-10r19409: Pull in <sys/time.h> for struct timeval for non samba build (don'tLove Hörnquist Åstrand1-0/+1
depend on namespace pollution) (This used to be commit 5052d2d10693e67f1b7c6c71277c8d1bc9c8b612)
2007-10-10r19367: Solaris needs <sys/filio.h> for FIONREAD.Love Hörnquist Åstrand1-0/+1
(This used to be commit e2866ce78851a84c937408c0781fcc1e7107f663)
2007-10-10r19178: fix the standalone build of socket_wrapper by not usingStefan Metzmacher1-9/+34
samba's DLIST_ macros metze (This used to be commit 82abc39b559ccae832dd749495ebcfdffc2e5755)
2007-10-10r19176: Also require <fcntl.h> and <sys/ioctl.h> for non samba builds.Love Hörnquist Åstrand1-0/+2
(This used to be commit fe621c1ab277407fb62ad7bced829815b6625f22)
2007-10-10r19175: If not in _SAMBA_BUILD_, define _PUBLIC_ to nothing.Love Hörnquist Åstrand1-0/+2
(This used to be commit 8c2585f0cfb7ae229de066965a732904545f0869)
2007-10-10r19171: change the socket wrapper license toStefan Metzmacher2-36/+72
what heimdal uses... metze (This used to be commit 9f8809a16ef837f5cdf07ed2e383893d035e96d6)
2007-10-10r19136: No conflict, after "svn up" it applied correctly", merge 19126 from 3_0Volker Lendecke1-4/+7
(This used to be commit 042a22b6dd34bb147cf4f8cc10f98d4cda3ccd55)
2007-10-10r19097: add support for SUCKET_WRAPPER_PCAP_FILEStefan Metzmacher1-14/+306
we may need to rework the code to use something like PUSH_U32() into a data blob instead of the structs for the header layout. metze (This used to be commit 990dfc98e42a1c2369e77aa5cc2139680f4b16af)
2007-10-10r19084: make socket_wrapper more portable (standalone) and not use uintX_tStefan Metzmacher1-5/+5
metze (This used to be commit 7e89a0a28263e36ef7410122f987edf369154651)
2007-10-10r19082: add the source vs. destination address and tcp logicStefan Metzmacher1-0/+242
for SOCKET_WRAPPER_PCAP_FILE support. metze (This used to be commit 20945409b89be094c958f5f43c8c158f223f7911)
2007-10-10r18992: prepare SOCKET_WRAPPER_PCAP_FILE supportStefan Metzmacher1-29/+83
metze (This used to be commit 400098416c1a4d7ae51b86eced51bffd6134296a)
2007-10-10r18947: overload listen() and ioctl() in socket_wrapperStefan Metzmacher2-0/+42
metze (This used to be commit dfaccdca1b6954cd61828749d7b000f804f3b066)
2007-10-10r18918: - bail out with unsupported option to socket()Stefan Metzmacher1-18/+53
- don't reuse portnumbers in the autobind code - use if (!...) return; logic instead of if (...) { do everything } return for swrap_close metze (This used to be commit 68a65aa4490c12ca70db335f928f3ac507902337)
2007-10-10r18917: having 255 virtual interfaces available in socket wrapper means weAndrew Tridgell1-3/+5
stat() 240 files that don't exist on every broadcast. That's a bit excessive! reduce max virtual interfaces to 16 (This used to be commit 3c4100027c7d3806a2021cb4d70ec6adf9dd2dc6)
2007-10-10r18661: C++ warningsVolker Lendecke1-2/+2
(This used to be commit 771d30ca0c9d108b800bcfe33069f38dc4382662)
2007-10-10r18593: try to get the same socket_wrapper file building in samba3 and samba4Stefan Metzmacher1-3/+22
this is preparation of adding libreplace to samba3 later. metze (This used to be commit 26228e4b2e8debd84caebe84bb34bfbbf2ad405c)
2007-10-10r18586: fixed a potential fd and memory leak in the socket_wrapper codeAndrew Tridgell1-3/+14
(This used to be commit 6d53f2f5bc3a008f957be9e32df6830e1e29e8ed)
2007-10-10r18428: add my copyrightStefan Metzmacher1-1/+2
metze (This used to be commit d222fab2b5fcd44ad7825e605a9febbe9d211e7a)
2007-10-10r18427: set sin_port correctly on autobound socketStefan Metzmacher1-2/+4
metze (This used to be commit d373890fb26f3a593bacdb374f10d4279822b97d)
2007-10-10r18426: use 'family' consistantly instead of mixing 'domain' and 'family'Stefan Metzmacher2-17/+14
metze (This used to be commit 224f26602ac78dbdabd4602bce42e31141102f6c)
2007-10-10r18424: there's no need to allocate a wrapped socket for unix sockets,Stefan Metzmacher1-21/+16
also this makes sure the socket file isn't unlinked if using socket wrapper. metze (This used to be commit 7670e9ae6e8e64ddb3c7d99b3d44048519629225)
2007-10-10r18423: record accept, connect and close events in socket wrapperStefan Metzmacher1-1/+30
metze (This used to be commit 7f29471f0b6b9158da52522984a6ab3f8ace4f42)
2007-10-10r18417: overload send() and recv() by socket wrapperStefan Metzmacher2-3/+75
and add a dummy swrap_dump_packet() function which can later dump the packet content, so that a script can then generate a capture file for wireshark metze (This used to be commit d05cab5c626b5960448f206e8c17b89edbf78733)
2007-10-10r18213: don't list LIBREPLACE depdendecies explicit andStefan Metzmacher1-1/+1
always at it as first private dependencies metze (This used to be commit 135d096776b53ae09ffc2b4f767dfbd18139570f)
2007-10-10r18134: the lib/replace/system/filesys.h in this patch should beAndrew Tridgell1-1/+1
system/filesys.h, but it doesn't work. Metze is looking into it :-) (This used to be commit 0dc0b7ff613d39f93c1680116c04348b720afaff)
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-10r16716: patch from Bjoern Jacke to fix compiler warnings on AIXStefan Metzmacher1-0/+44
metze (This used to be commit 3e5de223f715343b6421d580dc1b3f9d67c980da)
2007-10-10r15358: Fix some compiler warnings / type safety. Found by tccJelmer Vernooij1-1/+1
(This used to be commit 12ba42de5886f9f4f9b1698476557e0c217d06f3)
2007-10-10r15318: Don't create empty static libraries as some hosts have trouble with ↵Jelmer Vernooij1-0/+1
them. (This used to be commit 1505d7c6001f8a35e728a14af2885b813c32ebe7)
2007-10-10r14977: more IBM checker fixesAndrew Tridgell1-5/+1
(This used to be commit cd106509b664e9ca53419a62550b256b7e5bde3c)
2007-10-10r14492: Fix shared libs - set SO_VERSION to 0 everywhere for now.Jelmer Vernooij1-1/+1
(This used to be commit 4682bc5ce047d81586447b9df82c91ed1fe677cf)
2007-10-10r14477: Remove the NOPROTO property - it's no longer used as proto.h is gone.Jelmer Vernooij1-1/+0
(This used to be commit 9c37f847d32d2f327a88c53a90af0c73126b76be)
2007-10-10r14327: Replace MAJOR_VERSION/MINOR_VERSION/RELEASE_VERSION with two parameters:Jelmer Vernooij1-3/+2
- VERSION: should contain the current version. Will be made part of the filename. - SO_VERSION: should contain the latest version that this on is compatible to. Will be used for setting the soname of the shared library. Fix sonames and use them on platforms that support them Remove symlinking code. ldconfig will take care of creating the symlinks now that we set the soname. (This used to be commit 7871b07e21c85c63d0ecac4c31b98dc112d18af5)
2007-10-10r13840: Mark some functions as public.Jelmer Vernooij1-11/+11
(This used to be commit 9a188eb1f48a50d92a67a4fc2b3899b90074059a)
2007-10-10r12710: Fix socket_wrapper: Make sure to fill in the socket family on theAndrew Bartlett1-0/+1
returned address. Andrew Bartlett (This used to be commit 57b0aae0d4b52d9a9879c4606d2e4b3ef0d3d0d7)
2007-10-10r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not usingJelmer Vernooij1-1/+1
the difference between these at all, and in the future the fact that INIT_OBJ_FILES include smb_build.h will be sufficient to have recompiles at the right time. (This used to be commit b24f2583edee38abafa58578d8b5c4b43e517def)
2007-10-10r12254: Add some (hopefully correct) descriptions for libraries that are ↵Jelmer Vernooij1-0/+1
installed. Install pkg-config files. (This used to be commit a86abe84e2cae7c6188c094a92c6b62aace02fdf)
2007-10-10r12074: in accept() we need to set socket name of the child socket by lookingStefan Metzmacher1-3/+19
up what address the client has used, as the socket is maybe bound to '0.0.0.0' metze (This used to be commit 81d322f91aa7097a51c13648211a0556b0424fa4)
2007-10-10r12073: fix vlgrind error, calculate the correct size for memcpy()Stefan Metzmacher1-6/+13
and don't assume out_len is >= sizeof(*in_addr) metze (This used to be commit 61dbe9e5070085117b12b5b37cf0e7fe4342e2a3)
2007-10-10r11555: - change socket_wrapper to support multiple IP'sStefan Metzmacher1-44/+260
- 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 (This used to be commit dbd01110d1a3e0f5914ae8d156723d6d6edf160c)
2007-10-10r11502: make sure we always use the 7 chars for the unix socket name.Stefan Metzmacher1-1/+1
this is to test if that works on irix 6.4 where we can only use 16 chars for the sun_path of the unix sockets. the plan is to make multiple interfaces possible with socket wrapper, and the format will change to ("%c%02X%04X", type, iface, port), which is also 7 char to the file name metze (This used to be commit e60d491864ad7ea7f981bc1918ace4ee3fb2d77a)
2007-10-10r11377: Add support for building LIBRARY elements as shared libraries:Jelmer Vernooij1-1/+5
- Adds -rpath bin/ so you don't have to install Samba in order to use compiled binaries. - Writes out pkg-config files when building shared libs - Supports automatic fallback to MERGEDOBJ (which is the default) or OBJ_LIST (if ld -r is not supported) Building with shared libs reduces the size of the Samba binaries from 197 Mb to 60 Mb (including libraries) on my system (GCC4, with debugging). To build with shared libraries support enabled, run: LIBRARY_OUTPUT_TYPE=SHARED_LIBRARY ./config.status init functions don't get called correctly yet when using shared libs, so you won't be able to actually run anything with success :-) Once init functions are done, I'll look at support for loading shared modules once again. Based on a patch by Peter Novodvorsky (nidd on IRC). (This used to be commit 0b54405685674a2b19a28d77aae5b1136b5a4728)
2007-10-10r11244: Relative path names in .mk filesJelmer Vernooij1-1/+1
(This used to be commit 24e10300906c380919d2d631bfb3b8fd6b3f54ba)
2007-10-10r11214: Remove scons files (see ↵Jelmer Vernooij1-14/+0
http://lists.samba.org/archive/samba-technical/2005-October/043443.html) (This used to be commit 7fffc5c9178158249be632ac0ca179c13bd1f98f)
2007-10-10r11052: bring samba4 uptodate with the samba4-winsrepl branch,Stefan Metzmacher1-0/+1
before the bad merge metze (This used to be commit 471c0ca4abb17fb5f73c0efed195c67628c1c06e)
2007-10-10r11037:Stefan Metzmacher1-1/+0
(This used to be commit 6913e338405a5aca5c70cf6e022532c596ed0a36)
2007-10-10r10586: Add MergedObject() builder. Default to Library() ratherJelmer Vernooij1-1/+1
then StaticLibrary() (This used to be commit b53313dc517986c69a4e4cb8fe3885b696f8faa1)