summaryrefslogtreecommitdiff
path: root/src/libs6dns/s6dns_message_counts_pack.c
blob: 51c0a78a9d692dfa24d2e1e1581251e0396779ff (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_pack (char *s, s6dns_message_counts_t const *counts)
{
  uint16_pack_big(s, counts->qd) ;
  uint16_pack_big(s+2, counts->an) ;
  uint16_pack_big(s+4, counts->ns) ;
  uint16_pack_big(s+6, counts->nr) ;
}