t asn1_ctx;
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
Also, with 0.99.5, the tool refers to , which should be
Regards,
Zongjun
On Nov 27, 2007 1:52 PM, Zongjun <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I have a working dissector generated using ASN.1 tool asn2wr. But
dy has tried to change a
asn.1 generated dissector into a plug-in. We either go epan/dissector way,
or go plugins/ way. And asn.1 protocols are only go epan/dissector way.
Am I miss something here?
Thanks,
Zongjun
___
Wireshark-dev mailing list
Wireshark-de
Hello Guy,
I am using asn1 BER encoding at the sending side. And It is hard to figure
it out what exactly is the length byte. I have read the hexdump for some
different messages, they are varying.
I might be trying your suggestion when I get time. But thanks anyway.
Zongjun
On 9/27/07, Guy
ove offset_thisRound variable, and instead do:
offset = dissect_MyProtoMessage_PDU(tvb,pinfo,myproto_tree);
This will also works!
Thanks for fast replies from you guys. Wireshark rocks!
Zongjun
On 9/27/07, Zongjun <[EMAIL PROTECTED]> wrote:
>
> Hey Didier,
>
> I put "offset_t
On 9/27/07, Zongjun <[EMAIL PROTECTED]> wrote:
>
> Hey Didier,
>
> I put "offset_thisRound =
> dissect_MyProtoMessage_PDU(tvb,pinfo,myproto_tree); " after if(tree){...},
> and IT WORKS! I can have multiple different PDUs in one segment! Amazing!
>
> The
t_thisRound = dissect_MyProtoMessage_PDU(tvb,pinfo,myproto_tree);
offset += offset_thisRound;
} //while:
}
On 9/27/07, Didier <[EMAIL PROTECTED]> wrote:
>
> *On Thu, 27 Sep 2007 13:13:17 -0700, Zongjun wrote*
> > On 9/27/07, Zongjun <[EMAIL PROTECTED]> wrote:
>
Ronnie,
I could have 30 different kinds of messages and I just can't know the fix
length. However, using tcp_dissect_pdus you have to give the fix length.
Zongjun
On 9/27/07, ronnie sahlberg <[EMAIL PROTECTED]> wrote:
>
> try using tcp_dissect_pdus() to handle the case with
On 9/27/07, Zongjun <[EMAIL PROTECTED]> wrote:
>
> Hey Didier,
>
> You mean like
gint offset_thisRound = 0; // of course, outside if(tree) block.
if (tree) {
> myproto_item = proto_tree_add_item(tree, proto_myproto, tvb,
> offset, -1, FALSE);
,pinfo,myproto_tree);
}
offset += offset_thisRound;
I tried but still the same result.
Thanks,
Zongjun
On 9/27/07, Didier <[EMAIL PROTECTED]> wrote:
>
> Hi*
> On Thu, 27 Sep 2007 12:02:32 -0700, Zongjun wrote*
> > Hey guys,
> >
> > According to my captu
v/200705/msg00294.html>
But again, it is not for single segment having multiple PDU.
Anyone see the same issue?
Thanks,
Zongjun
static void
dissect_myproto(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
gint offset = 0; // always points to the front
gint available = 0; // how many bytes stil
10 matches
Mail list logo