summaryrefslogtreecommitdiffstats
path: root/avahi-core/dns.c
Commit message (Collapse)AuthorAgeFilesLines
* allow adding of generic DNS RRs properly. Patch from Sjoerd Simons again ↵Lennart Poettering2007-04-121-1/+2
| | | | | | (closes #130) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1407 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Fix registration of really large records, like it is necessary for XEP-0174 ↵Lennart Poettering2007-04-121-1/+1
| | | | | | | | | (jabber+bonjour) Based on an original patch by Sjoerd Simons, but heavily modified. (Closes #131) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1405 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* add sys/types.h for openbsd compatLennart Poettering2007-02-051-0/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1386 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Make sure we return -1 if we fall of the end of consume_labels()Trent Lloyd2006-12-291-0/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1353 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * avahi-core/dns.c#consume_labels(): Add some additional checks on the ↵Trent Lloyd2006-12-161-1/+7
| | | | | | compressed label location git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1342 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * avahi-core/dns.c: Use a '#define AVAHI_DNS_LABELS_MAX 127' instead of the ↵Trent Lloyd2006-12-161-1/+1
| | | | | | hard-coded value git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1341 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Limit the number of loops in consume_labels() (Closes: #84)Trent Lloyd2006-12-161-1/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1340 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* add an extra validity check when parsing mDNS queries and records in packetsLennart Poettering2006-04-241-2/+13
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1203 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * many trivial fix to make avahi compile on OpenBSDSebastien Estienne2005-10-281-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@903 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * format unknown DNS records according to RFC3597Lennart Poettering2005-10-271-0/+1
| | | | | | | | * add some DNS class and type validity checks to avahi_server_add() * move DNS type and class definitions to avahi-common/defs.h git-svn-id: file:///home/lennart/svn/public/avahi/trunk@896 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Add validity checking to TXT data parsing, this fixes a remotely exploitable ↵Lennart Poettering2005-10-271-1/+2
| | | | | | vulnerability. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@888 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add new core API functions avahi_rdata_serialize() and avahi_rdata_parse()Lennart Poettering2005-10-251-76/+124
| | | | | | | | * add new definition AVAHI_DNS_RDATA_MAX * update dns-test.c and add examples for avahi_rdata_{serialize,parse}() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@867 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * rename all limit defs so that they end with _MAXLennart Poettering2005-10-241-1/+1
| | | | | | | * fix some minor typos git-svn-id: file:///home/lennart/svn/public/avahi/trunk@863 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* Merge portability patch from Philipp ZabelLennart Poettering2005-10-141-8/+20
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@759 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * rename avahi_service_name_snprint() to avahi_service_name_join()Lennart Poettering2005-10-101-4/+5
| | | | | | | | | | | | | | | | | | * add avahi_service_name_split() and make everything use it * change avahi_normalize_name() to work on a supplied buffer instead of malloc'ed memory. * add avahi_normalize_name_strdup() that retains the old behaviour avahi_normalize_name() * same thing for avahi_get_host_name()/avahi_get_host_name_strdup() * Rewrite domain name escaping and validity checking code * Remove superfluous memory allocationsfrom various browsers and do some other major cleanups * add new global macro AVAHI_CHECK_VALIDITY_RETURN_NULL() and modify many things to make use of it * add AVAHI_LABEL_MAX * patch everything to make use of AVAHI_LABEL_MAX and AVAHI_DOMAIN_NAME_MAX * add pretty printing for NS records * add partial pretty printing for SOA records * add many more validity checks to various user API functions git-svn-id: file:///home/lennart/svn/public/avahi/trunk@708 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * split off lookup.h and publish.h from core.hLennart Poettering2005-09-251-8/+25
| | | | | | | | | | | | | * implement wide-area DNS-SD * if multiple clients query the same records, only start the query packet sequence once * implement recursive CNAME queries * add support for resolving services without TXT or A/AAAA records * enlarge resolving timeouts to 5s * implement new browse/resolving events CACHE_EXHAUSTED/ALL_FOR_NOW * add support for resolving services without name. (i.e. for normal SRV records) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@608 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * strip glib from avahi-coreLennart Poettering2005-08-131-147/+163
| | | | | | | | | | | | | | * 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
* Split avahi-common/util.h into Lennart Poettering2005-08-121-1/+1
| | | | | | | | | avahi-common/domain.h avahi-core/fdutil.h avahi-core/timeval.h git-svn-id: file:///home/lennart/svn/public/avahi/trunk@299 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * allow caller to specifiy additional CFLAGS arguments to bootstrap.shLennart Poettering2005-08-021-29/+30
| | | | | | | * 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
* * drop trailing dot in avahi_normalize_name()Lennart Poettering2005-07-281-1/+0
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@180 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * recreate DNS query in simple protocol on host or domain name changesLennart Poettering2005-06-281-2/+2
| | | | | | | * C++ compatibility git-svn-id: file:///home/lennart/svn/public/avahi/trunk@151 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * update default TTL generation to match RFCLennart Poettering2005-06-241-3/+1
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@145 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add logging API and make all code make use of itLennart Poettering2005-06-111-12/+12
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@112 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* move dns.[ch] back to avahi-core/Lennart Poettering2005-06-061-0/+744
| | | | git-svn-id: file:///home/lennart/svn/public/avahi/trunk@104 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * Split out a fair bit of avahi-core into avahi-common for use by the client ↵Trent Lloyd2005-06-041-744/+0
| | | | | | library git-svn-id: file:///home/lennart/svn/public/avahi/trunk@98 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * use FIONREAD to minimize allocated buffer size when reading incoming packetsLennart Poettering2005-06-031-2/+2
| | | | | | | * enforce a cache size limit git-svn-id: file:///home/lennart/svn/public/avahi/trunk@96 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * implement reflection (including legacy unicast reflection)Lennart Poettering2005-06-031-2/+0
| | | | | | | * implement a history in the probe scheduler git-svn-id: file:///home/lennart/svn/public/avahi/trunk@92 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * utf-8 collation of domain namesLennart Poettering2005-05-131-81/+4
| | | | | | | * case insensitive comparison of domain names git-svn-id: file:///home/lennart/svn/public/avahi/trunk@71 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
* * add auxiliary records to packetLennart Poettering2005-05-111-0/+8
| | | | | | | | * 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-5/+4
| | | | | | | | * 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-9/+53
| | | | | | | | * 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/+772
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@57 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe