summaryrefslogtreecommitdiffstats
path: root/avahi-core
Commit message (Collapse)AuthorAgeFilesLines
* * do no longer include timeval.h in watch.h by defaultLennart Poettering2005-10-1710-6/+16
| | | | | | | | | * fix some include lines from "" to <> * drop dbus.h from doxygen, users of our libraries shouldn't care * other cleanups git-svn-id: file:///home/lennart/svn/public/avahi/trunk@801 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Add custom user-specific configure flags to bootstrap.shTrent Lloyd2005-10-172-7/+7
| | | | | | | | | | | | * Add new constant AVAHI_ADDRESS_STR_MAX for use with avahi_address_snprint arr ays * Update all our code to use AVAHI_ADDRESS_STR_MAX * Add avahi_client_add_address to avahi-client * Add avahi_client_add_address test to avahi-client git-svn-id: file:///home/lennart/svn/public/avahi/trunk@800 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* drop avahi_server_add_txt() prototypes (and friends)Lennart Poettering2005-10-171-39/+0
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@798 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* remove or unexport avahi_server_add_txt_strlst(), avahi_server_add_txt_va(), ↵Lennart Poettering2005-10-173-62/+11
| | | | | | avahi_server_add_txt(), avahi_server_add_ptr() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@797 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* split entry and entry-group management stuff off to its own file entry.cLennart Poettering2005-10-174-1181/+1218
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@796 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Rename "AvahiAnnouncement" to "AvahiAnnouncer" to match AvahiQuerierLennart Poettering2005-10-176-52/+52
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@794 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* slightly more commentsLennart Poettering2005-10-171-4/+18
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@793 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * split client.h into client.h, lookup.h and publish.h just like we did on ↵Lennart Poettering2005-10-172-4/+2
| | | | | | | | | | | | the server side * Wrap avahi_server_update_txt() as DBUS function UpdateServiceTxt * Add client side API avahi_entry_group_update_service_txt() and friends * handle AVAHI_PUBLISH_UPDATE semantics in DBUS protocol * minor cleanups git-svn-id: file:///home/lennart/svn/public/avahi/trunk@791 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * implement record updating through the new flags AVAHI_PUBLISH_UPDATELennart Poettering2005-10-178-80/+421
| | | | | | | | * add new helper function avahi_server_update_service_txt() to ease TXT record updating for services * other minor cleanups git-svn-id: file:///home/lennart/svn/public/avahi/trunk@790 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* fix a bad avahi_free() found by sebestLennart Poettering2005-10-151-3/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@777 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Some minor cleanups in netlink codeLennart Poettering2005-10-152-16/+98
| | | | | | | * add some comments to iface-linux.c, to ease porting for sebest git-svn-id: file:///home/lennart/svn/public/avahi/trunk@762 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * more portability work on socket.cSebastien Estienne2005-10-141-33/+128
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@760 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Merge portability patch from Philipp ZabelLennart Poettering2005-10-141-8/+20
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@759 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * portability function for IP_PKTINFOSebastien Estienne2005-10-121-8/+36
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@748 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* remove some more compiler warningsLennart Poettering2005-10-121-4/+4
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@746 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* remove macosx compiler warningLennart Poettering2005-10-121-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@745 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* remove macosx compiler warningLennart Poettering2005-10-121-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@744 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* add a (struct sockaddr*) cast to getsocknameLennart Poettering2005-10-121-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@743 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* minor fixes to the conformance testing toolLennart Poettering2005-10-121-2/+17
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@742 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* small fix to allow creating server instances without passing a configuration ↵Lennart Poettering2005-10-121-1/+1
| | | | | | structure git-svn-id: file:///home/lennart/svn/public/avahi/trunk@741 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* warn if not netlink replacement is found when buildingLennart Poettering2005-10-121-0/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@738 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * added a portability fix for IPV6_ADD/DROP_MEMBERSHIPSebastien Estienne2005-10-121-0/+13
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@736 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* minor Makefile.am cleanupLennart Poettering2005-10-121-9/+7
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@735 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * added support in autoconf for multiple architectureSebastien Estienne2005-10-122-2/+11
| | | | | | | * only compile netlink support on linux git-svn-id: file:///home/lennart/svn/public/avahi/trunk@734 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * drop AVAHI_RESOLVER_TIMEOUT, AVAHI_RESOLVER_NOT_FOUND and ↵Lennart Poettering2005-10-128-33/+44
| | | | | | | | | | | AVAHI_BROWSER_NOT_FOUND, use AVAHI_xxx_FAILURE instead * set the client/server errno variable when AVAHI_xxx_FAILURE happens * update DBUS interface accordingly, pass errno value with Failure events * Pass DNS return codes to the app by wrapping them in avahi error codes git-svn-id: file:///home/lennart/svn/public/avahi/trunk@732 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * include config.h was missing in rrlist.c and added stdlib.h for NULLSebastien Estienne2005-10-111-0/+5
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@731 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * replaced SOL_IP by IPPROTO_IP as it seems more portableSebastien Estienne2005-10-111-22/+22
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@730 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* remove uneeded asm/types.h inclusionLennart Poettering2005-10-111-1/+0
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@729 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* clean up iface.h a bitLennart Poettering2005-10-111-28/+21
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@728 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Split off linux specific parts of iface.[ch] into iface-linux.[ch]. This shouldLennart Poettering2005-10-118-358/+508
| | | | | | | | ease porting to other platforms. Sebest, Lathiat this is for you! It Should simplify your porting work to *BSD/MacOSX/Solaris. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@726 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* limit allowed flags to avahi_server_add_service_subtype()Lennart Poettering2005-10-111-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@719 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * rename avahi_is_valid_service_type() to avahi_is_valid_service_type_generic()Lennart Poettering2005-10-113-10/+8
| | | | | | | | | * add avahi_is_valid_service_type_strict() which doesn't allow subtypes and other strange things to pass * fix protocol validity checks in server.c * add new API function avahi_get_type_from_subtype() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@716 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* add support for service subtypes: avahi_server_add_service_subtype()Lennart Poettering2005-10-113-35/+82
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@714 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* don't send goodbye packets for records that are referenced from two local ↵Lennart Poettering2005-10-101-0/+23
| | | | | | entries git-svn-id: file:///home/lennart/svn/public/avahi/trunk@712 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * rename avahi_service_name_snprint() to avahi_service_name_join()Lennart Poettering2005-10-1012-268/+226
| | | | | | | | | | | | | | | | | | * add avahi_service_name_split() and make everything use it * change avahi_normalize_name() to work on a supplied buffer instead of malloc'ed memory. * add avahi_normalize_name_strdup() that retains the old behaviour avahi_normalize_name() * same thing for avahi_get_host_name()/avahi_get_host_name_strdup() * Rewrite domain name escaping and validity checking code * Remove superfluous memory allocationsfrom various browsers and do some other major cleanups * add new global macro AVAHI_CHECK_VALIDITY_RETURN_NULL() and modify many things to make use of it * add AVAHI_LABEL_MAX * patch everything to make use of AVAHI_LABEL_MAX and AVAHI_DOMAIN_NAME_MAX * add pretty printing for NS records * add partial pretty printing for SOA records * add many more validity checks to various user API functions git-svn-id: file:///home/lennart/svn/public/avahi/trunk@708 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* ### BACKPORT ###Lennart Poettering2005-10-031-1/+5
| | | | | | | | Yet another one of those useless-assert bugs: Actually allow browsing for registration domains git-svn-id: file:///home/lennart/svn/public/avahi/trunk@691 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* ### BACKPORT ### (only second point)Lennart Poettering2005-10-032-85/+47
| | | | | | | | * Make use of avahi_service_name_snprint() wherever it applies * Fix some potential memory leaks when avahi_server_add() fails git-svn-id: file:///home/lennart/svn/public/avahi/trunk@684 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Add new flag AVAHI_PUBLISH_IS_PROXY and activate it for static services with ↵Lennart Poettering2005-09-291-7/+8
| | | | | | a host name set git-svn-id: file:///home/lennart/svn/public/avahi/trunk@658 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* handle wide areas responses with ANCOUNT = 0 like NXDOMAINLennart Poettering2005-09-291-17/+21
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@657 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * deal correctly with browsing mDNS services pointing to unicast DNS host namesLennart Poettering2005-09-291-2/+20
| | | | | | | * fix service resolving for both IPv4 and IPv6 where one of the two addresses doesn't exist git-svn-id: file:///home/lennart/svn/public/avahi/trunk@656 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* reset the the commit throttling counter for entry groups 5s afer they have ↵Lennart Poettering2005-09-292-0/+18
| | | | | | been established successfully git-svn-id: file:///home/lennart/svn/public/avahi/trunk@651 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * make all flags parameters UINT32 when marshalling for DBUSLennart Poettering2005-09-2917-113/+175
| | | | | | | | | | | | | | | | | | | * rename AvahiEntryFlags to AvahiPublishFlags * add flags parameter to add_service() and friends * validity checking of flags, interface and protocol parameters of add_service() and friends * make AVAHI_VALID_FLAGS a global macro * add new flag AVAHI_PUBLISH_NO_REVERSE, if set address records will no be created with matching reverse lookup PTR RRs * add new flag AVAHI_PUBLISH_NO_COOKIE, for not implicitly adding the service cookie to TXT records * minor cleanups Yes, this will break the mono bindings. More breakages to come. NO_REVERSE and NO_COOKIE needs testing. Lathiat, I guess the new flag NO_REVERSE makes the immediate need to add a client side API to add arbitrary RRs obsolete for now. You might consider moving it in the TODO list to "later". git-svn-id: file:///home/lennart/svn/public/avahi/trunk@648 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* remove even more bad newlines in log messagesLennart Poettering2005-09-283-3/+3
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@647 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add option to not enable SO_REUSEADDR for multicast sockets, effectively ↵Lennart Poettering2005-09-284-48/+60
| | | | | | | | | | disallow multiple mDNS stacks running simultaneously * add a config file option for this and enable it by default * remove some bad \n in log messages git-svn-id: file:///home/lennart/svn/public/avahi/trunk@646 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * fix a bug found by Sebastien triggered be repeatedly resetting and ↵Lennart Poettering2005-09-281-6/+3
| | | | | | commiting an entry group git-svn-id: file:///home/lennart/svn/public/avahi/trunk@641 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Implement POOF aka "Passive Observation of Failure"Lennart Poettering2005-09-263-33/+124
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@632 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* fix querier instantiationLennart Poettering2005-09-253-4/+3
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@629 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* s/AVAHI_LOOKUP_CALLBACK/AVAHI_LOOKUP_RESULT/gLennart Poettering2005-09-254-15/+15
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@622 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * split off lookup.h and publish.h from core.hLennart Poettering2005-09-2536-1119/+3861
| | | | | | | | | | | | | * implement wide-area DNS-SD * if multiple clients query the same records, only start the query packet sequence once * implement recursive CNAME queries * add support for resolving services without TXT or A/AAAA records * enlarge resolving timeouts to 5s * implement new browse/resolving events CACHE_EXHAUSTED/ALL_FOR_NOW * add support for resolving services without name. (i.e. for normal SRV records) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@608 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Make AVAHI_PROTO_xxx well defined constantsLennart Poettering2005-09-166-34/+34
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@595 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe