resolved: add support for linked packets
authorDaniel Mack <daniel@zonque.org>
Wed, 9 Dec 2015 11:01:08 +0000 (12:01 +0100)
committerDaniel Mack <daniel@zonque.org>
Thu, 10 Dec 2015 09:20:54 +0000 (10:20 +0100)
commit9c491563837983385bf9fa244590e76e142f4fa3
tree6f356f7750cb900957e475264697a2612507b513
parentdbfbb6e776d613cb9be76d13de076d08450c9d29
resolved: add support for linked packets

For mDNS, we need to support the TC bit in case the list of known answers
exceed the maximum packet size.

For this, add a 'more' pointer to DnsPacket for an additional packet.

When a packet is unref'ed, the ->more packet is also unrefed, so it
sufficient to only keep track of the 1st packet in a chain.
src/resolve/resolved-dns-packet.c
src/resolve/resolved-dns-packet.h