summaryrefslogtreecommitdiff
path: root/src/libs6dns/s6dns_message_get_hinfo.c
blob: c8ab821f2d939625aac75e396ee7392566ea7e75 (plain)
1
2
3
4
5
6
7
8
9
/* ISC license. */

#include <s6-dns/s6dns-message.h>

int s6dns_message_get_hinfo (s6dns_message_rr_hinfo_t_ref hinfo, char const *packet, unsigned int packetlen, unsigned int *pos)
{
  return s6dns_message_get_string(&hinfo->cpu, packet, packetlen, pos)
   && s6dns_message_get_string(&hinfo->os, packet, packetlen, pos) ;
}