Skip to content
Snippets Groups Projects
Commit 4cefa67b authored by Daniel Salzman's avatar Daniel Salzman
Browse files

Fix source file formatting

parent d36e87cb
No related branches found
No related tags found
No related merge requests found
......@@ -32,61 +32,61 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/*! \brief Error codes used in the library. */
enum knot_error {
KNOT_EOK = 0, /*!< OK */
/* TSIG errors. */
KNOT_TSIG_EBADSIG = -16, /*!< Failed to verify TSIG MAC. */
KNOT_TSIG_EBADKEY = -17, /*!< TSIG key not recognized or invalid. */
KNOT_TSIG_EBADTIME = -18, /*!< TSIG signing time out of range. */
/* Directly mapped error codes. */
KNOT_ENOMEM = -ENOMEM, /*!< Out of memory. */
KNOT_EINVAL = -EINVAL, /*!< Invalid parameter passed. */
KNOT_ENOTSUP = -ENOTSUP, /*!< Parameter not supported. */
KNOT_EBUSY = -EBUSY, /*!< Requested resource is busy. */
KNOT_EAGAIN = -EAGAIN, /*!< OS lacked necessary resources. */
KNOT_EACCES = -EACCES, /*!< Permission is denied. */
KNOT_ECONNREFUSED = -ECONNREFUSED, /*!< Connection is refused. */
KNOT_EISCONN = -EISCONN, /*!< Already connected. */
KNOT_EADDRINUSE = -EADDRINUSE, /*!< Address already in use. */
KNOT_ENOENT = -ENOENT, /*!< Resource not found. */
KNOT_ERANGE = -ERANGE, /*!< Value is out of range. */
/* General errors. */
KNOT_ERROR = -10000, /*!< General error. */
KNOT_ENOTRUNNING, /*!< Resource is not running. */
KNOT_EPARSEFAIL, /*!< Parser fail. */
KNOT_ENOIPV6, /*!< No IPv6 support. */
KNOT_EEXPIRED, /*!< Resource is expired. */
KNOT_EUPTODATE, /*!< Zone is up-to-date. */
KNOT_EFEWDATA, /*!< Not enough data to parse. */
KNOT_ESPACE, /*!< Not enough space provided. */
KNOT_EMALF, /*!< Malformed data. */
KNOT_ECRYPTO, /*!< Error in crypto library. */
KNOT_ENSEC3PAR, /*!< Missing or wrong NSEC3PARAM record. */
KNOT_ENSEC3CHAIN, /*!< Missing or wrong NSEC3 chain in the zone. */
KNOT_EBADZONE, /*!< Domain name does not belong to the zone. */
KNOT_EHASH, /*!< Error in hash table. */
KNOT_EZONEINVAL, /*!< Invalid zone file. */
KNOT_ENOZONE, /*!< No such zone found. */
KNOT_ENONODE, /*!< No such node in zone found. */
KNOT_ENORRSET, /*!< No such RRSet found. */
KNOT_EDNAMEPTR, /*!< Domain name pointer larger than allowed. */
KNOT_EPAYLOAD, /*!< Payload in OPT RR larger than max wire size. */
KNOT_ECRC, /*!< Wrong dump CRC. */
KNOT_EPREREQ, /*!< UPDATE prerequisity not met. */
KNOT_ENOXFR, /*!< Transfer was not sent. */
KNOT_ENOIXFR, /*!< Transfer is not IXFR (is in AXFR format). */
KNOT_EXFRREFUSED, /*!< Zone transfer refused by the server. */
KNOT_EXFRDENIED, /*!< Transfer not allowed. */
KNOT_ECONN, /*!< Connection reset. */
KNOT_EIXFRSPACE, /*!< IXFR reply did not fit in. */
KNOT_ECNAME, /*!< CNAME loop found in zone. */
KNOT_ENODIFF, /*!< No zone diff can be created. */
KNOT_EDSDIGESTLEN, /*!< DS digest length does not match digest type. */
KNOT_EOK = 0, /*!< OK */
/* TSIG errors. */
KNOT_TSIG_EBADSIG = -16, /*!< Failed to verify TSIG MAC. */
KNOT_TSIG_EBADKEY = -17, /*!< TSIG key not recognized or invalid. */
KNOT_TSIG_EBADTIME = -18, /*!< TSIG signing time out of range. */
/* Directly mapped error codes. */
KNOT_ENOMEM = -ENOMEM, /*!< Out of memory. */
KNOT_EINVAL = -EINVAL, /*!< Invalid parameter passed. */
KNOT_ENOTSUP = -ENOTSUP, /*!< Parameter not supported. */
KNOT_EBUSY = -EBUSY, /*!< Requested resource is busy. */
KNOT_EAGAIN = -EAGAIN, /*!< OS lacked necessary resources. */
KNOT_EACCES = -EACCES, /*!< Permission is denied. */
KNOT_ECONNREFUSED = -ECONNREFUSED, /*!< Connection is refused. */
KNOT_EISCONN = -EISCONN, /*!< Already connected. */
KNOT_EADDRINUSE = -EADDRINUSE, /*!< Address already in use. */
KNOT_ENOENT = -ENOENT, /*!< Resource not found. */
KNOT_ERANGE = -ERANGE, /*!< Value is out of range. */
/* General errors. */
KNOT_ERROR = -10000, /*!< General error. */
KNOT_ENOTRUNNING, /*!< Resource is not running. */
KNOT_EPARSEFAIL, /*!< Parser fail. */
KNOT_ENOIPV6, /*!< No IPv6 support. */
KNOT_EEXPIRED, /*!< Resource is expired. */
KNOT_EUPTODATE, /*!< Zone is up-to-date. */
KNOT_EFEWDATA, /*!< Not enough data to parse. */
KNOT_ESPACE, /*!< Not enough space provided. */
KNOT_EMALF, /*!< Malformed data. */
KNOT_ECRYPTO, /*!< Error in crypto library. */
KNOT_ENSEC3PAR, /*!< Missing or wrong NSEC3PARAM record. */
KNOT_ENSEC3CHAIN, /*!< Missing or wrong NSEC3 chain in the zone. */
KNOT_EBADZONE, /*!< Domain name does not belong to the zone. */
KNOT_EHASH, /*!< Error in hash table. */
KNOT_EZONEINVAL, /*!< Invalid zone file. */
KNOT_ENOZONE, /*!< No such zone found. */
KNOT_ENONODE, /*!< No such node in zone found. */
KNOT_ENORRSET, /*!< No such RRSet found. */
KNOT_EDNAMEPTR, /*!< Domain name pointer larger than allowed. */
KNOT_EPAYLOAD, /*!< Payload in OPT RR larger than max wire size. */
KNOT_ECRC, /*!< Wrong dump CRC. */
KNOT_EPREREQ, /*!< UPDATE prerequisity not met. */
KNOT_ENOXFR, /*!< Transfer was not sent. */
KNOT_ENOIXFR, /*!< Transfer is not IXFR (is in AXFR format). */
KNOT_EXFRREFUSED, /*!< Zone transfer refused by the server. */
KNOT_EXFRDENIED, /*!< Transfer not allowed. */
KNOT_ECONN, /*!< Connection reset. */
KNOT_EIXFRSPACE, /*!< IXFR reply did not fit in. */
KNOT_ECNAME, /*!< CNAME loop found in zone. */
KNOT_ENODIFF, /*!< No zone diff can be created. */
KNOT_EDSDIGESTLEN, /*!< DS digest length does not match digest type. */
KNOT_ENOTSIG, /*!< Expected a TSIG or SIG(0). */
KNOT_ESTOP, /*!< Stop doing something. */
KNOT_ELIMIT, /*!< Exceeded response rate limit. */
KNOT_ELIMIT, /*!< Exceeded response rate limit. */
/* Zone file loader errors. */
FLOADER_EFSTAT,
......
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