diff options
author | Trent Lloyd <lathiat@bur.st> | 2007-07-07 21:22:19 +0000 |
---|---|---|
committer | Trent Lloyd <lathiat@bur.st> | 2007-07-07 21:22:19 +0000 |
commit | 043eb084c1c76f5b62fc1745942bddfddf17fbf1 (patch) | |
tree | e71d31b85ace43be310d0bcf9f4b467866c85cf2 /avahi-core/dns.h | |
parent | 0c8dbe5f8c994ff69a6dc77a27f47cd0719660b7 (diff) |
* Patch from Sjoerd Simons - if we shorten a DNS packet to remove records, we must remove all compressed labels from the name table that are inside
the removed section. Add avahi_dns_packet_cleanup_name_table and call in appropriate places where packet is shrunk.
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1493 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/dns.h')
-rw-r--r-- | avahi-core/dns.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/avahi-core/dns.h b/avahi-core/dns.h index d485510..7ec9935 100644 --- a/avahi-core/dns.h +++ b/avahi-core/dns.h @@ -52,6 +52,8 @@ void avahi_dns_packet_inc_field(AvahiDnsPacket *p, unsigned idx); uint8_t *avahi_dns_packet_extend(AvahiDnsPacket *p, size_t l); +void avahi_dns_packet_cleanup_name_table(AvahiDnsPacket *p); + uint8_t *avahi_dns_packet_append_uint16(AvahiDnsPacket *p, uint16_t v); uint8_t *avahi_dns_packet_append_uint32(AvahiDnsPacket *p, uint32_t v); uint8_t *avahi_dns_packet_append_name(AvahiDnsPacket *p, const char *name); |