summaryrefslogtreecommitdiff
path: root/ldns/packet.h
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2026-05-22 13:37:52 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2026-05-22 13:37:52 +0000
commit5eb18e8576462f5bb33fbd60fcbd752fe5791f33 (patch)
tree1df0f35c7c4d1a30393064d3eda05cd642b0b1a7 /ldns/packet.h
parent3dcfa5af412125cd1bad1d383ff7c18c5effbd77 (diff)
Diffstat (limited to 'ldns/packet.h')
-rw-r--r--ldns/packet.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/ldns/packet.h b/ldns/packet.h
index 2c60609fc07a..974944149a27 100644
--- a/ldns/packet.h
+++ b/ldns/packet.h
@@ -710,6 +710,19 @@ bool ldns_pkt_edns_do(const ldns_pkt *packet);
void ldns_pkt_set_edns_do(ldns_pkt *packet, bool value);
/**
+ * return the packet's edns co bit
+ * \param[in] packet the packet
+ * \return the bit's value
+ */
+bool ldns_pkt_edns_co(const ldns_pkt *packet);
+/**
+ * Set the packet's edns co bit
+ * \param[in] packet the packet
+ * \param[in] value the bit's new value
+ */
+void ldns_pkt_set_edns_co(ldns_pkt *packet, bool value);
+
+/**
* return the packet's EDNS header bits that are unassigned.
*/
uint16_t ldns_pkt_edns_unassigned(const ldns_pkt *packet);