man: ares_dns_record_set_id()

Add missing manpage

Fixes #817
Fix By: Brad House (@bradh352)
pull/826/head
Brad House 4 months ago
parent 7122aec68a
commit f691523042
  1. 1
      docs/Makefile.inc
  2. 23
      docs/ares_dns_record.3
  3. 3
      docs/ares_dns_record_set_id.3

@ -36,6 +36,7 @@ MANPAGES = ares_cancel.3 \
ares_dns_record_rr_del.3 \ ares_dns_record_rr_del.3 \
ares_dns_record_rr_get.3 \ ares_dns_record_rr_get.3 \
ares_dns_record_rr_get_const.3 \ ares_dns_record_rr_get_const.3 \
ares_dns_record_set_id.3 \
ares_dns_rec_type_fromstr.3 \ ares_dns_rec_type_fromstr.3 \
ares_dns_rec_type_tostr.3 \ ares_dns_rec_type_tostr.3 \
ares_dns_rec_type_t.3 \ ares_dns_rec_type_t.3 \

@ -32,6 +32,9 @@ ares_dns_record_t *ares_dns_record_duplicate(const ares_dns_record_t *dnsrec);
unsigned short ares_dns_record_get_id(const ares_dns_record_t *dnsrec); unsigned short ares_dns_record_get_id(const ares_dns_record_t *dnsrec);
ares_bool_t ares_dns_record_set_id(ares_dns_record_t *dnsrec,
unsigned short id);
unsigned short ares_dns_record_get_flags(const ares_dns_record_t *dnsrec); unsigned short ares_dns_record_get_flags(const ares_dns_record_t *dnsrec);
ares_dns_opcode_t ares_dns_record_get_opcode(const ares_dns_record_t *dnsrec); ares_dns_opcode_t ares_dns_record_get_opcode(const ares_dns_record_t *dnsrec);
@ -343,6 +346,14 @@ message id from the DNS record provided in the
.IR dnsrec .IR dnsrec
parameter. parameter.
The \fIares_dns_record_set_id(3)\fP function is used to set the DNS
message id in the
.IR id
parameter from the DNS record provided in the
.IR dnsrec
parameter. This id will be overwritten when passing the record to c-ares,
so mostly exists for external purposes.
The \fIares_dns_record_get_flags(3)\fP function is used to retrieve the DNS The \fIares_dns_record_get_flags(3)\fP function is used to retrieve the DNS
message flags from the DNS record provided in the message flags from the DNS record provided in the
.IR dnsrec .IR dnsrec
@ -428,12 +439,12 @@ is returned on out of memory,
.B ARES_EFORMERR .B ARES_EFORMERR
is returned on misuse. is returned on misuse.
\fIares_dns_record_get_id(3)\fP, \fIares_dns_record_get_flags(3)\fP, \fIares_dns_record_get_id(3)\fP, \fIares_dns_record_set_id(3)\fP,
\fIares_dns_record_get_opcode(3)\fP, \fIares_dns_record_get_rcode(3)\fP, and \fIares_dns_record_get_flags(3)\fP, \fIares_dns_record_get_opcode(3)\fP,
\fIares_dns_record_query_cnt(3)\fP all returned their prescribed datatype \fIares_dns_record_get_rcode(3)\fP, and \fIares_dns_record_query_cnt(3)\fP
values and in general can't fail except for misuse cases, in which a 0 may all returned their prescribed datatype values and in general can't fail except
be returned, however 0 can also be a valid return value for most of these for misuse cases, in which a 0 may be returned, however 0 can also be a valid
functions. return value for most of these functions.
.SH AVAILABILITY .SH AVAILABILITY

@ -0,0 +1,3 @@
.\" Copyright (C) 2023 The c-ares project and its contributors.
.\" SPDX-License-Identifier: MIT
.so man3/ares_dns_record.3
Loading…
Cancel
Save