[ldns-users] How to get CLASS from RDF...

Edward Fjellskål edwardfjellskaal at gmail.com
Sat Mar 17 11:14:49 UTC 2012


On 03/17/2012 10:29 AM, Miek Gieben wrote:
> [ Quoting <edwardfjellskaal at gmail.co> at 08:53 on Mar 17 in "[ldns-users] How to ..." ]
>> Hi,
>>
>> Im working on a sniffer that collects dns info passivly [1].
>>
>> Im trying to record nxdomains atm, and from the logic of ldns code,
>> I would assume that there was a function like:
>>
>> ldns_rdf_class
>> ldns_rdf_get_class(const ldns_rdf *rd)
>> {
>>         assert(rd != NULL);
>>         return rd->_class;
>> }
>>
>> (which is not there)
> 
> rdfs describe the rdata, as such they don't have a class. The class
> in only there at the RR level. Maybe a ldns_rr_class()-like function
> is more what you need?

Thanks for the pointer :)
Problem solved!

E

> grtz Miek
> 
> 
> 
> _______________________________________________
> ldns-users mailing list
> ldns-users at open.nlnetlabs.nl
> http://open.nlnetlabs.nl/mailman/listinfo/ldns-users




More information about the ldns-users mailing list