MINOR: peers: Add a new command to the CLI for peers.
Implements "show peers [peers section]" new CLI command to dump information
about the peers and their stick-tables to be synchronized and others internal.
May be backported as far as 1.5.
diff --git a/include/types/applet.h b/include/types/applet.h
index 9fc9ec8..21c0e90 100644
--- a/include/types/applet.h
+++ b/include/types/applet.h
@@ -161,6 +161,11 @@
struct task *task;
struct hlua_function *fcn;
} hlua_cli;
+ struct {
+ void *target;
+ struct peers *peers; /* "peers" section being currently dumped. */
+ struct peer *peer; /* "peer" being currently dumped. */
+ } cfgpeers;
/* NOTE: please add regular applet contexts (ie: not
* CLI-specific ones) above, before "cli".
*/