Andrew Bartlett
a1f04e8abc
libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbol
...
The two error tables need to be combined, but for now seperate the names.
(As the common parts of the tree now use the _common function,
errmap_unix.c must be included in the s3 autoconf build).
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Jun 20 08:12:03 CEST 2011 on sn-devel-104
2011-06-20 08:12:03 +02:00
Günther Deschner
d41519f99e
libcli/nbt/nbt_proto.h: fix licence/copyright
...
Guenther
2011-06-10 15:11:37 +02:00
Andrew Tridgell
40dc94a53f
s4-ipv6: update callers to load_interface_list()
2011-06-06 12:26:10 +10:00
Andrew Bartlett
22cb631b4f
s4-interfaces Rename interfaces code so not to conflict with source3/
...
The iface_count, iface_n_bcast, and load_interfaces functions
conflicted with functions of the same name in source3, so the source4
functions were renamed. Hopefully we can actually wrap one around the
other in future.
Andrew Bartlett
2011-05-08 12:57:04 +02:00
Andrew Bartlett
c18954775e
libcli/dns Improve dns_hosts_file, using Samba3's struct dns_rr_srv
...
By reworking the 'fake DNS' file to use struct dns_rr_srv it should be
possible to emulate that resolver layer as well as the Samba4
sockaddr_storage* based layer. This will then give us a common DNS
emulation for 'make test'.
Andrew Bartlett
2011-04-26 17:16:34 +10:00
Andrew Bartlett
457c665be2
libcli/nbt Cope with blank lines in DNS hosts file
2011-04-06 12:34:57 +10:00
Jelmer Vernooij
fa387825e2
libcli/: Fix prototypes for all functions.
2011-03-19 03:20:05 +01:00
Matthias Dieter Wallnöfer
22c407d8bd
libcli/nbt/wscript_build - fix build of "lmhosts"
...
Needs also the "talloc" dependency.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Feb 25 11:01:31 CET 2011 on sn-devel-104
2011-02-25 11:01:31 +01:00
Andrew Tridgell
52fe20c310
build: moved lmhosts.c into a common subsystem
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-24 11:57:48 +11:00
Andrew Tridgell
9aa85b6e30
s3-waf: use common libcli/nbt build rules
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-22 02:51:09 +01:00
Andrew Tridgell
efc932112c
libcli/nbt: allow use of the waf build for nbt in source3
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-22 02:51:09 +01:00
Günther Deschner
3294ccbb6d
netlogon: move netlogon helpers to ../libcli/netlogon.
...
Guenther
2011-01-07 15:02:24 +01:00
Volker Lendecke
41179c2538
Fix a valgrind error
...
Thanks to Tridge for the hint.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jan 2 10:58:51 CET 2011 on sn-devel-104
2011-01-02 10:58:51 +01:00
Jelmer Vernooij
5792fa90ac
s4-python: Only set BASETYPE flag if subclassing is supported.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Jan 1 03:39:58 CET 2011 on sn-devel-104
2011-01-01 03:39:58 +01:00
Jelmer Vernooij
f5fe9c32ef
s4-python: Add more prototypes.
2011-01-01 02:54:05 +01:00
Arnaud Faucher
2ac5cedb71
Avoid the use of PyAPI_DATA, which is for internal Python API's.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Nov 22 00:52:56 CET 2010 on sn-devel-104
2010-11-22 00:52:56 +01:00
Jelmer Vernooij
3deece5591
s4: Remove the old perl/m4/make/mk-based build system.
...
The new waf-based build system now has all the same functionality, and
the old build system has been broken for quite some time.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
2010-10-31 02:01:44 +00:00
Jelmer Vernooij
a74e8be6d1
waf: Stop automaticaly changing dashes to underscores in library names.
2010-10-26 10:17:18 -07:00
Jelmer Vernooij
8cf61377aa
waf: Remove lib prefix from libraries manually.
2010-10-26 10:17:17 -07:00
Jelmer Vernooij
d9cbcdd410
s4: Drop duplicate 'lib' prefix for private libraries.
2010-10-26 10:17:16 -07:00
Jelmer Vernooij
599afb0651
s4: Rename LIBCLI_NBT -> cli_nbt.
2010-10-24 00:20:04 +00:00
Jelmer Vernooij
833480d3ad
s4: Rename LIBSAMBA-* to libsamba-*
2010-10-24 00:20:04 +00:00
Jelmer Vernooij
9065f9644b
s4: Rename LIBNETIF to libnetif.
2010-10-23 22:24:06 +00:00
Andrew Tridgell
35b61c2365
libcli: make LIBCLI_NBT a private library
2010-10-21 19:03:24 +11:00
Stefan Metzmacher
a610ce4aa6
libcli/nbt: we don't need LIBCLI_COMPOSITE anymore
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 18 16:18:32 UTC 2010 on sn-devel-104
2010-10-18 16:18:32 +00:00
Stefan Metzmacher
820ae3d9a3
libcli/nbt: convert nbt_name_register_bcast_send/recv to tevent_req
...
metze
2010-10-18 15:36:16 +00:00
Stefan Metzmacher
0b8056d580
libcli/nbt: s/name_register_bcast_handler/nbt_name_register_bcast_handler
...
metze
2010-10-18 15:36:16 +00:00
Stefan Metzmacher
c654a6c02b
libcli/nbt: s/register_bcast_state/nbt_name_register_bcast_state/
...
metze
2010-10-18 15:36:16 +00:00
Stefan Metzmacher
77d82fe944
libcli/nbt: move nbt_name_register_bcast_send to the top of nbt_name_register_bcast_*
...
metze
2010-10-18 15:36:16 +00:00
Stefan Metzmacher
e3a0463414
libcli/nbt: convert nbt_name_register_wins_send/recv to tevent_req
...
metze
2010-10-18 15:36:15 +00:00
Stefan Metzmacher
4f233c7ff8
libcli/nbt: s/name_register_wins_handler/nbt_name_register_wins_handler
...
metze
2010-10-18 15:36:15 +00:00
Stefan Metzmacher
b16681374c
libcli/nbt: s/register_wins_state/nbt_name_register_wins_state
...
metze
2010-10-18 15:36:15 +00:00
Stefan Metzmacher
549b594c57
libcli/nbt: move nbt_name_register_wins_send() to the top of all nbt_name_register_wins_* related code
...
metze
2010-10-18 15:36:15 +00:00
Stefan Metzmacher
43fb7f1698
libcli/nbt: convert nbt_name_refresh_wins_send/recv to tevent_req
...
metze
2010-10-18 15:36:15 +00:00
Stefan Metzmacher
332f261bbf
libcli/nbt: s/name_refresh_wins_handler/nbt_name_refresh_wins_handler
...
metze
2010-10-18 15:36:15 +00:00
Stefan Metzmacher
3ded1da8e9
libcli/nbt: s/refresh_wins_state/nbt_name_refresh_wins_state
...
metze
2010-10-18 15:36:15 +00:00
Stefan Metzmacher
e36e7295da
libcli/nbt: move nbt_name_refresh_wins_send() to the top of all nbt_name_refresh_wins_* related code
...
metze
2010-10-18 15:36:15 +00:00
Jelmer Vernooij
e260965929
manpages: Avoid using Samba-Team specific DTD, which requires net access
...
or modification of /etc/catalogs.
2010-08-26 04:04:37 +02:00
Andrew Tridgell
6b266b85cf
s4-loadparm: 2nd half of lp_ to lpcfg_ conversion
...
this converts all callers that use the Samba4 loadparm lp_ calling
convention to use the lpcfg_ prefix.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-16 18:24:27 +10:00
Günther Deschner
c00407bd35
libcli/nbt/lmhosts: fix missing prototype warning.
...
Andrew, please check.
Guenther
2010-05-31 11:25:24 +02:00
Jelmer Vernooij
f9ca9e46ad
Finish removal of iconv_convenience in public API's.
2010-05-18 11:45:30 +02:00
Andrew Tridgell
211bf1ea17
s4-waf: removed the unused installdir= option to SAMBA_BINARY()
...
This was left over from the automatic conversion of the config.mk
files
2010-04-18 21:47:00 +10:00
Andrew Tridgell
b0fb567f04
s4-waf: more dependencies on talloc
...
these are needed so we can support a system talloc without using the
bundled talloc.h
2010-04-06 20:27:13 +10:00
Andrew Tridgell
b9aa63887c
s4-waf: cleanup use of LIBPOPT vs popt dependency
2010-04-06 20:27:13 +10:00
Andrew Tridgell
f9eae32f4b
s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them
2010-04-06 20:27:11 +10:00
Andrew Tridgell
844acb2260
build: waf quicktest nearly works
...
Rewrote wafsamba using a new dependency handling system, and started
adding the waf test code
2010-04-06 20:26:48 +10:00
Andrew Tridgell
845e0cbe6f
build: commit all the waf build files in the tree
2010-04-06 20:26:48 +10:00
Matthias Dieter Wallnöfer
818fcfb813
libcli/nbt/dns_hosts_file.c - change "ULONG_MAX" into "UINT32_MAX"
...
This fits better since the variable which is tested is of type "uint32_t".
2010-03-30 19:08:57 +02:00
Andrew Tridgell
fae84f98e3
libutil: moved the networking defines to util_net.h
...
These were causing thousands of warnings on solaris8
2010-03-26 17:36:02 +11:00
Andrew Bartlett
263d4b5c93
libcli/nbt Add parser for a 'hosts' file that takes DNS record types
2010-03-11 11:27:48 +11:00
Andrew Tridgell
6b01ca95a8
nbt: don't reference the event_ctx in nbtsock
...
This causes talloc_free with references errors
2010-02-08 11:04:59 +11:00
Matt Kraai
aa6a507e76
Change uint_t to unsigned int in libcli
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-02 07:18:17 +01:00
Stefan Metzmacher
e37dc56e97
libcli/nbt: fix ndr_push_nbt_string() string labels with a length of 63 (0x3F) are allowed
...
metze
2010-02-01 15:23:32 +01:00
Stefan Metzmacher
6442b0fcc1
libcli/nbt: fix off-by-one bug in ndr_pull_wrepl_nbt_name()
...
The scope starts at byte 17 with index 16.
metze
2010-01-29 15:55:11 +01:00
Stefan Metzmacher
c50a17cc8d
libcli/nbt: fix ndr_pull/push_wrepl_nbt_name()
...
[MS-WINSRA] — v20091104 was wrong
regarding section "2.2.10.1 Name Record"
If the name buffer is already 4 byte aligned
Windows (at least 2003 SP1 and 2008) add 4 extra
bytes. This can happen when the name has a scope.
metze
2010-01-29 15:55:10 +01:00
Andrew Bartlett
b5ce97511a
libcli/nbt Move more of lmhosts lookup into common code
...
This aims to eventually share this with Samba4.
Andrew Bartlett
2009-11-04 14:58:25 +11:00
Andrew Tridgell
3050f83288
s4-python: we need to include Python.h first
...
If we don't include Python.h first then we get a pile of warnings due
to broken redefines of XOPEN_SOURCE in the Python includes.
2009-10-23 16:23:01 +11:00
Andrew Bartlett
59bea84362
libcli:nbt move prototypes of lmhosts functions to libnbt.h
2009-09-19 14:34:16 -07:00
Andrew Bartlett
5a01071692
libcli:nbt put util_net.c protos in new header file
...
This fixed a very odd build problem due to util.h importing
system/network.h being imported before the uid_wapper code.
Andrew Bartlett
2009-09-15 10:38:53 -07:00
Andrew Bartlett
668470c992
libcli:nbt make the lmhosts parsing code and dependicies common
...
This starts the process to have Samba4 use lmhosts.
Andrew Bartlett
2009-09-15 07:42:54 -07:00
Stefan Metzmacher
f956dddf57
libcli/nbt: s/private/private_data
...
metze
2009-02-02 13:09:09 +01:00
Volker Lendecke
b0c92548d8
Attempt to fix the merged build
2009-01-19 11:40:43 +01:00
Stefan Metzmacher
ebab6d6ce4
libcli/nbt: add nbt_name_socket_handle_response_packet()
...
Move the last part of nbt_name_socket_recv() into
a new function nbt_name_socket_handle_response_packet()
so that it can be reused by an unexpected handler.
metze
(from samba4wins tree cb0377f3b95e50c84fac999a49dde80acc933124)
2009-01-19 07:05:42 +01:00
Stefan Metzmacher
26c48098e6
libcli/nbt: add nbt_set_unexpected_handler()
...
metze
(from samba4wins tree 74232901d1e7ea9ebcb3bd8d584dda36fac37223)
2009-01-19 07:05:27 +01:00
Stefan Metzmacher
bbd74f2f76
libcli/nbt: fix wack timeout handling
...
If the client gets a WACK response, the server
sends a timeout to the client. Possible
values are between 9 and 105 seconds.
Because w2k3 servers have a bug and always return
a value of 5 seconds, we need a workarround.
Always using a fixed value of 30 seconds is bad
as we could timeout to early.
Now we use the value from the server if it's in the
valid range and otherwise we use the upper limit
of the valid range (105s).
metze
(from samba4wins tree 40ef7739f4141598a6392c203e4a2d52d972fe06)
2009-01-19 07:05:23 +01:00
Stefan Metzmacher
9d4f766ae3
Revert "Remove another use of global_loadparm."
...
This reverts commit ee7c2170a7
.
A much more correct fix will come soon.
(40ef7739f4141598a6392c203e4a2d52d972fe06 from the samba4wins tree)
metze
2009-01-19 07:05:20 +01:00
Jelmer Vernooij
ba5d6e6d70
Avoid using a utility header for Python replacements included in Samba,
...
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-08 12:20:20 +01:00
Tim Prouty
61a23c5eea
s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4
2009-01-07 15:03:16 -08:00
Jelmer Vernooij
d2c70d24e1
py: Properly increase the reference counter of Py_None.
2009-01-06 04:13:57 +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
dcc4081f75
Fix more compiler warnings.
2008-12-23 23:22:57 +01:00
Michael Adam
b416135f6b
libcli/nbt: fix some extrasemi compile warnings.
...
Michael
2008-11-23 23:01:04 +01:00
Jelmer Vernooij
b45caa44e1
Fix the build.
2008-11-02 23:58:49 +01:00
Jelmer Vernooij
ee7c2170a7
Remove another use of global_loadparm.
2008-11-02 18:27:24 +01:00
Jelmer Vernooij
0b0b11e3d9
Fix the build.
2008-10-24 16:52:25 +02:00
Jelmer Vernooij
23302413b3
Remove unused include param/param.h.
2008-10-24 16:37:56 +02:00
Jelmer Vernooij
f7692d16e3
Remove more global_loadparm instances, fix syntax errors.
2008-10-24 16:12:14 +02:00
Jelmer Vernooij
87ec1d2532
Make sure prototypes are always included, make some functions static and
...
remove some unused functions.
2008-10-20 18:59:51 +02:00
Jelmer Vernooij
3994c42f19
Fix number of arguments for file_load() functions.
2008-10-12 19:46:38 +02:00
Jelmer Vernooij
652f0e601d
Move nmblookup to same location as the rest of the NBT client library.
2008-10-12 17:34:28 +02:00
Jelmer Vernooij
218f482fbf
Use common strlist implementation in Samba 3 and Samba 4.
2008-10-12 00:56:56 +02:00
Jelmer Vernooij
9565999755
Fix include paths to new location of libutil.
2008-10-11 21:31:42 +02:00
Günther Deschner
4962a4459b
libcli: add nbt_proto.h that is no longer autogenerated.
...
Guenther
2008-09-24 03:51:25 +02:00
Günther Deschner
6f33f3e4c2
s4-nbt: move libcli/nbt up one level.
...
Guenther
2008-09-23 09:37:24 +02:00