From 27cadd23b6c220e73552fa7b3fe61e5874d07cec Mon Sep 17 00:00:00 2001 From: Jon Loeliger Date: Fri, 10 Nov 2017 13:15:12 -0600 Subject: ACLs: Use better error return codes than "-1" everywhere. Added two new errors: ACL_IN_USE_INBOUND ACL_IN_USE_OUTBOUND Update ACL tests to expect new, precise return values. Change-Id: I644861a18aa5b70cce5f451dd6655641160c7697 Signed-off-by: Jon Loeliger --- src/vnet/api_errno.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/vnet') diff --git a/src/vnet/api_errno.h b/src/vnet/api_errno.h index f24cef4739c..e4ba8ddfb95 100644 --- a/src/vnet/api_errno.h +++ b/src/vnet/api_errno.h @@ -130,7 +130,9 @@ _(NAME_SERVER_FORMAT_ERROR, -137, "Server format error (bug!)") \ _(NAME_SERVER_NO_SUCH_NAME, -138, "No such name") \ _(NAME_SERVER_NO_ADDRESSES, -139, "No addresses available") \ _(NAME_SERVER_NEXT_SERVER, -140, "Retry with new server") \ -_(APP_CONNECT_FILTERED, -141, "Connect was filtered") +_(APP_CONNECT_FILTERED, -141, "Connect was filtered") \ +_(ACL_IN_USE_INBOUND, -142, "Inbound ACL in use") \ +_(ACL_IN_USE_OUTBOUND, -143, "Outbound ACL in use") typedef enum { -- cgit 1.2.3-korg