1 #include <resolv/arpa/nameser.h>
3 /* If the machine allows unaligned access we can do better than using
4 the NS_GET16, NS_GET32, NS_PUT16, and NS_PUT32 macros from the
8 #include <netinet/in.h>
10 extern struct _ns_flagdata _ns_flagdata
[] attribute_hidden
;
12 #if _STRING_ARCH_unaligned
15 # define NS_GET16(s, cp) \
17 uint16_t *t_cp = (uint16_t *) (cp); \
18 (s) = ntohs (*t_cp); \
23 # define NS_GET32(l, cp) \
25 uint32_t *t_cp = (uint32_t *) (cp); \
26 (l) = ntohl (*t_cp); \
31 # define NS_PUT16(s, cp) \
33 uint16_t *t_cp = (uint16_t *) (cp); \
39 # define NS_PUT32(l, cp) \
41 uint32_t *t_cp = (uint32_t *) (cp); \