Skip to content
Snippets Groups Projects
Commit 53b8cbbf authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Checking if RR type is a 'metatype'.

parent 3073a506
No related branches found
No related tags found
No related merge requests found
......@@ -636,3 +636,14 @@ size_t knot_wireformat_size(unsigned int wire_type)
} /* switch */
}
int knot_rrtype_is_metatype(uint16_t type)
{
/*! \todo Check if there are some other metatypes. */
return (type == KNOT_RRTYPE_ANY
|| type == KNOT_RRTYPE_AXFR
|| type == KNOT_RRTYPE_IXFR
|| type == KNOT_RRTYPE_MAILA
|| type == KNOT_RRTYPE_MAILB
|| type == KNOT_RRTYPE_OPT);
}
......@@ -336,6 +336,8 @@ uint16_t knot_rrclass_from_string(const char *name);
*/
size_t knot_wireformat_size(unsigned int wire_type);
int knot_rrtype_is_metatype(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