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

libknot: reorganize errcodes

parent 21bb3e9e
No related branches found
No related tags found
No related merge requests found
Pipeline #67843 passed
......@@ -94,6 +94,12 @@ enum knot_error {
KNOT_ESOAINVAL,
KNOT_ETRAIL,
KNOT_EPROCESSING,
KNOT_EPROGRESS,
KNOT_ELOOP,
KNOT_EPROGRAM,
KNOT_EFD,
KNOT_GENERAL_ERROR = -900,
/* Control states. */
KNOT_CTL_ESTOP,
......@@ -158,14 +164,6 @@ enum knot_error {
KNOT_NO_PRIVATE_KEY,
KNOT_NO_READY_KEY,
/* Another general errors. */
KNOT_ELOOP,
KNOT_EPROGRESS,
/* XDP errors. */
KNOT_EPROGRAM,
KNOT_EFD,
KNOT_ERROR_MAX = -501
};
......
......@@ -93,6 +93,12 @@ static const struct error errors[] = {
{ KNOT_ESOAINVAL, "SOA mismatch" },
{ KNOT_ETRAIL, "trailing data" },
{ KNOT_EPROCESSING, "processing error" },
{ KNOT_EPROGRESS, "in progress" },
{ KNOT_ELOOP, "loop detected" },
{ KNOT_EPROGRAM, "program not loaded" },
{ KNOT_EFD, "file descriptor error" },
{ KNOT_GENERAL_ERROR, "unknown general error" },
/* Control states. */
{ KNOT_CTL_ESTOP, "stopping server" },
......@@ -157,15 +163,8 @@ static const struct error errors[] = {
{ KNOT_NO_PRIVATE_KEY, "no private key" },
{ KNOT_NO_READY_KEY, "no key ready for submission" },
/* Another general errors. */
{ KNOT_ELOOP, "loop detected" },
{ KNOT_EPROGRESS, "in progress" },
/* XDP errors. */
{ KNOT_EPROGRAM, "program not loaded" },
{ KNOT_EFD, "file descriptor error" },
{ KNOT_ERROR, NULL } /* Terminator */
/* Terminator */
{ KNOT_ERROR, NULL }
};
/*!
......
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