<rdar://problem/6434656> Sleep Proxy: Put owner OPT records in multicast announcement...
authorcheshire@apple.com <cheshire@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Thu, 3 Sep 2009 23:24:31 +0000 (23:24 +0000)
committercheshire@apple.com <cheshire@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Thu, 3 Sep 2009 23:24:31 +0000 (23:24 +0000)
commit2113f7177b863986d650654831745f8d0691897b
tree8aa8770e92dfb4fe74240e579f2365745b2bbca4
parent9a2d49a98a4db71338b07a4e73658c33cb844b73
<rdar://problem/6434656> Sleep Proxy: Put owner OPT records in multicast announcements to avoid conflicts
Code simplification: Instead of adding question to packet and then immediately retracting that question if
we decide that it would no longer leave enough space in the packet for 'answerforecast' additional bytes,
it's smarter to just subtract 'answerforecast' bytes from the buffer limit, and then the 'putQuestion' itself
will fail if there's not enough space to add the question and still leave 'answerforecast' bytes of free space.

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6645 214c2c4a-bf3b-4dcf-9390-e4dd3010487d
mDNSCore/mDNS.c