summaryrefslogtreecommitdiffstats
path: root/avahi-daemon/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Add missing #ifdef to avoid build failure on system having neither sys/inotify.hLennart Poettering2007-04-211-0/+2
| | | | | | | nor linux/inotify.h (Patch from Sven Wegener) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1452 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Add inotify support for /ect/avahi/services and /etc/avahi/hosts. Based on a ↵Lennart Poettering2007-04-151-19/+106
| | | | | | patch from "behanw". (Closes #95, #33) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1426 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Fix error message when passing invalid command line arguments. I admit ↵Lennart Poettering2007-04-141-2/+0
| | | | | | defeat, tedp wins, merging his patch. (Closes #88) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1424 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* add new config options "publish-aaaa-on-ipv4=" and "publish-a-on-ipv6="Lennart Poettering2007-01-051-3/+7
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1366 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Fix error message when passing an invalid command line option (Closes #88)Lennart Poettering2006-12-311-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1358 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* avahi_set_proc_title(): change the process name with prctl() if availableLennart Poettering2006-08-311-4/+4
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1300 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Some more s/D-BUS/D-Bus/gLennart Poettering2006-08-311-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1296 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* fix random seed initializationLennart Poettering2006-08-301-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1284 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* fix AVAHI_SERVER_REGISTERING handlingLennart Poettering2006-08-221-5/+10
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1259 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* don't remove static services from the avahi daemon on SIGHUP. Add static ↵Lennart Poettering2006-08-211-1/+1
| | | | | | hosts properly to avahi daemon on SIGHUP. (closes #52) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1249 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* if RLIMIT_NPROC is not available but used in the config file, don't fail but ↵Lennart Poettering2006-06-211-1/+3
| | | | | | warn git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1222 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* fix compilation if chroot() is not available. (see #32)Lennart Poettering2006-04-241-1/+5
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1200 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* reconnect if the DBUS daemon kicks avahi-daemon. Since the DBUS system bus ↵Lennart Poettering2006-04-241-4/+3
| | | | | | socket resides outside the chroot() environment this will definitely fail if you enable chroot(). In short: this is probably not what most people want to use. (closes #25) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1197 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * 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