kazu-yamamoto/dns — pull request #6 by larskuhtz (2012-07-13 05:45:22+00:00)
Title: Set rdlen field on serialization. Fix compilation on Windows.

Hi,

The pull request covers two changes:

1. The current code requires that the length of the rdata field ist set before the resource record is serialized. However, due to domain name compression the length value is not obvious. This change overwrites the rdlen field during serialization with the actual length of the rdata field. Please, have a look if this is the right way to deal with this problem.

2. This change makes the package compile on Windows. Please note that I have not tested if the code actually *runs* under Windows.