summaryrefslogtreecommitdiffstats
path: root/source4/libcli/resolve
Commit message (Collapse)AuthorAgeFilesLines
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-2/+1
|
* libutil: moved the networking defines to util_net.hAndrew Tridgell2010-03-262-0/+2
| | | | These were causing thousands of warnings on solaris8
* s4:libcli/resovle File based lookup module for DNS name typesAndrew Bartlett2010-03-112-0/+152
| | | | | | | | This uses the new common code to read a file containing DNS host names, so we don't have to use real DNS lookups in our test environment. Andrew Bartlett
* s4:libcli/resolve Use a more robust way to return the string addressAndrew Bartlett2010-03-111-2/+11
| | | | | | | | | By going via these tevent functions, we avoid needing to dereference the struct socket_address, which may contain a 'struct sockaddr' or strings. The new dns_host_file resolver returns in the form of a struct sockaddr. Andrew Bartlett
* s4-dns-ex: use autoclose on the dns child pipeAndrew Tridgell2010-03-051-2/+1
| | | | | | | I'm hoping this will fix an occasional segfault I've noticed where epoll still calls events on a closed fde Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4: Fix result check for getaddrinfo()Kamen Mazdrashki2010-01-061-6/+11
| | | | | | | | | I think this completes commit 50feca550eed7828198b7c0fc5f0e5ddc863313d. Now result should be handled correctly both for systems that support EAI_NODATA but returns EAI_NONAME (as my Ubuntu 9.x) and systems that doesn't support EAI_NODATA at all. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-resolve: fixed a crash bug on timeoutAndrew Tridgell2009-09-191-3/+5
| | | | | | | We were creating the name resolution context as a child of lp_ctx, which meant when we gave up on a connection the timer on name resolution kept running, and when it timed out the callback crashed as the socket was already removed.
* s4/libcli: when we get a DNS lookup failure show the nameAndrew Tridgell2009-09-111-0/+2
| | | | | When tracking down complex connection problems its useful knowing what name lookups failed.
* s4:heimdal: import lorikeet-heimdal-200906080040 (commit ↵Andrew Bartlett2009-06-121-16/+16
| | | | | | | | | | | 904d0124b46eed7a8ad6e5b73e892ff34b6865ba) Also including the supporting changes required to pass make test A number of heimdal functions and constants have changed since we last imported a tree (for the better, but inconvenient for us). Andrew Bartlett
* s4:resolve/dns_ex: undefine class because it's used in ↵Stefan Metzmacher2009-02-021-0/+5
| | | | | | heimdal/lib/roken/resolve.h metze
* s4: simplify some overly-complicated logicTim Prouty2008-12-301-1/+1
|
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-298-14/+14
| | | | | | | | | | | | | | | | | | | | 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
* s4: Fix a getaddrinfo/EAI_NODATA portability issueTim Prouty2008-12-221-0/+4
| | | | | | FreeBSD has explicitly deprecated EAI_NODATA as a return value from getaddrinfo by removing it from netdb.h. On systems that don't have EAI_NODATA, EAI_NONAME should be used instead.
* s4:libcli/replace: add some RESOLVE_NAME_FLAG* flagsStefan Metzmacher2008-12-184-18/+43
| | | | metze
* s4:libcli/resolve: specify the port for the resulting socket_addressesStefan Metzmacher2008-12-178-9/+25
| | | | metze
* s4:libcli/resolve: optionally return the name that belongs to the returned ↵Stefan Metzmacher2008-12-178-23/+82
| | | | | | | | address E.g. this helps for DNS CNAME and SRV results. metze
* s4:libcli/resolve: pass down flags to the resolver backendsStefan Metzmacher2008-12-178-8/+29
| | | | metze
* s4:libcli/resolve: remove all backend specific sync functionsStefan Metzmacher2008-12-175-85/+0
| | | | metze
* s4:libcli/resolve: let the "host" module use the dns_ex.c codeStefan Metzmacher2008-12-171-183/+11
| | | | | | That means we now return all ip addresses instead of just the first one. metze
* s4:libcli/resolve: add getaddrinfo()/dns_looup() resolvingStefan Metzmacher2008-12-171-0/+484
| | | | | | | | | | | | | | | | | | | This "dns_ex" module provides flexible lookup methods for dns lookups. The getaddrinfo() part looks at /etc/hosts and dns. As it handles CNAME replies badly we fallback to use dns_lookup(name, "A"). The dns_lookup() makes DNS SRV lookups possible. This module is not a real resolve module, it's just a generic helper as the nbtlist.c code is. The next step will be that the "host" module will use the dns_ex.c code. metze
* s4:libcli/resolve: don't use __RESOLVE_H__ it might be used by system ↵Stefan Metzmacher2008-12-171-3/+3
| | | | | | headers too metze
* s4: fix LIBEVENTS dependencies and use more forward declarationsStefan Metzmacher2008-12-172-1/+1
| | | | | | | We should only include events.h where we really need it and prefer forward declarations of 'struct event_context' metze
* s4:libcli/resolve: add resolve_name_all*() which return all addresses not ↵Stefan Metzmacher2008-12-117-49/+115
| | | | | | only the first one metze
* s4:libcli/resolve: don't ignore SIGCHLD anymoreStefan Metzmacher2008-11-161-7/+15
| | | | | | | | | | | | This broke ldbedit against a LDAP server, as the editor is called by "system()" which relies on getting something useful out of waitpid(). TODO: we should create a generic infrastructure to handle temporary forks and integrate the signal handling with signal events there. metze
* Use global iconv convenience rather than global loadparm.Jelmer Vernooij2008-11-021-1/+1
|
* Remove unused include param/param.h.Jelmer Vernooij2008-10-241-1/+0
|
* Make sure prototypes are always included, make some functions static andJelmer Vernooij2008-10-201-0/+1
| | | | remove some unused functions.
* Use common strlist implementation in Samba 3 and Samba 4.Jelmer Vernooij2008-10-121-1/+1
|
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-1/+1
|
* - make bcast name resolution match other name resolution modules forAndrew Tridgell2008-09-302-2/+8
| | | | | | host not found errors - when we have no resolve context return NT_STATUS_OBJECT_NAME_NOT_FOUND
* return a more useful error message when no name resolution methods areAndrew Tridgell2008-09-291-0/+4
| | | | available
* s4-nbt: use ../libcli/nbtGünther Deschner2008-09-233-3/+3
| | | | Guenther
* s4-nbt: use private_data instead of private.Günther Deschner2008-09-231-2/+2
| | | | Guenther
* Fix an uninitialized variable introduced by 3045d391Volker Lendecke2008-05-141-2/+1
| | | | | | | Simo, please check! Volker (This used to be commit 0c09d28acf42400d26cc27675e37226060de26d3)
* Remove more event_context_init() uses from function calls within deep down ↵Simo Sorce2008-04-213-12/+5
| | | | | | | | 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 3045d391626fba169aa26be52174883e18d323e9)
* Remove more global_loadparm instance.sJelmer Vernooij2008-02-211-1/+2
| | | | (This used to be commit a1280252ce924df69d911e597b7f65d8038abef9)
* Remove yet more uses of global_loadparm.Jelmer Vernooij2008-02-213-7/+18
| | | | (This used to be commit e01c1e87c0fe9709df7eb5b863f7ce85564174cd)
* r26437: remove another use of global_loadparm.Jelmer Vernooij2007-12-214-14/+54
| | | | (This used to be commit 703f17bc0986775bf3fe489eb5c876937dabaa9d)
* r26426: Remove uses of global_loadparm.Jelmer Vernooij2007-12-211-5/+6
| | | | (This used to be commit e1d177c8c1101965479f7ade2270490cd6fae4f2)
* r26402: Require a talloc context in libnetif.Jelmer Vernooij2007-12-212-2/+3
| | | | (This used to be commit a35e51871bbf1ab33fc316fa59e597b722769c50)
* r26401: Don't cache interfaces context in libnetif.Jelmer Vernooij2007-12-213-6/+14
| | | | (This used to be commit 9f975417cc66bfd4589da38bfd23731dbe0e6153)
* r26397: Fix circular dependency in samba-socket.Jelmer Vernooij2007-12-213-22/+47
| | | | (This used to be commit 801c8c766cb6a104751be8829593e0e123508134)
* r26391: samba4 doesn't support 'lmhosts' as resolve moduleStefan Metzmacher2007-12-211-1/+1
| | | | | metze (This used to be commit cdb64b41018928122898257f65d2573109b473cc)
* r26378: Remove use of global_loadparm.Jelmer Vernooij2007-12-212-5/+6
| | | | (This used to be commit 81333de5353ce70512a3ed1d4960c09aa78954c6)
* r26376: Add context for libcli_resolve.Jelmer Vernooij2007-12-216-45/+112
| | | | (This used to be commit 459e1466a411d6f83b7372e248566e6e71c745fc)
* r26325: Remove use of global_loadparm in netif.Jelmer Vernooij2007-12-212-4/+5
| | | | (This used to be commit e452cb28594f23add7c00247ed39e8323aea78a6)
* r26309: Move specification of port higher up the all stack.Jelmer Vernooij2007-12-211-0/+1
| | | | (This used to be commit 7de55cde7c7fe0141c05c8a38248667ebf3a9033)
* r26264: pass name resolve order explicitly, use torture context for settings ↵Jelmer Vernooij2007-12-211-4/+2
| | | | | | in dssync tests. (This used to be commit c7eae1c7842f9ff8b70cce9e5d6f3ebbbe78e83b)
* r25903: Move more files out of torture/Jelmer Vernooij2007-12-211-0/+90
| | | | (This used to be commit f734df3144cdd9ff280ee1cac2c3a7f972716f5d)
* r25624: Remove ipv4_addr hack. Only causes 4 extra includes of ↵Jelmer Vernooij2007-12-212-4/+5
| | | | | | system/network.h because we stripped down includes. (This used to be commit 262c1c23a61f1f4fae13e0a61179fe98b682cecf)