summaryrefslogtreecommitdiffstats
path: root/avahi-core/server.c
Commit message (Collapse)AuthorAgeFilesLines
* * another small fixLennart Poettering2005-08-031-4/+5
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@223 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * correct fixesLennart Poettering2005-08-031-10/+11
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@222 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * another small fixLennart Poettering2005-08-031-3/+3
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@221 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* small fixLennart Poettering2005-08-031-0/+5
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@220 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * drop AVAHI_ENTRY_GROUP_SLEEPINGLennart Poettering2005-08-031-4/+6
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@218 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add C examplesLennart Poettering2005-08-031-63/+132
| | | | | | | | | | * change doxygen to output stuff in "doxygen/" instead of "doxygen-doc/" * implement avahi_entry_group_{reset,is_empty}() and make everyone use it * move holdoff (SLEEPING) time checking from server to entry group * add preliminary error codes git-svn-id: file:///home/lennart/svn/public/avahi/trunk@216 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * replace guchar and gint by AvahiProtocol, AvahiIfIndex at many places ↵Lennart Poettering2005-08-021-30/+58
| | | | | | | | | | | | | | | | | | where it make sense * change avahi_add_{service,txt}_strlst() to copy the string list * gcc warning fixes from Ikke * limit number of DBUS connections * limit objects created by a DBUS client * limit number of clients * limit number of entries a client may create * add legal blurb to avahi-discover * remove some obsolete import prototypes from avahi-discover * don't include config.h in dbus.h * add string definitions for DBUS errors git-svn-id: file:///home/lennart/svn/public/avahi/trunk@212 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * allow caller to specifiy additional CFLAGS arguments to bootstrap.shLennart Poettering2005-08-021-24/+25
| | | | | | | * fix some warnings (and some real errors) found when compiling avahi with excessive GCC warnings git-svn-id: file:///home/lennart/svn/public/avahi/trunk@209 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add new tool avahi-publish-addressLennart Poettering2005-07-301-9/+16
| | | | | | | | | | | | * avahi-publish-service: fail after 12 collisions * avahi-daemon: dump record data on SIGUSR1 to syslog * avahi-core: * improve dumping API * shorten response history time to 500ms, infriniging the RFC but fixing ping-pong behaviour on RR registration * remove gcc warning git-svn-id: file:///home/lennart/svn/public/avahi/trunk@195 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * drop trailing dot in avahi_normalize_name()Lennart Poettering2005-07-281-8/+16
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@180 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * swap order of "type" and "name" arguments of avahi_server_add_service() ↵Lennart Poettering2005-07-271-5/+5
| | | | | | and friends git-svn-id: file:///home/lennart/svn/public/avahi/trunk@179 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * recreate DNS query in simple protocol on host or domain name changesLennart Poettering2005-06-281-1/+1
| | | | | | | * C++ compatibility git-svn-id: file:///home/lennart/svn/public/avahi/trunk@151 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * doxygen updatesLennart Poettering2005-06-251-6/+9
| | | | | | | * reply to probe queries immediately git-svn-id: file:///home/lennart/svn/public/avahi/trunk@147 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* s/avahi_server_add_text/avahi_server_add_txt/gLennart Poettering2005-06-241-6/+6
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@146 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * update default TTL generation to match RFCLennart Poettering2005-06-241-21/+28
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@145 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * implement new source address check mechanismsLennart Poettering2005-06-241-29/+49
| | | | | | | | | | * introduce new types AvahiIfIndex and AvahiProtocol to abstract underlying OS structures a bit * document string list, address and other stuff * implement qclass = ANY queries * don't make use of UTF8 collation as RFC mandates git-svn-id: file:///home/lennart/svn/public/avahi/trunk@144 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * update todo listLennart Poettering2005-06-241-2/+102
| | | | | | | | | | | | | * add avvahi-dnsconfd * implement AvahiDNSServerBrowser * Update special browse/register RRs to match current RFC * add support to avahi-daemon to publish name server information * add support to avahi-daemon to publish /etc/resolv.conf DNS server information * add new simple protocol command: "BROWSE-DNS-SERVERS" * cleanup final configure message git-svn-id: file:///home/lennart/svn/public/avahi/trunk@143 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * remove stale UNIX sockets before creating new onesLennart Poettering2005-06-211-1/+6
| | | | | | | * make sure to flush outbound records after conflict detection git-svn-id: file:///home/lennart/svn/public/avahi/trunk@141 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Update configure.ac to check for the availabilty of more functionsLennart Poettering2005-06-211-24/+67
| | | | | | | | | | | * really return sensible error codes from avahi_server_add_xx() * make all users of avahi_server_add_xxx() check for the validity * check for local RR conflicts * only suppress local queries by remote queries if they have an empty known answer suppresion list * fix FIONREAD call git-svn-id: file:///home/lennart/svn/public/avahi/trunk@136 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * detect other running mDNS stacksLennart Poettering2005-06-191-3/+3
| | | | | | | | | | | | * replace more g_message()/g_warning() calls with avahi_log_xxx() * fix configuration file paths * only load configuration file when running daemon * require uid == 0 * fix static service reloading * add new command line option for reloading -r git-svn-id: file:///home/lennart/svn/public/avahi/trunk@129 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * fix memory handling when reading configuration filesLennart Poettering2005-06-181-4/+1
| | | | | | | | * implement signal handling in daemon * correctly increase reference counter for main contexts when running g_main_context_default() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@128 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * rename the configuration variables register_xxx and announce_xxx to ↵Lennart Poettering2005-06-181-11/+11
| | | | | | | | | | publish_xxx * implement command line parsing and configuration file parsing * implement daemonizing support (partially) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@127 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add initial implmenentation of a "simple protocol" for usage with nss-mdnsLennart Poettering2005-06-161-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@113 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add logging API and make all code make use of itLennart Poettering2005-06-111-37/+38
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@112 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * fix avahi when connected to the same network via two NICsLennart Poettering2005-06-031-30/+35
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@97 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * use FIONREAD to minimize allocated buffer size when reading incoming packetsLennart Poettering2005-06-031-1/+1
| | | | | | | * enforce a cache size limit git-svn-id: file:///home/lennart/svn/public/avahi/trunk@96 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * make some functions return a gint, for signaling errors to the userLennart Poettering2005-06-031-13/+32
| | | | | | | * some API documentation updates git-svn-id: file:///home/lennart/svn/public/avahi/trunk@95 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add support for _workstation._tcpLennart Poettering2005-06-031-0/+1
| | | | | | | * really fix #3455 git-svn-id: file:///home/lennart/svn/public/avahi/trunk@93 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * implement reflection (including legacy unicast reflection)Lennart Poettering2005-06-031-33/+327
| | | | | | | * implement a history in the probe scheduler git-svn-id: file:///home/lennart/svn/public/avahi/trunk@92 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add the first bits of a mDNS reflectorLennart Poettering2005-05-231-1/+52
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@90 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Impelement AvahiServiceResolverLennart Poettering2005-05-221-0/+3
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@88 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * implement AvahiServiceBrowserLennart Poettering2005-05-221-0/+3
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@87 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add service type browserLennart Poettering2005-05-221-0/+3
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@85 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* rename resolve.[ch] to browse.[ch]Lennart Poettering2005-05-221-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@84 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Rework some Browsing/Resolving stuffLennart Poettering2005-05-221-12/+25
| | | | | | | | * Add AvahiDomainBrowser * fix avahi_strlist_to_string() with empty lists git-svn-id: file:///home/lennart/svn/public/avahi/trunk@83 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add address resolverLennart Poettering2005-05-201-1/+3
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@82 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * rename subscribe.[ch] to resolve.[ch]Lennart Poettering2005-05-201-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@81 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * rename AvahiSubscription to AvahiRecordResolverLennart Poettering2005-05-201-5/+9
| | | | | | | * implement AvahiHostNameResolver git-svn-id: file:///home/lennart/svn/public/avahi/trunk@80 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add new server state AVAHI_SERVER_SLEEPING to avoid conflicts by own responsesLennart Poettering2005-05-201-13/+80
| | | | | | | | | | | | | * Honour TC bit in incoming packets by responding immediately to packets * publish browse domain * Fix a structure size issue in iface.c revealed by running avahi on Linux 2.4 * Don't depend on IFF_RUNNING * Require a global IP addresses to consider an interface relevant * Linux 2.4 compatiblity * fix parsing of TTL from recvmsg() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@79 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Add support for server state change callbacksLennart Poettering2005-05-201-50/+204
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@78 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* add a new structure for configuration AvahiServerConfigLennart Poettering2005-05-191-19/+63
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@76 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * split packet scheduler into three seperate partsLennart Poettering2005-05-171-31/+83
| | | | | | | | | * test against Aplle test suit, most tests pass now * suppress auxiliary records by known answers * handle very large records git-svn-id: file:///home/lennart/svn/public/avahi/trunk@74 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* fix unicast known answer suppresionLennart Poettering2005-05-161-8/+15
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@73 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * case insensitive name comparisonsLennart Poettering2005-05-161-133/+143
| | | | | | | | | | | | | | * corectly handle RRsets * make addresses unique * return to probe state on conflict * a bunch of fixes detected while testing against the Apple Bonjour Conformance Test * a fix in avahi_record_lexicographical_cmp() regarding TXT records * API for choosing alternative host and service names * remove a bunch of unused crap from cache.c and server.c * flush cache when an interface becomes unavailable git-svn-id: file:///home/lennart/svn/public/avahi/trunk@72 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add auxiliary records to packetLennart Poettering2005-05-111-96/+135
| | | | | | | | * reeimplement known answer suppression and add it for unicast packets * fix a valist bug when adding services to a server git-svn-id: file:///home/lennart/svn/public/avahi/trunk@68 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* check MUSTs of RFC:Lennart Poettering2005-05-101-58/+70
| | | | | | | | * always set AA bit on response * handle conflict in known answer suppresion git-svn-id: file:///home/lennart/svn/public/avahi/trunk@67 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * abstract MTU stuff for packet generationLennart Poettering2005-05-101-4/+91
| | | | | | | | * unicast response support * legacy unicast support git-svn-id: file:///home/lennart/svn/public/avahi/trunk@66 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* rename libavahi-core to avahi-coreLennart Poettering2005-05-071-0/+1035
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@57 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe