blob: 968e5ebbb4cc308e97e49a81dfeb4067d492541f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* ISC license. */
#include <skalibs/uint16.h>
#include <s6-dns/s6dns-message.h>
void s6dns_message_counts_unpack (char const *s, s6dns_message_counts_t *counts)
{
uint16_unpack_big(s, &counts->qd) ;
uint16_unpack_big(s+2, &counts->an) ;
uint16_unpack_big(s+4, &counts->ns) ;
uint16_unpack_big(s+6, &counts->nr) ;
}
|