Skip to content
Snippets Groups Projects
Commit 6d397d22 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

DDNS/DNSSEC: Added function that checks whether RR type can be accepted by DDNS.

Refs #4
parent 41579214
No related branches found
No related tags found
No related merge requests found
......@@ -317,3 +317,12 @@ int knot_rrtype_is_metatype(const uint16_t type)
type == KNOT_RRTYPE_AXFR ||
type == KNOT_RRTYPE_ANY;
}
int knot_rrtype_is_ddns_forbidenen(const uint16_t type)
{
return type == KNOT_RRTYPE_RRSIG ||
type == KNOT_RRTYPE_DNSKEY ||
type == KNOT_RRTYPE_NSEC3PARAM ||
type == KNOT_RRTYPE_NSEC ||
type == KNOT_RRTYPE_NSEC3;
}
......@@ -232,7 +232,7 @@ int knot_rrclass_from_string(const char *name, uint16_t *num);
*
* \param item Item value.
*
* \retval 1 if YES.
* \retval > 0 if YES.
* \retval 0 if NO.
*/
int descriptor_item_is_dname(const int item);
......@@ -242,7 +242,7 @@ int descriptor_item_is_dname(const int item);
*
* \param item Item value.
*
* \retval 1 if YES.
* \retval > 0 if YES.
* \retval 0 if NO.
*/
int descriptor_item_is_compr_dname(const int item);
......@@ -272,11 +272,21 @@ int descriptor_item_is_remainder(const int item);
*
* \param item Item value.
*
* \retval 1 if YES.
* \retval > 0 if YES.
* \retval 0 if NO.
*/
int knot_rrtype_is_metatype(const uint16_t type);
/*!
* \brief Checks if given item is one of the types we do not accept via DDNS.
*
* \param item Item value.
*
* \retval > 0 if YES.
* \retval 0 if NO.
*/
int knot_rrtype_is_ddns_forbidenen(const uint16_t type);
#endif // _KNOT_DESCRIPTOR_H_
/*! @} */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment