diff options
author | Daniel Mack <zonque@gmail.com> | 2011-07-13 00:30:52 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2011-08-26 09:29:53 +0200 |
commit | 5f6fe1fca1e60923503dd391a60b2ad5b9aead31 (patch) | |
tree | 56280d5520e60c8fe3b8123ba1a77eb0d1535e86 /include/arpa | |
parent | 95ff96497d513e89675eabef2f052cabb96e4080 (diff) |
inet/resolv: add ns_initparse, ns_parserr, ns_skiprr and ns_msg_getflag
There are build 'ifdef L_ns_parse'.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Diffstat (limited to 'include/arpa')
-rw-r--r-- | include/arpa/nameser.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/arpa/nameser.h b/include/arpa/nameser.h index cdc3df555..153424954 100644 --- a/include/arpa/nameser.h +++ b/include/arpa/nameser.h @@ -120,13 +120,9 @@ typedef struct __ns_msg { /* Private data structure - do not use from outside library. */ struct _ns_flagdata { int mask, shift; }; -extern struct _ns_flagdata _ns_flagdata[]; +extern const struct _ns_flagdata _ns_flagdata[]; /* Accessor macros - this is part of the public interface. */ -#define ns_msg_getflag(handle, flag) ( \ - ((handle)._flags & _ns_flagdata[flag].mask) \ - >> _ns_flagdata[flag].shift \ - ) #define ns_msg_id(handle) ((handle)._id + 0) #define ns_msg_base(handle) ((handle)._msg + 0) #define ns_msg_end(handle) ((handle)._eom + 0) @@ -499,6 +495,7 @@ typedef enum __ns_cert_types { #define ns_samename __ns_samename __BEGIN_DECLS +int ns_msg_getflag (ns_msg, int) __THROW; u_int ns_get16 (const u_char *) __THROW; u_long ns_get32 (const u_char *) __THROW; void ns_put16 (u_int, u_char *) __THROW; |