From 481bc15ffcebcc7d0395a3ffa8ce70249e221d5b Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 14 Jun 2018 09:13:18 -0400 Subject: lib: Add LIB_ERR_SYSTEM_CALL and convert VRF_SOCKET to SOCKET Add a new error code LIB_ERR_SYSTEM_CALL to the ferr subsystem. Additionally convert LIB_ERR_VRF_SOCKET to a more generic LIB_ERR_SOCKET. Signed-off-by: Donald Sharp --- lib/lib_errors.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'lib/lib_errors.c') diff --git a/lib/lib_errors.c b/lib/lib_errors.c index c98534da03..f9bfa17b2e 100644 --- a/lib/lib_errors.c +++ b/lib/lib_errors.c @@ -35,9 +35,9 @@ static struct ferr_ref ferr_lib_err[] = { .suggestion = "Ensure that there is sufficient memory to start processes and restart FRR", }, { - .code = LIB_ERR_VRF_SOCKET, - .title = "VRF Socket Error", - .description = "When attempting to access a socket for the VRF specified, we\nwere unable to properly complete the request", + .code = LIB_ERR_SOCKET, + .title = "Socket Error", + .description = "When attempting to access a socket a system error has occured\nand we were unable to properly complete the request", .suggestion = "Ensure that there is sufficient system resources available and\nensure that the frr user has sufficient permisions to work", }, { @@ -59,7 +59,13 @@ static struct ferr_ref ferr_lib_err[] = { .suggestion = "Restart FRR" }, { - .code = END_FERR + .code = LIB_ERR_SYSTEM_CALL, + .title = "System Call Error", + .description = "FRR has detected a error from using a vital system call and has probably\nalready exited", + .suggestion = "Ensure permissions are correct for FRR and FRR user and groups are correct\nAdditionally check that system resources are still available" + }, + { + .code = END_FERR, } }; -- cgit v1.2.3