summaryrefslogtreecommitdiffstats
path: root/avahi-daemon/main.c
Commit message (Collapse)AuthorAgeFilesLines
* * add an option to make avahi-daemon using POINTOPOINT interfaces (disable ↵Sebastien Estienne2006-02-191-0/+2
| | | | | | by default) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1146 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* include static-hosts.h in main.cLennart Poettering2006-02-141-0/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1135 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Implement static hosts file for static host<->ip mappingsTrent Lloyd2006-02-111-0/+11
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1133 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add new API function avahi_nss_support()Lennart Poettering2006-01-201-0/+6
| | | | | | | | * add new DBUS method Server.IsNSSSupportAvailable() * add support for IsNSSSupportAvailabke() to avahi-bookmarks git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1092 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* update man pagesLennart Poettering2005-11-161-4/+4
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@981 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * fixed a problem on FreeBSD where sysctl needs locked memorySebastien Estienne2005-11-131-1/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@956 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* fix retval sendingLennart Poettering2005-11-091-2/+5
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@941 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Do not allow adding RRs to entry groups that are already commitedLennart Poettering2005-11-081-2/+2
| | | | | | | * Reword some misleading log messages git-svn-id: file:///home/lennart/svn/public/avahi/trunk@939 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add two new configuration file options: "disable-publishing" and ↵Lennart Poettering2005-11-061-3/+9
| | | | | | | | | | | "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-5/+22
| | | | | | | | | | | 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
* * fix two #ifdefsLennart Poettering2005-11-011-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@920 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * fix compiling with --disable-dbusSebastien Estienne2005-11-011-1/+4
| | | | | | | * add a missing include for OpenBSD git-svn-id: file:///home/lennart/svn/public/avahi/trunk@917 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* make use of setproctitle() to change the process title of the daemon ↵Lennart Poettering2005-10-301-22/+46
| | | | | | processes. This is especially useful to distuingish the main daemon and the chroot() helper process. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@908 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add chroot() support on LinuxLennart Poettering2005-10-301-20/+117
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@907 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* remove a bunch of compiler warningsLennart Poettering2005-10-271-5/+5
| | | | 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-3/+3
| | | | | | | | | | | * 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
* * rename all limit defs so that they end with _MAXLennart Poettering2005-10-241-5/+5
| | | | | | | * fix some minor typos git-svn-id: file:///home/lennart/svn/public/avahi/trunk@863 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * use which in autogen.sh instead of type -pSebastien Estienne2005-10-241-1/+3
| | | | | | | | | * add NetBSD support in bootstrap.sh * Netbsd doesn t have RLIMIT_AS -> ifdef * reorder an include in dnsconfd/main.c git-svn-id: file:///home/lennart/svn/public/avahi/trunk@862 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add new entry group state AVAHI_ENTRY_GROUP_FAILURELennart Poettering2005-10-241-28/+45
| | | | | | | | | | | | * 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
* use seteuid() instead of setreuid(), since the latter seems to be broken on ↵Lennart Poettering2005-10-231-4/+8
| | | | | | macosx git-svn-id: file:///home/lennart/svn/public/avahi/trunk@850 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * move unicast DNS server registration/browsing routines to their own header ↵Lennart Poettering2005-10-171-0/+2
| | | | | | | | | | | 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
* change default value of "disallow-other-stacks" to "no" to make Marc happy. ↵Lennart Poettering2005-09-291-1/+0
| | | | | | (i.e. enable SO_REUSEADDR by default) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@652 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * make all flags parameters UINT32 when marshalling for DBUSLennart Poettering2005-09-291-1/+1
| | | | | | | | | | | | | | | | | | | * 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
* * add option to not enable SO_REUSEADDR for multicast sockets, effectively ↵Lennart Poettering2005-09-281-0/+3
| | | | | | | | | | 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
* * adapt to recent avahi-core API changesLennart Poettering2005-09-251-11/+39
| | | | | | | * make use of wide area DNS git-svn-id: file:///home/lennart/svn/public/avahi/trunk@609 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* add new configuration file option "add-service-cookie"Lennart Poettering2005-09-101-2/+3
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@556 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add magic identification cookies to service TXT records automaticallyLennart Poettering2005-09-101-1/+1
| | | | | | | | | * add an API to query the local service cookie * add a DBUS interface to query the local service cookie * wrap that in avahi-client git-svn-id: file:///home/lennart/svn/public/avahi/trunk@555 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Improve log messagesLennart Poettering2005-08-281-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@465 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * be a little bit more verbose about published IP addressesLennart Poettering2005-08-281-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@464 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* fix small typo which breaks build without dbus Lennart Poettering2005-08-251-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@439 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * really fix compilation without DBUSLennart Poettering2005-08-231-0/+4
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@430 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Fix compilation with D-BUS disabled, include flags in DaemonConfig even ↵Trent Lloyd2005-08-231-2/+0
| | | | | | if HAVE_DBUS is false git-svn-id: file:///home/lennart/svn/public/avahi/trunk@429 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Move the D-BUS configured but not compiled in warning, and make it work ↵Trent Lloyd2005-08-231-6/+4
| | | | | | | | | right. * Fix a bug in avahi-client where if you have multiple clients, a crash can occur when using AvahiServiceBrowsers. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@424 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Yeh, I should like.. test my changes before I commit them, that would be ↵Trent Lloyd2005-08-231-1/+1
| | | | | | a goodd idea. *nod* git-svn-id: file:///home/lennart/svn/public/avahi/trunk@420 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Don't barf on enable-dbus if not compiled with dbus, but print a warning ↵Trent Lloyd2005-08-231-4/+6
| | | | | | if the config file requested to enable it git-svn-id: file:///home/lennart/svn/public/avahi/trunk@419 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add support for setting enable-dbus to "warn" in avahi-daemon.confLennart Poettering2005-08-221-4/+28
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@397 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Add avahi-client examples to doxygenLennart Poettering2005-08-201-0/+2
| | | | | | | * tighten avahi-core default #includes a bit git-svn-id: file:///home/lennart/svn/public/avahi/trunk@365 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* fix a typo in --helpSebastien Estienne2005-08-161-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@348 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * cleanup build system a littleLennart Poettering2005-08-151-3/+6
| | | | | | | | * strip remaining glib usage * -fPIC build fix for x86-64 (thanks tvainika) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@336 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* gcc 2.95 compatibilityLennart Poettering2005-08-151-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@332 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * implement ini file parserLennart Poettering2005-08-151-261/+224
| | | | | | | | * strip glib usage from avahi-daemon * make dbus-watch-glue a static library so that both avahi-client and avahi-daemon can make use of it git-svn-id: file:///home/lennart/svn/public/avahi/trunk@327 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add new priority parameter to avahi_glib_poll_new()Lennart Poettering2005-08-141-1/+1
| | | | | | | | | | | | * beef up AvahiPoll a little to contain real timeout events * cleanups in avahi-client * drop glib dependency * port to AvahiPoll system * put some "const"s and "static"s in to make gcc shut up * change all uses of malloc/free to avahi_malloc/avahi_new/avahi_free git-svn-id: file:///home/lennart/svn/public/avahi/trunk@324 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Fix no network interface bug reported by LathiatLennart Poettering2005-08-141-4/+9
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@316 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add resource limit enforcement to the daemonLennart Poettering2005-08-141-22/+160
| | | | | | | * add ne options --no-rlimits, --no-drop-root, --syslog and --debug git-svn-id: file:///home/lennart/svn/public/avahi/trunk@311 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Rename some server side objects/symbols so that they do not conflict with ↵Lennart Poettering2005-08-131-10/+10
| | | | | | the same things on the client side. i.e. AvahiEntryGroup -> AvahiSEntryGroup git-svn-id: file:///home/lennart/svn/public/avahi/trunk@310 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * strip glib from avahi-coreLennart Poettering2005-08-131-6/+38
| | | | | | | | | | | | | | * implement glib memory allocator * add new documentation file MALLOC * initialize pseudo-RNG from /dev/urandom in avahi-daemon * remove some gcc 4.0 warnings * beef up watch system with real timeouts * move GCC __attribute__ macros into its own header avahi-common/gccmacro.h * make use of GCC's sentinel attribute where it make sense * add malloc() implementations that abort on OOM and enable them by default git-svn-id: file:///home/lennart/svn/public/avahi/trunk@308 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * simply compilation a littleLennart Poettering2005-08-081-4/+3
| | | | | | | | * fix avahi-dnsconfd forking * clean up init script output a little git-svn-id: file:///home/lennart/svn/public/avahi/trunk@269 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add proper error codes and patch everything to make use of itLennart Poettering2005-08-051-1/+5
| | | | | | | | * parameter validity checkin in all user visible functions of libavahi-core * two new python tools/examples avahi-resolve-host-name and avahi-resolve-address git-svn-id: file:///home/lennart/svn/public/avahi/trunk@238 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add C examplesLennart Poettering2005-08-031-21/+15
| | | | | | | | | | * 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-1/+4
| | | | | | | | | | | | | | | | | | 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