summaryrefslogtreecommitdiffstats
path: root/avahi-daemon/main.c
Commit message (Collapse)AuthorAgeFilesLines
* core: implement packet rate limiting and enable it by defaultLennart Poettering2010-06-291-0/+40
|
* main: don't abort if daemon_close_all() cannot close valgrind fdsLennart Poettering2010-06-291-4/+2
|
* main: fix minor memory leakLennart Poettering2010-06-291-0/+1
|
* daemon: make internal limits configurableLennart Poettering2010-06-251-1/+70
|
* core: fix build on kFreeBSDJulien Blache2010-06-251-1/+1
|
* get rid of a lot of old svn cruftLennart Poettering2010-06-251-2/+0
|
* systemd: add support for acquiring socket from systemdLennart Poettering2010-06-251-4/+6
|
* allow/deny interfaces supportLennart Poettering2008-12-121-1/+23
| | | | | | Original patch from Skinkie. Heavily modified by Lennart Poettering. Closes #212.
* Drop private inotify codeLennart Poettering2008-12-121-88/+84
| | | | | | | | | | | | | | | Quoting Adrian Bunk: "avahi-daemon ships with the contents of linux/inotify.h plus #define's for the syscall numbers. The latter are #if 0'ed. I'm not sure whether this setup could work at all with some kernel headers and glibc version, but considering that glibc already provides sys/inotify.h for some time it's IMHO time to drop the private inotify code." Original patch from Adrian Bunk. Closes #243.
* Copyediting / spelling / grammarTed Percival2007-09-281-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1547 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Don't segfault when no browse domains are configured in resolv.conf. ↵Lennart Poettering2007-08-251-0/+5
| | | | | | Original patch from zml. Closes #162 git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1525 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* add new API function avahi_server_set_browse_domains() to avahi-coreLennart Poettering2007-08-121-76/+150
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1513 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Add FreeBSD kqueue support for watching for configuration file changes, much ↵Lennart Poettering2007-07-101-0/+110
| | | | | | the same way we currently have for Linux with inotify. (Patch supplied by marcus, but autoconf check reversed, re #149) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1495 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* use libdaemon's new daemon_close_all() function to close all fds when ↵Lennart Poettering2007-06-111-0/+5
| | | | | | daemonizing. This requires libdaemon 0.11 (not yet released) to work, hence also bump the dep. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1487 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* compat fix for older inotify versionsLennart Poettering2007-05-091-2/+10
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1470 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* 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