<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style title="owaParaStyle">P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body ocsi="x">
<div dir="ltr"><font face="Lucida Console" color="#000000" size="2">Hello -</font></div>
<div dir="ltr"><font face="lucida console" size="2"></font> </div>
<div dir="ltr"><font face="lucida console" size="2">In libbind-6.0b1/includ/arpa/nameser.h</font></div>
<div dir="ltr"><font face="lucida console" size="2">there are some convenience macros for parsing the type bits for NXT</font></div>
<div dir="ltr"><font face="lucida console" size="2">records</font></div>
<div dir="ltr"><font face="lucida console" size="2"></font> </div>
<div dir="ltr">/* How RR types are represented as bit-flags in NXT records */<br>
#define NS_NXT_BITS 8<br>
#define NS_NXT_BIT_SET( n,p) (p[(n)/NS_NXT_BITS] |= (0x80>>((n)%NS_NXT_BITS)))<br>
#define NS_NXT_BIT_CLEAR(n,p) (p[(n)/NS_NXT_BITS] &= ~(0x80>>((n)%NS_NXT_BITS)))<br>
#define NS_NXT_BIT_ISSET(n,p) (p[(n)/NS_NXT_BITS] & (0x80>>((n)%NS_NXT_BITS)))<br>
#define NS_NXT_MAX 127<br>
</div>
<div dir="ltr"><font face="lucida console" size="2">I don't see any macros for NSEC records.</font></div>
<div dir="ltr"><font face="lucida console" size="2">I am pretty sure I can use the NS_NXT_xxx macros with some fudging for NSEC</font></div>
<div dir="ltr"><font face="lucida console" size="2">records, but I was wondering if there is a plan for updateing nameser.h?</font></div>
<div dir="ltr"><font face="lucida console" size="2">Thanks</font></div>
<div dir="ltr"><font face="lucida console" size="2"></font> </div>
<div dir="ltr"><font face="lucida console" size="2"></font> </div>
<div><font face="Tahoma" size="2">
<div dir="ltr" align="left"><font face="Lucida Console" size="2">--</font></div>
<div dir="ltr" align="left"><font face="Lucida Console" size="2">Jack Tavares</font></div>
</font></div>
</body>
</html>