Hello - In libbind-6.0b1/includ/arpa/nameser.h there are some convenience macros for parsing the type bits for NXT records
/* How RR types are represented as bit-flags in NXT records */ #define NS_NXT_BITS 8 #define NS_NXT_BIT_SET( n,p) (p[(n)/NS_NXT_BITS] |= (0x80>>((n)%NS_NXT_BITS))) #define NS_NXT_BIT_CLEAR(n,p) (p[(n)/NS_NXT_BITS] &= ~(0x80>>((n)%NS_NXT_BITS))) #define NS_NXT_BIT_ISSET(n,p) (p[(n)/NS_NXT_BITS] & (0x80>>((n)%NS_NXT_BITS))) #define NS_NXT_MAX 127 I don't see any macros for NSEC records. I am pretty sure I can use the NS_NXT_xxx macros with some fudging for NSEC records, but I was wondering if there is a plan for updateing nameser.h? Thanks -- Jack Tavares
_______________________________________________ bind-users mailing list [email protected] https://lists.isc.org/mailman/listinfo/bind-users

