diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-05-11 23:01:38 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-05-11 23:01:38 +0000 |
commit | af1ce5fe2245fba0045d2c0d70b58b700938bd2f (patch) | |
tree | 550d2f16c32acffb10af3596ea0a51f5b9e2b63d /avahi-core/dns.c | |
parent | 8d8c0255f0f0242a067b577747740bab1b1021ea (diff) |
* add auxiliary records to packet
* 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
Diffstat (limited to 'avahi-core/dns.c')
-rw-r--r-- | avahi-core/dns.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/avahi-core/dns.c b/avahi-core/dns.c index 7a99192..531e3cf 100644 --- a/avahi-core/dns.c +++ b/avahi-core/dns.c @@ -131,6 +131,14 @@ guint16 avahi_dns_packet_get_field(AvahiDnsPacket *p, guint index) { return g_ntohs(((guint16*) AVAHI_DNS_PACKET_DATA(p))[index]); } +void avahi_dns_packet_inc_field(AvahiDnsPacket *p, guint index) { + g_assert(p); + + avahi_dns_packet_set_field(p, index, avahi_dns_packet_get_field(p, index) + 1); +} + + + /* Read the first label from string *name, unescape "\" and write it to dest */ gchar *avahi_unescape_label(gchar *dest, guint size, const gchar **name) { guint i = 0; |