1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

64 Commits

Author SHA1 Message Date
Stefan Metzmacher
e770df4c87 r19178: fix the standalone build of socket_wrapper by not using
samba's DLIST_ macros

metze
(This used to be commit 82abc39b559ccae832dd749495ebcfdffc2e5755)
2007-10-10 14:20:50 -05:00
Love Hörnquist Åstrand
9058263a6b r19176: Also require <fcntl.h> and <sys/ioctl.h> for non samba builds.
(This used to be commit fe621c1ab277407fb62ad7bced829815b6625f22)
2007-10-10 14:20:50 -05:00
Love Hörnquist Åstrand
5b34e585fc r19175: If not in _SAMBA_BUILD_, define _PUBLIC_ to nothing.
(This used to be commit 8c2585f0cfb7ae229de066965a732904545f0869)
2007-10-10 14:20:49 -05:00
Stefan Metzmacher
a3a619a364 r19171: change the socket wrapper license to
what heimdal uses...

metze
(This used to be commit 9f8809a16ef837f5cdf07ed2e383893d035e96d6)
2007-10-10 14:20:48 -05:00
Volker Lendecke
59b6b665d6 r19136: No conflict, after "svn up" it applied correctly", merge 19126 from 3_0
(This used to be commit 042a22b6dd34bb147cf4f8cc10f98d4cda3ccd55)
2007-10-10 14:20:38 -05:00
Stefan Metzmacher
e6f16b7421 r19097: add support for SUCKET_WRAPPER_PCAP_FILE
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-10 14:20:35 -05:00
Stefan Metzmacher
a484b8367b r19084: make socket_wrapper more portable (standalone) and not use uintX_t
metze
(This used to be commit 7e89a0a28263e36ef7410122f987edf369154651)
2007-10-10 14:20:34 -05:00
Stefan Metzmacher
42b1e2c806 r19082: add the source vs. destination address and tcp logic
for SOCKET_WRAPPER_PCAP_FILE support.

metze
(This used to be commit 20945409b89be094c958f5f43c8c158f223f7911)
2007-10-10 14:20:34 -05:00
Stefan Metzmacher
bbafa2ce6b r18992: prepare SOCKET_WRAPPER_PCAP_FILE support
metze
(This used to be commit 400098416c1a4d7ae51b86eced51bffd6134296a)
2007-10-10 14:20:27 -05:00
Stefan Metzmacher
174742a74c r18947: overload listen() and ioctl() in socket_wrapper
metze
(This used to be commit dfaccdca1b6954cd61828749d7b000f804f3b066)
2007-10-10 14:20:23 -05:00
Stefan Metzmacher
06de0f0b74 r18918: - bail out with unsupported option to socket()
- 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-10 14:20:21 -05:00
Andrew Tridgell
c4ebedc7e1 r18917: having 255 virtual interfaces available in socket wrapper means we
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-10 14:20:21 -05:00
Volker Lendecke
4209af5a84 r18661: C++ warnings
(This used to be commit 771d30ca0c9d108b800bcfe33069f38dc4382662)
2007-10-10 14:19:00 -05:00
Stefan Metzmacher
4a854fe809 r18593: try to get the same socket_wrapper file building in samba3 and samba4
this is preparation of adding libreplace to samba3 later.

metze
(This used to be commit 26228e4b2e8debd84caebe84bb34bfbbf2ad405c)
2007-10-10 14:18:54 -05:00
Andrew Tridgell
3d6cdc9e97 r18586: fixed a potential fd and memory leak in the socket_wrapper code
(This used to be commit 6d53f2f5bc3a008f957be9e32df6830e1e29e8ed)
2007-10-10 14:18:52 -05:00
Stefan Metzmacher
fdc7677fec r18428: add my copyright
metze
(This used to be commit d222fab2b5fcd44ad7825e605a9febbe9d211e7a)
2007-10-10 14:18:28 -05:00
Stefan Metzmacher
6924a30bb5 r18427: set sin_port correctly on autobound socket
metze
(This used to be commit d373890fb26f3a593bacdb374f10d4279822b97d)
2007-10-10 14:18:27 -05:00
Stefan Metzmacher
3c096b3a9a r18426: use 'family' consistantly instead of mixing 'domain' and 'family'
metze
(This used to be commit 224f26602ac78dbdabd4602bce42e31141102f6c)
2007-10-10 14:18:27 -05:00
Stefan Metzmacher
894a64521a r18424: there's no need to allocate a wrapped socket for unix sockets,
also this makes sure the socket file isn't unlinked if using socket
wrapper.

