From 45b07d32101ce6f7eca8fcdc68d080bb182332e0 Mon Sep 17 00:00:00 2001 From: Federico Lucifredi Date: Wed, 26 Dec 2007 23:37:28 +0000 Subject: RR section names for Update packets git-svn-id: file:///home/lennart/svn/public/avahi/branches/federico@1632 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/wide-area.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'avahi-core/wide-area.c') diff --git a/avahi-core/wide-area.c b/avahi-core/wide-area.c index 4889cc7..e523fff 100644 --- a/avahi-core/wide-area.c +++ b/avahi-core/wide-area.c @@ -802,7 +802,7 @@ void wide_area_publish(AvahiRecord *r, char *zone, uint16_t id) { avahi_dns_packet_append_key(p, k, 0); /* add zone record */ - avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_QDCOUNT, 1); /*increment record count for ZOCOUNT */ + avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_ZOCOUNT, 1); /*increment record count for ZOCOUNT */ if (!p) { /*OOM check */ avahi_log_error("appending of rdata failed."); @@ -810,8 +810,9 @@ void wide_area_publish(AvahiRecord *r, char *zone, uint16_t id) { } avahi_dns_packet_append_record(p, r, 0, 30); /* TODO: revisit max TTL from 30 */ + /* it may be useful to standardize TTLs independent of record for wide-area */ - avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_NSCOUNT, 1); /*increment record count for UPCOUNT */ + avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_UPCOUNT, 1); /*increment record count for UPCOUNT */ if (!p) { /*OOM check */ avahi_log_error("appending of rdata failed."); -- cgit