aboutsummaryrefslogtreecommitdiffstats
path: root/vnet/vnet/unix/tapcli.h
diff options
context:
space:
mode:
Diffstat (limited to 'vnet/vnet/unix/tapcli.h')
-rw-r--r--vnet/vnet/unix/tapcli.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/vnet/vnet/unix/tapcli.h b/vnet/vnet/unix/tapcli.h
index 1f5f4c3ee73..00a96c6b7bf 100644
--- a/vnet/vnet/unix/tapcli.h
+++ b/vnet/vnet/unix/tapcli.h
@@ -18,6 +18,18 @@
#ifndef __included_tapcli_h__
#define __included_tapcli_h__
+#define foreach_tapcli_error \
+ /* Must be first. */ \
+ _(NONE, "no error") \
+ _(READ, "read error") \
+ _(UNKNOWN, "unknown error")
+
+typedef enum {
+#define _(sym,str) TAPCLI_ERROR_##sym,
+ foreach_tapcli_error
+#undef _
+ TAPCLI_N_ERROR,
+ } tapcli_error_t;
typedef struct {
u32 sw_if_index;