aboutsummaryrefslogtreecommitdiffstats
path: root/ui/cli/tap-httpstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/cli/tap-httpstat.c')
-rw-r--r--ui/cli/tap-httpstat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/cli/tap-httpstat.c b/ui/cli/tap-httpstat.c
index 184c0d98f2..dba569cf5b 100644
--- a/ui/cli/tap-httpstat.c
+++ b/ui/cli/tap-httpstat.c
@@ -197,7 +197,7 @@ httpstat_reset(void *psp )
}
-static int
+static tap_packet_status
httpstat_packet(void *psp , packet_info *pinfo _U_, epan_dissect_t *edt _U_, const void *pri)
{
const http_info_value_t *value = (const http_info_value_t *)pri;
@@ -218,7 +218,7 @@ httpstat_packet(void *psp , packet_info *pinfo _U_, epan_dissect_t *edt _U_, con
*/
int i = value->response_code;
if ((i < 100) || (i >= 600)) {
- return 0;
+ return TAP_PACKET_DONT_REDRAW;
}
else if (i < 200) {
key = 199; /* Hopefully, this status code will never be used */
@@ -239,7 +239,7 @@ httpstat_packet(void *psp , packet_info *pinfo _U_, epan_dissect_t *edt _U_, con
sp->hash_responses,
GUINT_TO_POINTER(key));
if (sc == NULL)
- return 0;
+ return TAP_PACKET_DONT_REDRAW;
}
sc->packets++;
}
@@ -259,9 +259,9 @@ httpstat_packet(void *psp , packet_info *pinfo _U_, epan_dissect_t *edt _U_, con
sc->packets++;
}
} else {
- return 0;
+ return TAP_PACKET_DONT_REDRAW;
}
- return 1;
+ return TAP_PACKET_REDRAW;
}