Discussion:
nameser.h vs nameser_compat.h
(too old to reply)
Petar Bogdanovic
2009-05-15 12:25:22 UTC
Permalink
Hi,

while using res_query(3) I found out that a lot of examples in various
3rd party programs use types/macros/defines from arpa/nameser_compat.h
Stuff which was originally in arpa/nameser.h but then was moved and
renamed in order to cleanup the naming (wild guess).

I tried to stick with the newer arpa/nameser.h and found equivalents for
all items I need, except the HEADER structure:

T_A --> ns_t_a
QFIXEDSZ --> NS_QFIXEDSZ
PACKETSZ --> NS_PACKETSZ
(...) --> (...)
HEADER --> ?


Is there something like NS_HEADER or are you still supposed to use
HEADER?

Thanks,



Petar Bogdanovic




--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Christos Zoulas
2009-05-15 14:14:08 UTC
Permalink
Post by Petar Bogdanovic
Hi,
while using res_query(3) I found out that a lot of examples in various
3rd party programs use types/macros/defines from arpa/nameser_compat.h
Stuff which was originally in arpa/nameser.h but then was moved and
renamed in order to cleanup the naming (wild guess).
I tried to stick with the newer arpa/nameser.h and found equivalents for
T_A --> ns_t_a
QFIXEDSZ --> NS_QFIXEDSZ
PACKETSZ --> NS_PACKETSZ
(...) --> (...)
HEADER --> ?
Is there something like NS_HEADER or are you still supposed to use
HEADER?
the ns_msg_* macros and function?

christos


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Petar Bogdanovic
2009-05-15 15:12:19 UTC
Permalink
Post by Christos Zoulas
Post by Petar Bogdanovic
Hi,
while using res_query(3) I found out that a lot of examples in various
3rd party programs use types/macros/defines from arpa/nameser_compat.h
Stuff which was originally in arpa/nameser.h but then was moved and
renamed in order to cleanup the naming (wild guess).
I tried to stick with the newer arpa/nameser.h and found equivalents for
T_A --> ns_t_a
QFIXEDSZ --> NS_QFIXEDSZ
PACKETSZ --> NS_PACKETSZ
(...) --> (...)
HEADER --> ?
Is there something like NS_HEADER or are you still supposed to use
HEADER?
the ns_msg_* macros and function?
Thanks, I completely missed {ns_msg,ns_rr}_*!



Petar Bogdanovic




--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...