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 #if _STRING_ARCH_unaligned
13 # define NS_GET16(s, cp) \
15 uint16_t *t_cp = (uint16_t *) (cp); \
16 (s) = ntohs (*t_cp); \
21 # define NS_GET32(l, cp) \
23 uint32_t *t_cp = (uint32_t *) (cp); \
24 (l) = ntohl (*t_cp); \
29 # define NS_PUT16(s, cp) \
31 uint16_t *t_cp = (uint16_t *) (cp); \
37 # define NS_PUT32(l, cp) \
39 uint32_t *t_cp = (uint32_t *) (cp); \