fieldstat增加对控制报文类型的计数
This commit is contained in:
@@ -6,13 +6,13 @@
|
||||
#include "utils.h"
|
||||
#include "ctrl_packet.h"
|
||||
|
||||
static const char *session_state_to_string(enum session_state state)
|
||||
const char *session_state_to_string(enum session_state state)
|
||||
{
|
||||
switch (state)
|
||||
{
|
||||
case SESSION_STATE_OPENING:
|
||||
return "opening";
|
||||
case SESSION_STATE_CLONING:
|
||||
case SESSION_STATE_CLOSING:
|
||||
return "closing";
|
||||
case SESSION_STATE_ACTIVE:
|
||||
return "active";
|
||||
@@ -80,7 +80,7 @@ int ctrl_packet_parser_parse(struct ctrl_pkt_parser *handler, const char *data,
|
||||
}
|
||||
else if (strcasecmp(item->valuestring, "closing") == 0)
|
||||
{
|
||||
handler->state = SESSION_STATE_CLONING;
|
||||
handler->state = SESSION_STATE_CLOSING;
|
||||
}
|
||||
else if (strcasecmp(item->valuestring, "resetall") == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user