diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-12-12 12:16:21 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-01-30 11:48:38 -0500 |
| commit | 94ed344a8f895dd1bc7d8b9cde1b39902744238e (patch) | |
| tree | 7aec152bdd3d520f96462bd2a9c305bad37a41ab /zebra/kernel_socket.h | |
| parent | 265d5b9d514f39ec29076e1fc987af9a56f66da5 (diff) | |
zebra: Refactor Error codes to proper place
These error codes have ended up only being used
for socket type interfaces to the kernel(*bsd),
yet we were exposing the #defines to the entirety
of the project.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/kernel_socket.h')
| -rw-r--r-- | zebra/kernel_socket.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zebra/kernel_socket.h b/zebra/kernel_socket.h index 18d69343a4..04e3054312 100644 --- a/zebra/kernel_socket.h +++ b/zebra/kernel_socket.h @@ -23,6 +23,14 @@ #ifndef __ZEBRA_KERNEL_SOCKET_H #define __ZEBRA_KERNEL_SOCKET_H +/* Error codes of zebra. */ +#define ZEBRA_ERR_NOERROR 0 +#define ZEBRA_ERR_RTEXIST -1 +#define ZEBRA_ERR_RTUNREACH -2 +#define ZEBRA_ERR_EPERM -3 +#define ZEBRA_ERR_RTNOEXIST -4 +#define ZEBRA_ERR_KERNEL -5 + extern void rtm_read (struct rt_msghdr *); extern int ifam_read (struct ifa_msghdr *); extern int ifm_read (struct if_msghdr *); |
