aboutsummaryrefslogtreecommitdiffstats
path: root/sharkd_session.c
diff options
context:
space:
mode:
authorZach Chadwick <zachad@qacafe.com>2023-02-22 15:21:29 -0500
committerGilbert Ramirez <gilbertr@gmail.com>2023-02-25 03:28:18 +0000
commit39aa3cb58af77a91e05972a440d35fbb93d4273d (patch)
tree9839048b5570af3ddfc0196590686cbcfef3aa85 /sharkd_session.c
parentef0e96e447eb06c978b80ce1086c68d8772f3859 (diff)
Sharkd: Fix types of prev_frame and ref_frame
The 'frame' command accepts both 'prev_frame' and 'ref_frame' as arguments. Both should be defined as a UINTEGER rather than a BOOL.
Diffstat (limited to 'sharkd_session.c')
-rw-r--r--sharkd_session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sharkd_session.c b/sharkd_session.c
index ffb9b60464..c9aa258407 100644
--- a/sharkd_session.c
+++ b/sharkd_session.c
@@ -388,8 +388,8 @@ json_prep(char* buf, const jsmntok_t* tokens, int count)
{"follow", "filter", 2, JSMN_STRING, SHARKD_JSON_STRING, MANDATORY},
{"frame", "frame", 2, JSMN_PRIMITIVE, SHARKD_JSON_UINTEGER, MANDATORY},
{"frame", "proto", 2, JSMN_PRIMITIVE, SHARKD_JSON_BOOLEAN, OPTIONAL},
- {"frame", "ref_frame", 2, JSMN_PRIMITIVE, SHARKD_JSON_BOOLEAN, OPTIONAL},
- {"frame", "prev_frame", 2, JSMN_PRIMITIVE, SHARKD_JSON_BOOLEAN, OPTIONAL},
+ {"frame", "ref_frame", 2, JSMN_PRIMITIVE, SHARKD_JSON_UINTEGER, OPTIONAL},
+ {"frame", "prev_frame", 2, JSMN_PRIMITIVE, SHARKD_JSON_UINTEGER, OPTIONAL},
{"frame", "columns", 2, JSMN_PRIMITIVE, SHARKD_JSON_BOOLEAN, OPTIONAL},
{"frame", "color", 2, JSMN_PRIMITIVE, SHARKD_JSON_BOOLEAN, OPTIONAL},
{"frame", "bytes", 2, JSMN_PRIMITIVE, SHARKD_JSON_BOOLEAN, OPTIONAL},