summaryrefslogtreecommitdiffstats
path: root/source4/libcli/resolve/resolve.c
Commit message (Collapse)AuthorAgeFilesLines
* s4-ipv6: allow for IPv6 in resolver top level callsAndrew Tridgell2011-06-061-4/+2
|
* s4-libcli Remove resolve_name() as it conflicts with Samba3.Andrew Bartlett2011-05-031-12/+0
| | | | | | | This was just a wrapper around resolve_name_ex(), so just call that instead. Andrew Bartlett
* s4-resolve: added resolve_name_multiple_recv()Andrew Tridgell2010-09-151-0/+34
| | | | | | this allows for multiple replies to a SRV lookup Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-resolve: added resolve_name_ex_send()Andrew Tridgell2010-09-021-8/+33
| | | | | | this allows access to the flags that control name resolution Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libutil: moved the networking defines to util_net.hAndrew Tridgell2010-03-261-0/+1
| | | | These were causing thousands of warnings on solaris8
* 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-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:lib/tevent: rename structsStefan Metzmacher2008-12-291-3/+3
| | | | | | | | | | | | | | | | | | | | 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:libcli/resolve: specify the port for the resulting socket_addressesStefan Metzmacher2008-12-171-1/+5
| | | | metze
* s4:libcli/resolve: optionally return the name that belongs to the returned ↵Stefan Metzmacher2008-12-171-3/+13
| | | | | | | | address E.g. this helps for DNS CNAME and SRV results. metze
* s4:libcli/resolve: pass down flags to the resolver backendsStefan Metzmacher2008-12-171-2/+9
| | | | metze
* s4:libcli/resolve: remove all backend specific sync functionsStefan Metzmacher2008-12-171-13/+0
| | | | metze
* s4: fix LIBEVENTS dependencies and use more forward declarationsStefan Metzmacher2008-12-171-1/+0
| | | | | | | 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-111-12/+60
| | | | | | only the first one metze
* Remove unused include param/param.h.Jelmer Vernooij2008-10-241-1/+0
|
* 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-301-1/+1
| | | | | | 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
* 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-211-9/+4
| | | | | | | | 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)
* r26397: Fix circular dependency in samba-socket.Jelmer Vernooij2007-12-211-22/+0
| | | | (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-211-1/+1
| | | | (This used to be commit 81333de5353ce70512a3ed1d4960c09aa78954c6)
* r26376: Add context for libcli_resolve.Jelmer Vernooij2007-12-211-37/+73
| | | | (This used to be commit 459e1466a411d6f83b7372e248566e6e71c745fc)
* 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)
* r25624: Remove ipv4_addr hack. Only causes 4 extra includes of ↵Jelmer Vernooij2007-12-211-2/+3
| | | | | | system/network.h because we stripped down includes. (This used to be commit 262c1c23a61f1f4fae13e0a61179fe98b682cecf)
* r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
* r25026: Move param/param.h out of includes.hJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
* r25001: Fix more C++ and other warnings, fix some of the indentation with ↵Jelmer Vernooij2007-10-101-1/+2
| | | | | | ts=4 lines that I accidently added earlier. (This used to be commit 0bcb21ed740fcec0f48ad36bbc2deee2948e8fc7)
* r25000: Fix some more C++ compatibility warnings.Jelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit 08bb1ef643ab906f1645cf6f32763dc73b1884e4)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r19645: don't pass NULL as mem_ctx...Stefan Metzmacher2007-10-101-2/+2
| | | | | metze (This used to be commit 643a38bc30a0df1582035b8d264e0dbbc2d2e152)
* r19638: convert resolve.c to the new composite apiStefan Metzmacher2007-10-101-23/+19
| | | | | metze (This used to be commit 617f9c70c1b61e0fd4338048bbd94e7a4722ad9d)
* r14464: Don't include ndr_BASENAME.h files unless strictly required, insteadJelmer Vernooij2007-10-101-0/+1
| | | | | try to include just the BASENAME.h files (containing only structs) (This used to be commit 3dd477ca5147f28a962b8437e2611a8222d706bd)
* r13924: Split more prototypes out of include/proto.h + initial work on headerJelmer Vernooij2007-10-101-0/+1
| | | | | file dependencies (This used to be commit 122835876748a3eaf5e8d31ad1abddab9acb8781)
* r12608: Remove some unused #include lines.Jelmer Vernooij2007-10-101-2/+0
| | | | (This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
* r12542: Move some more prototypes out to seperate headersJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit 0aca5fd5130d980d07398f3291d294202aefe3c2)
* r12116: got rid of composite_trigger_done() and composite_trigger_error(), andAndrew Tridgell2007-10-101-1/+1
| | | | | | | | | instead make the normal composite_done() and composite_error() functions automatically trigger a delayed callback if the caller has had no opportunity to setup a async callback this removes one of the common mistakes in writing a composite function (This used to be commit f9413ce792ded682e05134b66d433eeec293e6f1)
* r10636: Formatting for better readability.Rafal Szczesniak2007-10-101-0/+3
| | | | | rafal (This used to be commit ef29863d999089c47140bd37731c60659a200421)
* r10504: - seperate implementation specific stuff, from the generic compositeStefan Metzmacher2007-10-101-23/+23
| | | | | | | | | | | | | | stuff. - don't use SMBCLI_REQUEST_* state's in the genreic composite stuff - move monitor_fn to libnet. NOTE: I have maybe found some bugs, in code that is dirrectly in DONE or ERROR state in the _send() function. I haven't fixed this bugs in this commit! We may need some composite_trigger_*() functions or so. And maybe some other generic helper functions... metze (This used to be commit 4527815a0a9b96e460f301cb1f0c0b3964c166fc)
* r10395: While playing with winbind, I found a segfault because I had givenVolker Lendecke2007-10-101-1/+2
| | | | | | | resolve_name_send a stack-allocated method list. Duplicate it. Volker (This used to be commit 17dbbf965bcf038be7450781e28acb5e061eb295)
* r10200: added a composite_trigger_done() call that allows a composite functionAndrew Tridgell2007-10-101-0/+9
| | | | | | | | to cause an event to happen immediately. This allows metzes patch for recognising IPs in resolve_name() to work, and also allows us to remove some of the other code where we currently do specific checks for is_ipaddress(). (This used to be commit 9cc000d868e1257ef6429f6f6f1f9d3c28ca330f)
* r9702: r9680@blu: tridge | 2005-08-27 18:45:08 +1000Andrew Tridgell2007-10-101-2/+3
| | | | | | | | | | | | - fixed ncacn_ip_tcp to use the generic async name resolution methods, so NBT names now work (as requested several times by abartlet!) - changed resolve_name() to take an event_context, so it doesn't cause the whole process to block - cleaned up the talloc_find_parent_bytype() calls to go via a cleaner event_context_find() call (This used to be commit b3d491b210a8b889a25efcb273e70fefbd01b7f7)
* r7856: fixed warning of 'methods' shadowed variableAndrew Tridgell2007-10-101-4/+4
| | | | (This used to be commit c435843c66a5dcc003d157374529c3c5ac733e36)
* r7813: Make async request independent from config file routines.Rafal Szczesniak2007-10-101-11/+3
| | | | | rafal (This used to be commit 84315cdf0d535ed0fe43bfc7cc4c83bc405c2cfb)
* r7735: Extend resolve_name function so that it's possible to pass resolveRafal Szczesniak2007-10-101-8/+16
| | | | | | | methods explicitly or NULL for defaults saved in smb.conf. rafal (This used to be commit 121cf5ec3e075a6e37df52caad9fbc8bf7d59339)
* r6933: Add a couple of helper functions for creating nbt names.Tim Potter2007-10-101-0/+23
| | | | (This used to be commit b896daf11c3efb1b3ca939575da9dab82b395777)
* r5551: Protect against falling off the end of the name resolve order listTim Potter2007-10-101-1/+1
| | | | | if a name is not found. (This used to be commit c23f767a9f5dd2dcae31bded540263b08876ecc2)
* r5197: moved events code to lib/events/ (suggestion from metze)Andrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 7f54c8a339f36aa43c9340be70ab7f0067593ef2)
* r5185: make all the events data structures private to events.c. This willAndrew Tridgell2007-10-101-0/+1
| | | | | | | | | | | make it possible to add optimisations to the events code such as keeping the next timed event in a sorted list, and using epoll for file descriptor events. I also removed the loop events code, as it wasn't being used anywhere, and changed timed events to always be one-shot (as adding a new timed event in the event handler is so easy to do if needed) (This used to be commit d7b4b6de51342a65bf46fce772d313f92f8d73d3)