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: [email protected] [[email protected]] On 
Behalf Of Jack Tavares [[email protected]]
Sent: Thursday, April 02, 2009 14:13
To: [email protected]
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
_______________________________________________
bind-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to