summaryrefslogtreecommitdiffstats
path: root/avahi-core/server.c
Commit message (Collapse)AuthorAgeFilesLines
* reflector: cache entry link-local addresses filterFrançois-Xavier Bourlet2011-03-081-0/+8
| | | | Do not reflect cache entry with ipv6 link-local addresses on query.
* core: implement packet rate limiting and enable it by defaultLennart Poettering2010-06-291-0/+2
|
* core: fix potential crash on service name collisionPatrick Oppenlander2010-06-291-0/+4
| | | | | | | | | | | | | If there is a service name collision and the entry group callback calls avahi_s_entry_group_reset or avahi_s_entry_group free on the group in question, the entries were released. This could cause a crash in withdraw_rrset as it is walking a list of entries at this time. The fix for this issue is to schedule a cleanup event to clean up entries after a a short timeout (currently one second). If a cleanup occurs for any other reason the event is cancelled. http://avahi.org/ticket/302
* core: fix counting of workstation services that are in the process of being ↵Lennart Poettering2010-06-281-0/+1
| | | | | | registered Fixes http://avahi.org/ticket/276
* core: don't check ARCOUNT to avoid incompatibility with EDNS0Lennart Poettering2010-06-281-4/+3
| | | | | | | | Newer Bonjour implementations add EDNS0 extensions to the query packets. We currently consider those corrupted or invalid. This patch drops the check, and accepts them as valid. http://avahi.org/ticket/284
* core: always normalize configure host/domain nameLennart Poettering2010-06-281-10/+11
|
* limits: considerably bump up limits, since users can now easily lower them ↵Lennart Poettering2010-06-251-1/+1
| | | | again and some applications need the high values
* daemon: make internal limits configurableLennart Poettering2010-06-251-0/+3
|
* core: Don't ignore records with link-local addresssTommaso Colombo2010-06-251-4/+3
| | | | | | | | Fix a regression introduced by commit 2ea7e99ed0dcfd371fef5aeecd3de77da1dfcd4f that caused the mDNS response handler to completely ignore records with link-local addresses. Fixes #300
* get rid of a lot of old svn cruftLennart Poettering2010-06-251-2/+0
|
* core: Bug fixes for cleanup codeLennart Poettering2009-11-141-9/+2
| | | | | | Patch contributed by "oc3an". http://avahi.org/ticket/267
* fix minor typosLennart Poettering2009-06-081-1/+1
|
* reflector: Don't reflect link-local IPv4 or IPv6 addressesRob Leslie2009-04-191-1/+1
| | | | | | Modify avahi-daemon so that it doesn't advertise patently useless link-local addresses on the wrong interfaces when reflecting mDNS responses.
* CVE-2009-0758: Reflector creates packet storm on legacy unicast trafficRob Leslie2009-04-011-2/+2
| | | | Fixes rhbz #488314.
* allow/deny interfaces supportLennart Poettering2008-12-121-3/+24
| | | | | | Original patch from Skinkie. Heavily modified by Lennart Poettering. Closes #212.
* explain which port it is that is invalidLennart Poettering2008-12-121-1/+1
|
* Don't get confused by UDP packets with a source port that is zeroLennart Poettering2008-12-121-0/+6
| | | | | | This is a fix for rhbz 475394. Problem identified by Hugo Dias.
* Include host in invalid packet messagesLennart Poettering2008-12-111-147/+151
| | | | | | Include the source host in warning messages about invalid packets. This is a result of rhbz #438013
* Make the poof algorithm only positive if 4 unanswered queries eachSjoerd Simons2008-01-281-1/+2
| | | | | | | | | at least one second apart are observed. This reduces the likelyhood of false positives a lot. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1746 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Fix a few typos of error message, thansk to tedp (Ref: Debian #444235)Trent Lloyd2007-09-271-16/+16
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1543 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* add new API function avahi_server_set_browse_domains() to avahi-coreLennart Poettering2007-08-121-0/+26
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1513 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Don't attempt to treat Known Answer records as potentially Trent Lloyd2007-07-101-5/+3
| | | | | | | conflicting records. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1496 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* don't publish the service cookie by default anymore. It was a bad idea. We ↵Lennart Poettering2007-05-081-1/+1
| | | | | | should think of something better way to work around this problem. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1463 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Fix registration of really large records, like it is necessary for XEP-0174 ↵Lennart Poettering2007-04-121-8/+18
| | | | | | | | | (jabber+bonjour) Based on an original patch by Sjoerd Simons, but heavily modified. (Closes #131) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1405 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * optionally, register A RR via IPv6, AAAA RR via IPv4 (Closes #62)Lennart Poettering2007-01-051-3/+11
| | | | | | | * add new API function avahi_server_get_config() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1365 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* do not alllow setting the host name to the one that is currently used ↵Lennart Poettering2006-08-231-9/+30
| | | | | | anyway. return AVAHI_ERR_NO_CHANGE in that case git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1267 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* if validation of incoming traffic fails, give the user a clue that this ↵Lennart Poettering2006-04-241-4/+4
| | | | | | might be related to an UTF8 problem git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1204 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add an option to make avahi-daemon using POINTOPOINT interfaces (disable ↵Sebastien Estienne2006-02-191-0/+1
| | | | | | by default) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1146 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
* * when calculating a random jitter time for time events, use the same jitter inLennart Poettering2005-11-161-13/+2
| | | | | | | | | | | | | 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
* minor cleanupsLennart Poettering2005-11-141-14/+5
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@959 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Make "NameAcquired" warning line disappear in avahi-clientLennart Poettering2005-11-131-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* * Do not allow adding RRs to entry groups that are already commitedLennart Poettering2005-11-081-1/+1
| | | | | | | * 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-081-6/+13
| | | | | | | * 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-061-0/+1
| | | | | | | | | | | "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-031-0/+10
| | | | | | | | | | | 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-031-0/+1
| | | | 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-031-89/+77
| | | | | | support a SO_RECVIF equivalent git-svn-id: file:///home/lennart/svn/public/avahi/trunk@923 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
* remove a bunch of compiler warningsLennart Poettering2005-10-271-3/+3
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@898 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * avahi-utils: replace python avahi-browse with a version written in C.Lennart Poettering2005-10-261-1/+1
| | | | | | | | | | | * 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
* * remove lots of DOXYGEN_SHOULD_SKIP_THIS from the header files, use doxygen ↵Lennart Poettering2005-10-261-0/+1
| | | | | | | | | | 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-251-38/+65
| | | | | | | | | * 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
* * rename all limit defs so that they end with _MAXLennart Poettering2005-10-241-11/+11
| | | | | | | * fix some minor typos git-svn-id: file:///home/lennart/svn/public/avahi/trunk@863 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
* * remove AVAHI_PUBLISH_IS_PROXY, it was a bad ideaLennart Poettering2005-10-181-14/+70
| | | | | | | | | | | * drop avahi_service_is_service_local(), avahi_client_is_service_local() * add new lookup result flags AVAHI_LOOKUP_RESULT_OUR_OWN and AVAHI_LOOKUP_RESULT_LOCAL * remove avahi_address_resolver_new() and replace it by avahi_address_resolver_new_a() * avahi-client: save query data in browse/resolve objects so that we can return it on failure * other cleanups git-svn-id: file:///home/lennart/svn/public/avahi/trunk@811 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* rename server.h to internal.hLennart Poettering2005-10-171-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@804 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * move unicast DNS server registration/browsing routines to their own header ↵Lennart Poettering2005-10-171-8/+3
| | | | | | | | | | | dns-srv-rr.h * remove some unused functions * unexport some functions * other cleanups git-svn-id: file:///home/lennart/svn/public/avahi/trunk@803 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* split entry and entry-group management stuff off to its own file entry.cLennart Poettering2005-10-171-1178/+9
| | | | 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-171-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@794 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe