diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-05-20 21:35:40 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-05-20 21:35:40 +0000 |
commit | 26358a4c4a8ae0ca68f08054e367aa3687681445 (patch) | |
tree | 790e13824acaeb9598460afb371c8791726fcb91 /avahi-core/core.h | |
parent | 4de3df3db7df43474176533d0b5fac851dd4a9b4 (diff) |
* add new server state AVAHI_SERVER_SLEEPING to avoid conflicts by own responses
* 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
Diffstat (limited to 'avahi-core/core.h')
-rw-r--r-- | avahi-core/core.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/avahi-core/core.h b/avahi-core/core.h index d27f02e..e113f86 100644 --- a/avahi-core/core.h +++ b/avahi-core/core.h @@ -42,7 +42,8 @@ typedef enum { AVAHI_SERVER_INVALID = -1, /**< Invalid state (initial) */ AVAHI_SERVER_REGISTERING = 0, /**< Host RRs are being registered */ AVAHI_SERVER_RUNNING, /**< All host RRs have been established */ - AVAHI_SERVER_COLLISION /**< There is a collision with a host RR. All host RRs have been withdrawn, the user should set a new host name via avahi_server_set_host_name() */ + AVAHI_SERVER_COLLISION, /**< There is a collision with a host RR. All host RRs have been withdrawn, the user should set a new host name via avahi_server_set_host_name() */ + AVAHI_SERVER_SLEEPING /**< The host or domain name has changed and the server waits for old entries to be expired */ } AvahiServerState; /** Flags for server entries */ @@ -76,6 +77,8 @@ typedef struct AvahiServerConfig { gboolean register_hinfo; /**< Register a HINFO record for the host containing the local OS and CPU type */ gboolean register_addresses; /**< Register A, AAAA and PTR records for all local IP addresses */ gboolean check_response_ttl; /**< If enabled the server ignores all incoming responses with IP TTL != 255 */ + gboolean announce_domain; /**< Announce the local domain for browsing */ + gboolean use_iff_running; /**< Require IFF_RUNNING on local network interfaces. This is the official way to check for link beat. Unfortunately this doesn't work with all drivers. So bettere leave this off. */ } AvahiServerConfig; /** Allocate a new mDNS responder object. */ |