aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/format.h
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2021-11-09 18:18:21 +0100
committerDamjan Marion <dmarion@me.com>2021-12-14 10:41:34 +0000
commit162ff5e4122572045ea7976c77ba3286fb05eeb5 (patch)
treec418c979fed4382df9246fe005b90feba81e7e41 /src/vppinfra/format.h
parent83b982be86c3f27f181fb65d4392b679488af0bc (diff)
interface: Add interface monitor cli
This adds an interface CLI 'monitor interface <interface>' that periodically reports rx/tx pps & bandwidth for a given interface. Type: feature Change-Id: Ia9d59b3443913520a52b38d7bda012190be6f167 Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/vppinfra/format.h')
-rw-r--r--src/vppinfra/format.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vppinfra/format.h b/src/vppinfra/format.h
index cad9b0e0ef2..b70384c0e41 100644
--- a/src/vppinfra/format.h
+++ b/src/vppinfra/format.h
@@ -287,6 +287,9 @@ unformat_function_t unformat_eof;
/* Parse memory size e.g. 100, 100k, 100m, 100g. */
unformat_function_t unformat_memory_size;
+/* Format base 10 e.g. 100, 100K, 100M, 100G */
+u8 *format_base10 (u8 *s, va_list *va);
+
/* Unparse memory size e.g. 100, 100k, 100m, 100g. */
u8 *format_memory_size (u8 * s, va_list * va);