summaryrefslogtreecommitdiffstats
path: root/avahi-core/wide-area.c
diff options
context:
space:
mode:
authorFederico Lucifredi <flucifredi@acm.org>2007-12-26 23:37:28 +0000
committerFederico Lucifredi <flucifredi@acm.org>2007-12-26 23:37:28 +0000
commit45b07d32101ce6f7eca8fcdc68d080bb182332e0 (patch)
treee3fc498a1fbab83048605f6e4b8e85de377b6361 /avahi-core/wide-area.c
parent85ceb5f661565e1f6e51f720fb345e372eb8adfa (diff)
RR section names for Update packets
git-svn-id: file:///home/lennart/svn/public/avahi/branches/federico@1632 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/wide-area.c')
-rw-r--r--avahi-core/wide-area.c5
1 files changed, 3 insertions, 2 deletions
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.");