NS_NXT_BITS for NSEC records

Jack Tavares j.tavares at F5.com
Thu Apr 2 12:13:54 UTC 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20090402/a1a001d8/attachment.html>


More information about the bind-users mailing list