[prev in list] [next in list] [prev in thread] [next in thread]
List: wireshark-dev
Subject: [Wireshark-dev] Accessing IDB Options from a dissector
From: Paul Offord <Paul.Offord () advance7 ! com>
Date: 2017-02-15 10:27:48
Message-ID: 69CB24EC39368E438FFE300C1813C50B01C334A8 () ASLHQSBS ! aslhq ! local
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Some time ago we wrote a program that converts IIS W3C logs to pcapng form=
at. We also wrote a WS dissector to produce a neat format like this:
[cid:image001.jpg@01D28776.264AC250]
To achieve this, the conversion program needs to pass meta-data to the dis=
sector, and it currently does this via the first frame of the converted fi=
le. This isn't ideal. I'd like to pass the meta-data via a custom IDB Op=
tion. I've looked through README.plugin and README.dissector files in the=
doc directory of the source tree and I can't find a function or technique=
for a dissector to get information from an IDB Option. Is there a standa=
rd way to do this?
Thanks and regards...Paul
______________________________________________________________________
This message contains confidential information and is intended only for th=
e individual named. If you are not the named addressee you should not diss=
eminate, distribute or copy this e-mail. Please notify the sender immediat=
ely by e-mail if you have received this e-mail by mistake and delete this =
e-mail from your system.
Any views or opinions expressed are solely those of the author and do not =
necessarily represent those of Advance Seven Ltd. E-mail transmission cann=
ot be guaranteed to be secure or error-free as information could be interc=
epted, corrupted, lost, destroyed, arrive late or incomplete, or contain v=
iruses. The sender therefore does not accept liability for any errors or o=
missions in the contents of this message, which arise as a result of e-mai=
l transmission.
Advance Seven Ltd. Registered in England & Wales numbered 2373877 at Endea=
vour House, Coopers End Lane, Stansted, Essex CM24 1SJ
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
[Attachment #5 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Some time ago we wrote a program that converts IIS W3C logs to \
pcapng format. We also wrote a WS dissector to produce a neat format like \
this:<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"><img width="450" \
height="343" id="Picture_x0020_1" \
src="cid:image001.jpg@01D28776.264AC250"></span><o:p></o:p></p> <p \
class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">To achieve this, the \
conversion program needs to pass meta-data to the dissector, and it currently does \
this via the first frame of the converted file. This isn’t ideal. \
I’d like to pass the meta-data via a custom IDB Option. I’ve looked \
through README.plugin and README.dissector files in the doc directory of the source \
tree and I can’t find a function or technique for a dissector to get \
information from an IDB Option. Is there a standard way to do \
this?<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks and regards…Paul<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br clear="both">
______________________________________________________________________<BR>
<BR>
This message contains confidential information and is intended only for the \
individual named. If you are not the named addressee you should not disseminate, \
distribute or copy this e-mail. Please notify the sender immediately by e-mail if you \
have received this e-mail by mistake and delete this e-mail from your system.<BR> \
<BR> Any views or opinions expressed are solely those of the author and do not \
necessarily represent those of Advance Seven Ltd. E-mail transmission cannot be \
guaranteed to be secure or error-free as information could be intercepted, corrupted, \
lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore \
does not accept liability for any errors or omissions in the contents of this \
message, which arise as a result of e-mail transmission.<BR> <BR>
Advance Seven Ltd. Registered in England & Wales numbered 2373877 at Endeavour House, \
Coopers End Lane, Stansted, Essex CM24 1SJ<BR> <BR>
______________________________________________________________________<BR>
This email has been scanned by the Symantec Email Security.cloud service.<BR>
For more information please visit http://www.symanteccloud.com<BR>
______________________________________________________________________<BR>
</body>
</html>
["image001.jpg" (image/jpeg)]
___________________________________________________________________________
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
--===============2816828753789117747==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic