Le jeudi 9 août 2012, Kumar, Chandan (Chandan) a écrit :
 
My request as follows:
Could you, please help me to make change in Wireshark so that I would be able 
to select IE by means of filter like others element?
 
I want to make IE’s as a filterable field instead of displaying frame [start 
offset: length]
 
Did some change for this into epan/proto.c file in Wireshark – 1.6.2
Line number---->6934
 
ptr += g_snprintf(ptr, (gulong) (buf_len-(ptr-*filter)), "frame[%d:%d] == ", 
finfo->start, length);   
 
this line I have change like
ptr += g_snprintf(ptr, (gulong) (buf_len-(ptr-*filter)),"%s == ", 
finfo->rep->representation);
 
I am able to see the strings which want to make filterable using (Apply as 
filter ---> Selected) but some wrong message windows came & stop the parsing 
for new filter.
Attaching two snap shot 1st with the Wireshark filter & 2nd what I have 
implemented.

Hi Chandan,
As indicated by Gilbert your screeshots were not forwarded to the list.
Given the line number you modified, it looks like the field you want to filter 
is defined as FT_NONE. Hacking in proto.c is probably not what you want to do 
and instead you should change the protocol dissector code so as to use a more 
friendly filter format.
If you can share with us more information on the protocol used and field you 
want to filter, we might be able to help you.

Regards,
Pascal.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Reply via email to