Wireshark-dev: Re: [Wireshark-dev] Are user decodes persisted?

From: "Douglas Pratley" <Douglas.pratley@xxxxxxxxxx>
Date: Fri, 5 Jan 2007 16:13:56 -0000
Sadly, not all users are (even macro) coders. While I am happy to modify
Wireshark's behaviour using Lua, some people here want to be able to do
it through the UI.

Are you suggesting that if I were to write some UI functionality to save
the decodes that lua would be suitable format for saving it in? That's
an interesting idea, and would save defining a file format and writing
some form of parser. Not quite sure how I'd kick off lua from within
code to read it back in but I'm sure it would be possible so long as lua
was available.


-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx
[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of LEGO
Sent: 05 January 2007 15:54
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] Are user decodes persisted?

You can use lua for that...

do
        local tcp_port_table = DissectorTable.get("tcp.port")

        local http_dissector = tcp_port_table:get_dissector(80)

        for port in {4888,4889,4890,4891} do
                tcp_port_table:add(port,http_dissector)
        end
end

On 1/5/07, Douglas Pratley <Douglas.pratley@xxxxxxxxxx> wrote:
> Thanks for that.
>
> I might see if there is a sensible way to (optionally) persist them
when
> I get a moment.
>
> -----Original Message-----
> From: wireshark-dev-bounces@xxxxxxxxxxxxx
> [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Stephen
Fisher
> Sent: 04 January 2007 19:26
> To: Developer support list for Wireshark
> Subject: Re: [Wireshark-dev] Are user decodes persisted?
>
> On Thu, Jan 04, 2007 at 04:50:46PM -0000, Douglas Pratley wrote:
>
> > Does anyone know whether or not "User Decodes" are persisted between
> > Wireshark sessions? As far as I can tell they are not. I'm working
on
> > extending some of the "Decode As" functionality and it actually
makes
> > my life easier in the short term if I don't have to update
persistence
>
> > functionality to be consistent...
>
> The user decodes are not saved between Wireshark sessions.  The
closest
> you can get to such functionality is with certain dissectors that
allow
> you to specify an alternate port to decode as (for example HTTP, VNC,
> etc.)
>
>
> Steve
>
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> http://www.wireshark.org/mailman/listinfo/wireshark-dev
>
>
>
> This message should be regarded as confidential. If you have received
this email in error please notify the sender and destroy it immediately.
> Statements of intent shall only become binding when confirmed in hard
copy by an authorised signatory.  The contents of this email may relate
to dealings with other companies within the Detica Group plc group of
companies.
>
> Detica Limited is registered in England under No: 1337451.
>
> Registered offices: Surrey Research Park, Guildford, Surrey, GU2 7YP,
England.
>
>
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> http://www.wireshark.org/mailman/listinfo/wireshark-dev
>


-- 
This information is top security. When you have read it, destroy
yourself.
-- Marshall McLuhan
_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev