Comment # 10
on bug 9120
from Evan Huus
(In reply to comment #9)
> Note that the list is only populated if tree(or something like that) for
> performance reasons(?)
Probably, strings are expensive.
> In epan/asn1.h asn1_ctx_t has a "signature"
>
> #define ASN1_CTX_SIGNATURE 0x41435458 /* "ACTX" */
>
> typedef struct _asn1_ctx_t {
> guint32 signature;
> :
>
> #define ROSE_CTX_SIGNATURE 0x524F5345 /* "ROSE" */
>
> typedef struct _rose_ctx_t {
> guint32 signature;
> :
>
> Could something like that be used to ensure (assert)that the data is from
> the right caller?
Ya, I was thinking of adding a stack of proto_id values that is maintained like
(or instead of) layer_names even when !tree so that dissectors can do something
like
if (pinfo->protocols[top] == proto_tcp) do stuff
else if (pinfo->protocols[top] == proto_udp) do stuff
You are receiving this mail because:
- You are watching all bug changes.