metze
(This used to be commit 7670e9ae6e8e64ddb3c7d99b3d44048519629225)
2007-10-10 14:18:27 -05:00
Stefan Metzmacher
ee67387d32 r18423: record accept, connect and close events in socket wrapper
metze
(This used to be commit 7f29471f0b6b9158da52522984a6ab3f8ace4f42)
2007-10-10 14:18:27 -05:00
Stefan Metzmacher
b5ea572f45 r18417: overload send() and recv() by socket wrapper
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-10 14:18:26 -05:00
Stefan Metzmacher
a46e12d0e0 r18213: don't list LIBREPLACE depdendecies explicit and
always at it as first private dependencies

metze
(This used to be commit 135d096776b53ae09ffc2b4f767dfbd18139570f)
2007-10-10 14:17:50 -05:00
Andrew Tridgell
bf5b0606a5 r18134: the lib/replace/system/filesys.h in this patch should be
system/filesys.h, but it doesn't work. Metze is looking into it :-)
(This used to be commit 0dc0b7ff613d39f93c1680116c04348b720afaff)
2007-10-10 14:17:37 -05:00
Jelmer Vernooij
0329d755a7 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)
(This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
8db23753f3 r16716: patch from Bjoern Jacke to fix compiler warnings on AIX
metze
(This used to be commit 3e5de223f715343b6421d580dc1b3f9d67c980da)
2007-10-10 14:09:40 -05:00
Jelmer Vernooij
cf0f4ec073 r15358: Fix some compiler warnings / type safety. Found by tcc
(This used to be commit 12ba42de5886f9f4f9b1698476557e0c217d06f3)
2007-10-10 14:05:25 -05:00
Jelmer Vernooij
a3b8cfbc8f r15318: Don't create empty static libraries as some hosts have trouble with them.
(This used to be commit 1505d7c6001f8a35e728a14af2885b813c32ebe7)
2007-10-10 14:05:12 -05:00
Andrew Tridgell
14594c7b85 r14977: more IBM checker fixes
(This used to be commit cd106509b664e9ca53419a62550b256b7e5bde3c)
2007-10-10 14:00:49 -05:00
Jelmer Vernooij
b785a7c40c r14492: Fix shared libs - set SO_VERSION to 0 everywhere for now.
(This used to be commit 4682bc5ce047d81586447b9df82c91ed1fe677cf)
2007-10-10 13:57:32 -05:00
Jelmer Vernooij
71b4fd9792 r14477: Remove the NOPROTO property - it's no longer used as proto.h is gone.
(This used to be commit 9c37f847d32d2f327a88c53a90af0c73126b76be)
2007-10-10 13:57:30 -05:00
Jelmer Vernooij
e153a8099e r14327: Replace MAJOR_VERSION/MINOR_VERSION/RELEASE_VERSION with two parameters:
- 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-10 13:57:12 -05:00
Jelmer Vernooij
af30a32b69 r13840: Mark some functions as public.
(This used to be commit 9a188eb1f48a50d92a67a4fc2b3899b90074059a)
2007-10-10 13:52:14 -05:00
Andrew Bartlett
c5a6c7f61c r12710: Fix socket_wrapper: Make sure to fill in the socket family on the
returned address.

Andrew Bartlett
(This used to be commit 57b0aae0d4b52d9a9879c4606d2e4b3ef0d3d0d7)
2007-10-10 13:49:44 -05:00
Jelmer Vernooij
d8e35f8828 r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not using
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-10 13:47:45 -05:00
Jelmer Vernooij
ab31a44216 r12254: Add some (hopefully correct) descriptions for libraries that are installed.
Install pkg-config files.
(This used to be commit a86abe84e2cae7c6188c094a92c6b62aace02fdf)
2007-10-10 13:47:24 -05:00
Stefan Metzmacher
529b03be13 r12074: in accept() we need to set socket name of the child socket by looking
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-10 13:47:05 -05:00
Stefan Metzmacher
c53a5c4f3e r12073: fix vlgrind error, calculate the correct size for memcpy()
and don't assume out_len is >= sizeof(*in_addr)

metze
(This used to be commit 61dbe9e5070085117b12b5b37cf0e7fe4342e2a3)
2007-10-10 13:47:05 -05:00
Stefan Metzmacher
14b59bcbec r11555: - change socket_wrapper to support multiple IP's
- 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-10 13:45:53 -05:00
Stefan Metzmacher
5f653c1456 r11502: make sure we always use the 7 chars for the unix socket name.
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-10 13:45:46 -05:00
Jelmer Vernooij
93fd08168f r11377: Add support for building LIBRARY elements as shared libraries:
- 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-10 13:45:28 -05:00
Jelmer Vernooij
4c5a4a7e02 r11244: Relative path names in .mk files
(This used to be commit 24e10300906c380919d2d631bfb3b8fd6b3f54ba)
2007-10-10 13:45:06 -05:00
Jelmer Vernooij
f4d590662e r11214: Remove scons files (see http://lists.samba.org/archive/samba-technical/2005-October/043443.html)
(This used to be commit 7fffc5c9178158249be632ac0ca179c13bd1f98f)
2007-10-10 13:45:03 -05:00
Stefan Metzmacher
cffd522b5c r11052: bring samba4 uptodate with the samba4-winsrepl branch,
before the bad merge

metze
(This used to be commit 471c0ca4abb17fb5f73c0efed195c67628c1c06e)
2007-10-10 13:44:43 -05:00
Stefan Metzmacher
2ecb46d595 r11037:
(This used to be commit 6913e338405a5aca5c70cf6e022532c596ed0a36)
2007-10-10 13:42:33 -05:00
Jelmer Vernooij
5058f4b9e8 r10586: Add MergedObject() builder. Default to Library() rather
then StaticLibrary()
(This used to be commit b53313dc517986c69a4e4cb8fe3885b696f8faa1)
2007-10-10 13:39:08 -05:00
Jelmer Vernooij
9d44a9a351 r10374: Add HAVE_* defines (on command-line or in config.h file) for scons +
some other minor updates
(This used to be commit f142c15de1afb2f13a5e23ceb40ce70f0115c8bf)
2007-10-10 13:38:33 -05:00
Jelmer Vernooij
8db177b652 r10366: More scons fixes. Building et, asn1, lex and yacc files sort-of works now
(This used to be commit 22f18a84242e5e68a2d57b6d7ff77c089ee7434a)
2007-10-10 13:38:32 -05:00
Jelmer Vernooij
6812c73534 r10348: Add scons scripts for remaining subsystems. Most subsystems build now,
but final linking still fails (as does generating files asn1, et, idl and proto
files)
(This used to be commit 4f0d7f75b99c7f4388d8acb0838577d86baf68b5)
2007-10-10 13:38:30 -05:00
Jelmer Vernooij
5b02ee9b9d r10336: Add sconscript for a couple more subsystems.
(This used to be commit 59d4450453c25f5cce9b67b808ff0c4433c1d194)
2007-10-10 13:38:29 -05:00
Andrew Tridgell
5086945689 r8681: if SOCKET_WRAPPER_DIR starts with ./ then strip it internally. This saves us 2 more chars
in the name, which is enough to get IRIX 6.4 working
(This used to be commit e6d9cde482ad9f3fa91d9ce3638e2ec6530b3a9c)
2007-10-10 13:29:54 -05:00