Stefan Metzmacher
7db458a56c
s4:lib/socket: s/private/private_data
...
metze
2009-02-02 13:08:25 +01:00
Stefan Metzmacher
4519eae158
s4:lib/socket: don't use gethostbyname2()
...
metze
2009-01-30 22:26:08 +01:00
Stefan Metzmacher
5fa0d3d568
s4:socket: use a socket_wrapper aware function to auto close the fd event for sockets
...
metze
2009-01-03 19:58:53 +01:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"
for s in $list; do
o=`echo $s | cut -d ':' -f1`
n=`echo $s | cut -d ':' -f2`
r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
for f in $files; do
cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
mv $f.tmp $f
done
done
metze
2008-12-29 20:46:40 +01:00
Jelmer Vernooij
1feab85be6
Rename samba-socket -> samba_socket to fix a couple more compiler
...
warnings.
2008-12-24 00:15:43 +01:00
Stefan Metzmacher
fc31f2c526
s4:lib/socket: socket_connect_send() and socket_connect_ev() should only wrok with addresses
...
metze
2008-12-18 13:32:51 +01:00
Stefan Metzmacher
372f700f47
s4:lib/socket: we need to lookup the #20 netbios name when we connect to a remote server
...
metze
2008-12-17 19:12:24 +01:00
Stefan Metzmacher
03acd29128
s4:lib/socket: remove unused code
...
metze
2008-12-17 19:12:24 +01:00
Stefan Metzmacher
081f8883ba
s4: fix LIBEVENTS dependencies and use more forward declarations
...
We should only include events.h where we really need it
and prefer forward declarations of 'struct event_context'
metze
2008-12-17 11:04:45 +01:00
Jelmer Vernooij
28d374ec15
Use environment variable rather than loadparm parameter when testing
...
nonblocking sockets.
2008-11-02 17:21:46 +01:00
Jelmer Vernooij
c537f7a914
Fix the build.
2008-11-02 05:49:36 +01:00
Jelmer Vernooij
9265cb02d0
Use a separate global for nonblocking socket testing rather than global_loadparm.
2008-11-02 01:15:42 +01:00
Jelmer Vernooij
23302413b3
Remove unused include param/param.h.
2008-10-24 16:37:56 +02:00
Jelmer Vernooij
fe36fe8c3e
Use common net utility code (address and sockaddr manipulation).
2008-10-23 20:41:15 +02:00
Jelmer Vernooij
d1bc7e56d0
Rename same_net to same_net_v4 for consistency with Samba 3.
2008-10-23 19:56:09 +02:00
Jelmer Vernooij
5237369ad8
Fix warning, prototype.
2008-10-12 02:59:30 +02:00
Jelmer Vernooij
9565999755
Fix include paths to new location of libutil.
2008-10-11 21:31:42 +02:00
Stefan Metzmacher
334de182f4
lib/socket: use HAVE_IPV6 test from LIBREPLACE_NETWORK_CHECKS
...
metze
(This used to be commit 76be51d3a0
)
2008-05-21 21:32:28 +02:00
Jelmer Vernooij
4c70cda986
Fix a couple (well, little more than that..) of typos.
...
(This used to be commit a6b5211994
)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147
Create prototype headers from Makefile directory, without smb_build in the middle.
...
(This used to be commit f4a77b96f9
)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
333c169529
Use variables for source directory in remaining subsystems.
...
(This used to be commit 6b6b2196a8
)
2008-05-18 20:30:46 +02:00
Stefan Metzmacher
c7c9aa7e7a
lib/socket: remove unused configure checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKET and rely on libreplace
...
metze
(This used to be commit 5de605bb2e
)
2008-05-16 22:56:14 +02:00
Stefan Metzmacher
335813c735
lib/socket: remove unused configure check for HAVE_WORKING_AF_LOCAL
...
metze
(This used to be commit 1c7905cfb4
)
2008-05-16 22:56:14 +02:00
Simo Sorce
4e83011f72
Remove more event_context_init() uses from function calls within deep down the code.
...
Make sure we pass around the event_context where we need it instead.
All test but a few python ones fail. Jelmer promised to fix them.
(This used to be commit 3045d39162
)
2008-04-21 18:12:33 -04:00
Jelmer Vernooij
e9017ba418
Use _OBJ_FILES variables in a couple more places.
...
(This used to be commit 92856d5054
)
2008-04-14 17:22:58 +02:00
Jelmer Vernooij
148d3b170a
Use torture_assert_mem_equal() in a couple more places.
...
(This used to be commit e2c3fab9d1
)
2008-04-13 22:00:36 +02:00
Stefan Metzmacher
7b412ccade
lib/socket: use LIBREPLACE_NETWORK instead of EXT_SOCKET and EXT_NSL
...
The configure checks are also in libreplace now.
metze
(This used to be commit 07e931a77f
)
2008-03-18 15:59:22 +01:00
Jelmer Vernooij
39a6495c86
Make more module init functions public, since they are compiled with -fvisibility=hidden. Not doing this causes failures on Mac OS X.
...
(This used to be commit da1a9438bd
)
2008-02-20 19:40:20 +01:00
Jelmer Vernooij
602f4635da
Get rid of 'INTEGRATED' build of modules - now replaced by 'MERGED_OBJ'
...
(This used to be commit 269cbf84d8
)
2008-02-18 19:06:17 +01:00
Jelmer Vernooij
be4decb2b7
r26467: Use getifaddrs() for interface enumeration and provide replacements for platforms that don't have it in lib/replace.
...
(This used to be commit 9b4924fbd8
)
2007-12-21 05:50:31 +01:00
Jelmer Vernooij
4b0199a549
r26409: Pass smb ports along.
...
(This used to be commit 2833f320de
)
2007-12-21 05:49:42 +01:00
Jelmer Vernooij
fc88ba4a7e
r26406: Make a copy to prevent modification of the loadparm configuration.
...
(This used to be commit c0f2775fd8
)
2007-12-21 05:49:37 +01:00
Jelmer Vernooij
c64c571591
r26405: Import support for getifaddrs from Samba3.
...
(This used to be commit 5827b7460a
)
2007-12-21 05:49:37 +01:00
Jelmer Vernooij
0b8ec6de02
r26404: Disable socket wrapper for the interface detection code to work around the fact that the ioctls for enumerating interfaces are not very reliable when used on unix domain sockets.
...
Ideally, we should be implementing the SIOCGIFCONF and SIOCGIFADDR ioctls in socket wrapper.
(This used to be commit 035c483100
)
2007-12-21 05:49:36 +01:00
Jelmer Vernooij
70f1f33af8
r26402: Require a talloc context in libnetif.
...
(This used to be commit a35e51871b
)
2007-12-21 05:49:33 +01:00
Jelmer Vernooij
6f2252dace
r26401: Don't cache interfaces context in libnetif.
...
(This used to be commit 9f975417cc
)
2007-12-21 05:49:32 +01:00
Jelmer Vernooij
1ea47faa97
r26397: Fix circular dependency in samba-socket.
...
(This used to be commit 801c8c766c
)
2007-12-21 05:49:26 +01:00
Jelmer Vernooij
43d18b91b4
r26383: Make interfaces argument explicit.
...
(This used to be commit 89008ae18d
)
2007-12-21 05:49:17 +01:00
Jelmer Vernooij
5f4842cf65
r26376: Add context for libcli_resolve.
...
(This used to be commit 459e1466a4
)
2007-12-21 05:49:12 +01:00
Jelmer Vernooij
01d2acfdb4
r26335: Specify name_resolve_order to socket code.
...
(This used to be commit b03e5d0011
)
2007-12-21 05:48:46 +01:00
Jelmer Vernooij
c5bf20c5fe
r26325: Remove use of global_loadparm in netif.
...
(This used to be commit e452cb2859
)
2007-12-21 05:48:37 +01:00
Jelmer Vernooij
2f5ca872a8
r26313: Fix more uses of static loadparm.
...
(This used to be commit 6fd0d9d3b7
)
2007-12-21 05:48:25 +01:00
Jelmer Vernooij
b09047b78e
r25624: Remove ipv4_addr hack. Only causes 4 extra includes of system/network.h because we stripped down includes.
...
(This used to be commit 262c1c23a6
)
2007-12-21 05:43:00 +01:00
Stefan Metzmacher
f1e23d5a62
r25600: fix stupid typo...this should fix the build on sunX
...
metze
(This used to be commit 192c05556f
)
2007-10-10 15:08:03 -05:00
Jelmer Vernooij
6bc52259aa
r25545: Use inet_ntop for ipv4 code as well - should make it easier to share code between IPv4 and IPv6 later on.
...
(This used to be commit e3df90927b
)
2007-10-10 15:07:51 -05:00
Jelmer Vernooij
719a4ae0d3
r25522: Convert to standard bool types.
...
(This used to be commit 5e814287ba
)
2007-10-10 15:07:47 -05:00
Jelmer Vernooij
60a1046c5c
r25430: Add the loadparm context to all parametric options.
...
(This used to be commit fd697d77c9
)
2007-10-10 15:07:31 -05:00
Jelmer Vernooij
cabc0955d9
r25411: Fix IPv6 socket backend.
...
(This used to be commit 02b4621181
)
2007-10-10 15:07:29 -05:00
Jelmer Vernooij
37d53832a4
r25398: Parse loadparm context to all lp_*() functions.
...
(This used to be commit 3fcc960839
)
2007-10-10 15:07:25 -05:00
Jelmer Vernooij
55568328ad
r25384: Support DGRAM IPv6 sockets.
...
(This used to be commit e227c74971
)
2007-10-10 15:07:23 -05:00