summaryrefslogtreecommitdiffstats
path: root/source4/libcli/resolve/host.c
Commit message (Collapse)AuthorAgeFilesLines
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | 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/replace: add some RESOLVE_NAME_FLAG* flagsStefan Metzmacher2008-12-181-1/+1
| | | | metze
* s4:libcli/resolve: specify the port for the resulting socket_addressesStefan Metzmacher2008-12-171-1/+2
| | | | metze
* s4:libcli/resolve: optionally return the name that belongs to the returned ↵Stefan Metzmacher2008-12-171-2/+3
| | | | | | | | 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/+2
| | | | metze
* s4:libcli/resolve: remove all backend specific sync functionsStefan Metzmacher2008-12-171-11/+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 resolve_name_all*() which return all addresses not ↵Stefan Metzmacher2008-12-111-8/+16
| | | | | | 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
* Remove more event_context_init() uses from function calls within deep down ↵Simo Sorce2008-04-211-1/+0
| | | | | | | | 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)
* r26376: Add context for libcli_resolve.Jelmer Vernooij2007-12-211-1/+8
| | | | (This used to be commit 459e1466a411d6f83b7372e248566e6e71c745fc)
* r25624: Remove ipv4_addr hack. Only causes 4 extra includes of ↵Jelmer Vernooij2007-12-211-2/+2
| | | | | | system/network.h because we stripped down includes. (This used to be commit 262c1c23a61f1f4fae13e0a61179fe98b682cecf)
* 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)
* r21594: give the same error in all resolve backendsStefan Metzmacher2007-10-101-2/+2
| | | | | metze (This used to be commit 5534ba591deb362e30e40afff923af4b890ab7a9)
* r19645: don't pass NULL as mem_ctx...Stefan Metzmacher2007-10-101-5/+8
| | | | | metze (This used to be commit 643a38bc30a0df1582035b8d264e0dbbc2d2e152)
* r19642: convert host.c to new composite apiStefan Metzmacher2007-10-101-35/+26
| | | | | metze (This used to be commit a5d36a6ddefb8c24e748b839391241da41e31440)
* r15854: more talloc_set_destructor() typesafe fixesAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit 61c6100617589ac6df4f527877241464cacbf8b3)
* 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)
* 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)
* r10504: - seperate implementation specific stuff, from the generic compositeStefan Metzmacher2007-10-101-9/+9
| | | | | | | | | | | | | | 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)
* r10438: Move portability functions to lib/replace/; replace now simply ensuresJelmer Vernooij2007-10-101-1/+1
| | | | | | | | | that a given set of (working) POSIX functions are available (without prefixes to their names, etc). See lib/replace/README for a list. Functions that behave different from their POSIX specification (such as sys_select, sys_read, etc) have kept the sys_ prefix. (This used to be commit 29919a71059b29fa27a49b1f5b84bb8881de65fc)
* r5298: - got rid of pstring.h from includes.h. This at least makes it a bitAndrew Tridgell2007-10-101-0/+1
| | | | | | | | | | less likely that anyone will use pstring for new code - got rid of winbind_client.h from includes.h. This one triggered a huge change, as winbind_client.h was including system/filesys.h and defining the old uint32 and uint16 types, as well as its own pstring and fstring. (This used to be commit 9db6c79e902ec538108d6b7d3324039aabe1704f)
* r5197: moved events code to lib/events/ (suggestion from metze)Andrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 7f54c8a339f36aa43c9340be70ab7f0067593ef2)
* r5195: most events don't need the time of the event, so save a ↵Andrew Tridgell2007-10-101-2/+2
| | | | | | | gettimeofday() call and just use timeval_current() when its actually needed (This used to be commit 236403cc4dc2924ed6a898acae0bb44cc1688dcc)
* r5185: make all the events data structures private to events.c. This willAndrew Tridgell2007-10-101-8/+4
| | | | | | | | | | | 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)
* r5126: the composite code is no longer client specific or smb specific, soAndrew Tridgell2007-10-101-8/+8
| | | | | | rename the core structure to composite_context and the wait routine to composite_wait() (suggestion from metze) (This used to be commit cf11d05e35179c2c3e51c5ab370cd0a3fb15f24a)
* r4944: every event_add_*() caller was having to call talloc_steal() to takeAndrew Tridgell2007-10-101-2/+1
| | | | | | | control of the event, so instead build that into the function. If you pass NULL as mem_ctx then it leaves it as a child of the events structure. (This used to be commit 7f981b9ed96f39027cbfd500f41e0c2be64cbb50)
* r4943: Smplified the events handling code a lot. The first source ofAndrew Tridgell2007-10-101-3/+1
| | | | | | | | | | | | | | | | | | | complexity was that events didn't automatically cleanup themselves. This was because the events code was written before we had talloc destructors, so you needed to call event_remove_XX() to clean the event out of the event lists from every piece of code that used events. I have now added automatic event destructors, which in turn allowed me to simplify a lot of the calling code. The 2nd source of complexity was caused by the ref_count, which was needed to cope with event handlers destroying events while handling them, which meant the linked lists became invalid, so the ref_count ws used to mark events for later destruction. The new system is much simpler. I now have a ev->destruction_count, which is incremented in all event destructors. The event dispatch code checks for changes to this and handles it. (This used to be commit a3c7417cfeab429ffb22d5546b205818f531a7b4)
* r4916: added "host" name resolution using fork() per gethostbyname()Andrew Tridgell2007-10-101-0/+233
comments welcome, but please think about the alternatives first :-) (This used to be commit 3d40b479907226be349137117e0d2bd718efa1a8)