Add filterable expert info to generated X11 dissector. I didn't regenerate the dissector files, but did manually update the source (tools/process-x11-xcb.pl) so any future regeneration won't lose the changes.
svn path=/trunk/; revision=51834
This commit is contained in:
parent
306a110ed6
commit
da96b71c95
|
@ -202,6 +202,7 @@ static gint ett_x11_same_screen_focus = -1;
|
|||
static gint ett_x11_event = -1;
|
||||
|
||||
static expert_field ei_x11_invalid_format = EI_INIT;
|
||||
static expert_field ei_x11_request_length = EI_INIT;
|
||||
|
||||
/* desegmentation of X11 messages */
|
||||
static gboolean x11_desegment = TRUE;
|
||||
|
@ -5603,6 +5604,7 @@ void proto_register_x11(void)
|
|||
|
||||
static ei_register_info ei[] = {
|
||||
{ &ei_x11_invalid_format, { "x11.invalid_format", PI_PROTOCOL, PI_WARN, "Invalid Format", EXPFILL }},
|
||||
{ &ei_x11_request_length, { "x11.request-length.invalid", PI_PROTOCOL, PI_WARN, "Invalid Length", EXPFILL }},
|
||||
};
|
||||
|
||||
module_t *x11_module;
|
||||
|
|
|
@ -3719,7 +3719,7 @@ static void dispatch_glx_render(tvbuff_t *tvb, packet_info *pinfo, int *offsetp,
|
|||
*offsetp += 2;
|
||||
|
||||
if (len < 4) {
|
||||
expert_add_info_format(pinfo, ti, PI_MALFORMED, PI_ERROR, "Invalid Length");
|
||||
expert_add_info(pinfo, ti, &ei_x11_request_length);
|
||||
/* Eat the rest of the packet, mark it undecoded */
|
||||
len = length;
|
||||
op = -1;
|
||||
|
|
|
@ -1439,7 +1439,7 @@ static void dispatch_glx_render(tvbuff_t *tvb, packet_info *pinfo, int *offsetp,
|
|||
*offsetp += 2;
|
||||
|
||||
if (len < 4) {
|
||||
expert_add_info_format(pinfo, ti, PI_MALFORMED, PI_ERROR, "Invalid Length");
|
||||
expert_add_info(pinfo, ti, &ei_x11_request_length);
|
||||
/* Eat the rest of the packet, mark it undecoded */
|
||||
len = length;
|
||||
op = -1;
|
||||
|
|
Loading…
Reference in New Issue