[bind10-dev] DNS message API: the message class

JINMEI Tatuya / 神明達哉 jinmei at isc.org
Sun Oct 25 01:24:18 UTC 2009


At Thu, 8 Oct 2009 11:59:19 -0700,
"David W. Hankins" <dhankins at isc.org> wrote:

> Supposing for example the current class-based extra routes option in
> DHCPv4 (note: I'm guessing at the order);
> 
>   for (int i = 0 ; i < rdata.getArrayCount() ; i++) {
>     CIDR dest;
> 
>     dest = ClassToCIDR(rdata.get_v4Address(0, i));
>     addRoute(dest, rdata.get_v4Address(1, i));
>   }

One quick comment: there's one significant difference between DHCP
options and DNS RR data (RDATA).  In many cases an RDATA is not an
"array" of the same kind of data, like a list of IPv6 addresses (TXT
is an exception).  So I think the analogy of the DHCP option handling
does not apply to an API handling RDATA in a straightforward way.

---
JINMEI, Tatuya



More information about the bind10-dev mailing list