Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] [Patch] additional lua dissector preference types

From: "Luis Ontanon" <luis.ontanon@xxxxxxxxx>
Date: Thu, 3 May 2007 01:51:57 +0200
checked in in rev 21655.

There's just one issue regarding Pref.range(), by now it is just a
"constrained" string.

The "right-way" should be to have range_t to become a type on its own
so that stuff like this can be done:

do
 proto.prefs.rng =  Pref.range(...);
 -- ...
 for i in proto.prefs.rng() do
    print(i)
 end
 -- ...
 if  proto.prefs.rng:is_in(35) then
   print("got 35!")
 end
end

Range should have
range:__call() returns a RangeIterator
range:__tostring()
range:is_in(n)

A RangeIterator should have just a __call methamethod that returns the
next value in the Range (and nil once reached the end)

Luis

On 5/2/07, Balint Reczey (IJ/ETH) <Balint.Reczey@xxxxxxxxxxxx> wrote:
Hi,
Is there anything i could do to help this patch's inclusion in the svn
repo?
Regards,
Balint

2007. 04. 27, péntek keltezéssel 13.28-kor Balint Reczey (IJ/ETH) ezt
írta:
> Hi,
>
> The attached patch adds ability of of creating radio button, drop-down
> list and range type preference entries to the Lua plugin.
> It also fixes a lua compile warning/error in wslua_gui.c.
> The patch is written by Tamas Regos, he asked me to send it to the list.
> Could someone commit it to the svn repo?
>
> Cheers,
> Balint
_______________________________________________
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