blob: ad773ef8169414ae625ac910bce585d1cdbc6581 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* ISC license. */
#include <skalibs/types.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) ;
}
|