Add a "resetcounters" command to ipsec, clearing global or connection counters

This commit is contained in:
Martin Willi
2013-03-15 10:55:22 +01:00
parent d022322bed
commit cf729248b2
8 changed files with 53 additions and 14 deletions
+3 -1
View File
@@ -223,7 +223,7 @@ struct stroke_msg_t {
STR_MEMUSAGE,
/* set username and password for a connection */
STR_USER_CREDS,
/* print counters */
/* print/reset counters */
STR_COUNTERS,
/* more to come */
} type;
@@ -357,6 +357,8 @@ struct stroke_msg_t {
/* data for STR_COUNTERS */
struct {
/* reset or print counters? */
int reset;
char *name;
} counters;
};