summaryrefslogtreecommitdiffstats
path: root/avahi-core
Commit message (Collapse)AuthorAgeFilesLines
* reenable record updating using AVAHI_PUBLISH_UPDATELennart Poettering2006-01-231-1/+4
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1104 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* fix build on GNU (closes: #3)Lennart Poettering2006-01-178-0/+16
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1084 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* fix double free() bugLennart Poettering2006-01-071-12/+12
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1063 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * may fix a compile problem on freebsd 4.xSebastien Estienne2005-11-271-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1037 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* missing initialization fixLennart Poettering2005-11-231-0/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1025 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* never publish .local as browsing domainLennart Poettering2005-11-231-1/+3
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1024 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* in the domain browser objects: don't return statically configured browsing ↵Lennart Poettering2005-11-231-3/+6
| | | | | | domains when the user asked for registration domains git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1022 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Hopefully fix a segfault when shutting down the daemon, found by maroLennart Poettering2005-11-191-0/+3
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1011 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * fixed usage of avahi_format_mac_addressSebastien Estienne2005-11-171-12/+15
| | | | | | | | * removed some unused parameters * comment some debug code git-svn-id: file:///home/lennart/svn/public/avahi/trunk@993 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * when calculating a random jitter time for time events, use the same jitter inLennart Poettering2005-11-169-77/+46
| | | | | | | | | | | | | every 10s timespans. This should increase the probability that multiple responses can be merged into a single packet, and thus decreases network traffic. * add _workstation._tcp services in RUNNING state, not earlier * an important bugfix which fixes the entry group state automatons * remove obsolete debug messages * minor other cleanups git-svn-id: file:///home/lennart/svn/public/avahi/trunk@980 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* some minor adjusments to the conformance testing program. We now pass Apple'sLennart Poettering2005-11-152-5/+6
| | | | | | | | conformance tests without any changes or exceptions. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@966 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* deal better with mcast management and disappearing IP addressesLennart Poettering2005-11-141-4/+10
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@965 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* don't fail if leaving a multicast group failsLennart Poettering2005-11-141-7/+4
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@963 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* minor cleanupsLennart Poettering2005-11-141-14/+5
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@959 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * be more verbose when retrying sysctl when the routing table grewSebastien Estienne2005-11-131-2/+7
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@958 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * fixed a problem on FreeBSD where sysctl needs locked memorySebastien Estienne2005-11-131-1/+5
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@956 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Make "NameAcquired" warning line disappear in avahi-clientLennart Poettering2005-11-1311-54/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Scheduler tweaks: * Add some more comments * Remove scheduled queries from the query queue if the querier which issued them dies. This reduces traffic immensly when many short lived queries are made, e.g. during host name lookups. * Don't free a querier object immediately when it is no longer referenced. Instead keep it and try to recycle it in case someone else wants to do the same query later on. Free it at the latest moment possible: just before the next query is scheduled to be made. This reduces traffic immensly when many short lived queries are made. With these two changes we can minimize the traffic to zero or near zero for many simple lookups. * When responding records with the FLUSH_CACHE bit set, reply immediately only when all response record have this bit set. Prior to this change we replied imediately as soon as one record hat this bit set. This change should make us pass *all* Bonjour mDNS conformance tests without any exceptions. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@954 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add support for IP_SENDSRCADDR on freeBSDSebastien Estienne2005-11-091-3/+25
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@945 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * set IP_MULTICAST_IF for *BSDSebastien Estienne2005-11-091-4/+7
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@943 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* make sure that the local hostname passes the avahi_is_valid_domain_name() check.Lennart Poettering2005-11-091-0/+3
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@940 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Do not allow adding RRs to entry groups that are already commitedLennart Poettering2005-11-083-6/+8
| | | | | | | * Reword some misleading log messages git-svn-id: file:///home/lennart/svn/public/avahi/trunk@939 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * deal with gethostname() failing, use utsname.sysname[] instead in that caseLennart Poettering2005-11-084-16/+64
| | | | | | | * deal with utsname() failing when creating HINFO records git-svn-id: file:///home/lennart/svn/public/avahi/trunk@938 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add two new configuration file options: "disable-publishing" and ↵Lennart Poettering2005-11-063-9/+69
| | | | | | | | | | | "disable-user-service-publishing" * add two new errors: NOT_PERMITTED and NOT_SUPPORTED * add two new publishing flags: AVAHI_PUBLISH_USE_MULTICAST, AVAHI_PUBLISH_USE_WIDE_AREA * return NOT_SUPPORTED when user tries to add RRs in wide area domains - for now git-svn-id: file:///home/lennart/svn/public/avahi/trunk@930 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * allow the user to specify a static browse domain list in the configuration ↵Lennart Poettering2005-11-034-5/+98
| | | | | | | | | | | file * remove "drop-root" configuration variable * move the configuration variable "add-service-cookie" from [server] to [publish] * reorder AVAHI_DOMAIN_BROWSER_xx defs git-svn-id: file:///home/lennart/svn/public/avahi/trunk@926 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * small fixesSebastien Estienne2005-11-032-3/+4
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@925 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* rework and cleanup socket handling to improve support for OS that don't ↵Lennart Poettering2005-11-036-179/+222
| | | | | | support a SO_RECVIF equivalent git-svn-id: file:///home/lennart/svn/public/avahi/trunk@923 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Always specfify the local IP address when joining mcast groups. This ↵Lennart Poettering2005-11-014-42/+108
| | | | | | increases compatibility with *BSD and is smoother on other systems, too git-svn-id: file:///home/lennart/svn/public/avahi/trunk@921 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * fix compiling with --disable-dbusSebastien Estienne2005-11-011-0/+1
| | | | | | | * add a missing include for OpenBSD git-svn-id: file:///home/lennart/svn/public/avahi/trunk@917 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * small fix in the #includesSebastien Estienne2005-10-311-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@909 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * many trivial fix to make avahi compile on OpenBSDSebastien Estienne2005-10-2811-19/+44
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@903 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* remove a bunch of compiler warningsLennart Poettering2005-10-273-8/+8
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@898 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * format unknown DNS records according to RFC3597Lennart Poettering2005-10-275-41/+76
| | | | | | | | * add some DNS class and type validity checks to avahi_server_add() * move DNS type and class definitions to avahi-common/defs.h git-svn-id: file:///home/lennart/svn/public/avahi/trunk@896 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Add validity checking to TXT data parsing, this fixes a remotely exploitable ↵Lennart Poettering2005-10-271-1/+2
| | | | | | vulnerability. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@888 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* add dns-srv.hh to distributionLennart Poettering2005-10-261-1/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@883 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * avahi-utils: replace python avahi-browse with a version written in C.Lennart Poettering2005-10-2620-59/+61
| | | | | | | | | | | * remove -Wunused from GCC command line and use "unused" attribute instead * remove AVAHI_CLIENT_S_FAILURE and AVAHI_CLIENT_S_INVALID since these event's are never forwarded to the client anyway * make use of AVAHI_GCC_NORETURN * really send eror code with StateChange DBUS signals * ignore EINTR in avahi_simple_poll_loop() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@879 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* reorder arguments of avahi_reverse_lookup_name() to make them more naturalLennart Poettering2005-10-262-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@874 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * remove lots of DOXYGEN_SHOULD_SKIP_THIS from the header files, use doxygen ↵Lennart Poettering2005-10-2618-65/+79
| | | | | | | | | | macro expansion instead * split of exotic functions from avahi-core/rr.h to avahi-core/rr-util.h * update doxygen docs git-svn-id: file:///home/lennart/svn/public/avahi/trunk@872 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * replace AF_UNSPEC by AVAHI_PROTO_UNSPEC in client-test.cLennart Poettering2005-10-2513-44/+357
| | | | | | | | | * remove some functions from the public API in avahi-common/{domain,address}.[ch] and move them into avahi-core/{domain-util,add-util}.[ch] * properly generate CNAME responses * add some more comments to server.c git-svn-id: file:///home/lennart/svn/public/avahi/trunk@871 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add new core API functions avahi_rdata_serialize() and avahi_rdata_parse()Lennart Poettering2005-10-254-86/+177
| | | | | | | | * add new definition AVAHI_DNS_RDATA_MAX * update dns-test.c and add examples for avahi_rdata_{serialize,parse}() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@867 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* add a compiler warning that avahi_send_dns_packet_ipv4() still misses ↵Lennart Poettering2005-10-251-3/+4
| | | | | | support for setting the outgoing interface on everythng but Linux git-svn-id: file:///home/lennart/svn/public/avahi/trunk@866 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * small hack for netbsdSebastien Estienne2005-10-251-0/+6
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@864 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * rename all limit defs so that they end with _MAXLennart Poettering2005-10-2413-34/+34
| | | | | | | * fix some minor typos git-svn-id: file:///home/lennart/svn/public/avahi/trunk@863 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* fix avahi_interface_monitor_sync() for the linux NETLINK implementationLennart Poettering2005-10-242-32/+24
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@860 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * reorder some things during server initializationLennart Poettering2005-10-241-23/+19
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@859 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * change setsocktopt for IP_TTL to use an int instead of an uin8_t for ↵Lennart Poettering2005-10-241-3/+3
| | | | | | compatibility with non-linux systems git-svn-id: file:///home/lennart/svn/public/avahi/trunk@858 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* cleanup socket.c a littleLennart Poettering2005-10-241-111/+91
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@857 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add new entry group state AVAHI_ENTRY_GROUP_FAILURELennart Poettering2005-10-241-1/+1
| | | | | | | | | | | | * pass error code alongside entry gorup state changes over DBUS * add new server state AVAHI_SERVER_FAILURE * pass error code alongside server state changes over DBUS * fix client-publish-service * rename error code AVAHI_ERR_LOCAL_COLLISION to AVAHI_ERR_COLLISION * update TODO git-svn-id: file:///home/lennart/svn/public/avahi/trunk@854 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* unrbeak IPv6 support: change ttl value size back to 32 bit for ipv6 Lennart Poettering2005-10-241-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@853 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* fix IP_TTL/IP_RECVTTL on linuxLennart Poettering2005-10-241-3/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@852 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* many cleanups in preperation of the netbsd portLennart Poettering2005-10-241-69/+83
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@851 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe