diff options
author | Neale Ranns <nranns@cisco.com> | 2018-10-15 05:47:58 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-10-16 11:35:46 +0000 |
commit | e9239c978277d838c0c5ca0ad3076ef85d15138a (patch) | |
tree | b95b2099bd06f80319b30351fed53335f20b3ace /src/vnet/ip/ping.h | |
parent | aa27eb95b7ee3bb69b62166d5e418e973cbbdcfa (diff) |
Ping; report failures to the terminal
Change-Id: Icd48de31302f62c59961c573699a1dd0474b8acb
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/ip/ping.h')
-rw-r--r-- | src/vnet/ip/ping.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/vnet/ip/ping.h b/src/vnet/ip/ping.h index 3f7488fbeac..442ba732dda 100644 --- a/src/vnet/ip/ping.h +++ b/src/vnet/ip/ping.h @@ -26,13 +26,18 @@ typedef enum PING_RESPONSE_IP4, } ping_response_type_t; +#define foreach_ip46_ping_result \ + _ (OK, "OK") \ + _ (ALLOC_FAIL, "packet allocation failed") \ + _ (NO_INTERFACE, "no egress interface") \ + _ (NO_TABLE, "no IPv6 Table for lookup") \ + _ (NO_SRC_ADDRESS, "no source address for egress interface") \ + typedef enum { - SEND_PING_OK = 0, - SEND_PING_ALLOC_FAIL, - SEND_PING_NO_INTERFACE, - SEND_PING_NO_TABLE, - SEND_PING_NO_SRC_ADDRESS, +#define _(v, s) SEND_PING_##v, + foreach_ip46_ping_result +#undef _ } send_ip46_ping_result_t; /* |