NS_NXT_BITS for NSEC records

Jack Tavares j.tavares at F5.com
Thu Apr 2 14:43:41 UTC 2009


Sorry. I still have libbind-6.0b1. I missed the
announcement that libbind6.0 had shipped.
What I need is in libbind6.0

Thank you


________________________________
From: bind-users-bounces at lists.isc.org [bind-users-bounces at lists.isc.org] On Behalf Of Jack Tavares [j.tavares at f5.com]
Sent: Thursday, April 02, 2009 14:13
To: bind-users at lists.isc.org
Subject: NS_NXT_BITS for NSEC records

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/1fc9c2b1/attachment.html>


More information about the bind-users mailing list