From 81bb6fc611d321a92ad2218e1b852db67980768a Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Sun, 16 Jan 2022 22:47:55 +0100 Subject: vnet: introduce vnet_error() Decouples vnet return values from API return codes. New vnet_error() creates vnet_error_t whicgh contains both vnet function return value and return string. vnet_api_error() converts vlib_error_t constructed with vnet_error() to API return value. Type: improvement Change-Id: I17042954d48c010150fc1dfc5fce9330e8149e87 Signed-off-by: Damjan Marion --- src/vnet/vnet.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vnet/vnet.h') diff --git a/src/vnet/vnet.h b/src/vnet/vnet.h index 24afe633af2..227fa5be30c 100644 --- a/src/vnet/vnet.h +++ b/src/vnet/vnet.h @@ -45,6 +45,7 @@ #include #include +#include #include #include #include -- cgit 1.2.3-korg