[prev in list] [next in list] [prev in thread] [next in thread]
List: wireshark-dev
Subject: [Wireshark-dev] Custom wireshark dissector plugin: unable to overwrite col_protocol and info
From: rashmi s <rashmi.s13 () gmail ! com>
Date: 2017-02-01 22:11:11
Message-ID: CAEFcX7pU09z=f7miwdqWxKK1HYpN3pJ2p3KNzjGFGcyW2chWPA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hello,
I have written a custom dissector plugin for internal use and am using
"WTAP_ENCAP_USER0" as port. In my dissector, I am setting protocol name and
info field using col_set_str function.
But it still shows the entry set in packet-frame.c. The protocol field is
displayed as UNKNOWN and info field as WTAP_ENCAP = 45. If I comment out
this line in packet-frame.c, then I can see the information and protocol
that I set.
How can make my col_set_str to take effect and display my protocol and info
instead.
Thanks,
Rashmi.
[Attachment #5 (text/html)]
<div dir="ltr"><p style="border:medium none;margin:0px 0px \
13px;padding:0px;font-size:13px;line-height:18.2px;max-width:700px;color:rgb(0,0,0);font-family:sans-serif">Hello,</p><p \
style="border:medium none;margin:0px 0px \
13px;padding:0px;font-size:13px;line-height:18.2px;max-width:700px;color:rgb(0,0,0);font-family:sans-serif">I \
have written a custom dissector plugin for internal use and am using \
"WTAP_ENCAP_USER0" as port. In my dissector, I am setting protocol name and \
info field using col_set_str function.</p><p style="border:medium none;margin:0px 0px \
13px;padding:0px;font-size:13px;line-height:18.2px;max-width:700px;color:rgb(0,0,0);font-family:sans-serif">But \
it still shows the entry set in packet-frame.c. The protocol field is displayed as \
UNKNOWN and info field as WTAP_ENCAP = 45. If I comment out this line in \
packet-frame.c, then I can see the information and protocol that I set.</p><p \
style="border:medium none;margin:0px 0px \
13px;padding:0px;font-size:13px;line-height:18.2px;max-width:700px;color:rgb(0,0,0);font-family:sans-serif">How \
can make my col_set_str to take effect and display my protocol and info \
instead.</p><p style="border:medium none;margin:0px 0px \
13px;padding:0px;font-size:13px;line-height:18.2px;max-width:700px;color:rgb(0,0,0);font-family:sans-serif">Thanks,</p><p \
style="border:medium none;margin:0px 0px \
13px;padding:0px;font-size:13px;line-height:18.2px;max-width:700px;color:rgb(0,0,0);font-family:sans-serif">Rashmi.</p></div>
___________________________________________________________________________
Sent via: Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives: https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-request@wireshark.org?subject=unsubscribe
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic