Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

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

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


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

  • References:
    • Re: [Wireshark-dev] [Patch] additional lua dissector preference types
      • From: Balint Reczey (IJ/ETH)
  • Prev by Date: Re: [Wireshark-dev] [Wireshark-commits] rev 21637: /trunk/gtk/ /trunk/gtk/: follow_dlg.c
  • Next by Date: [Wireshark-dev] Strangest thing ever !!! Captures only TCP 3-way handshake negotiation and not any data ?!?
  • Previous by thread: Re: [Wireshark-dev] [Patch] additional lua dissector preference types
  • Next by thread: Re: [Wireshark-dev] [Wireshark-commits] rev 21637: /trunk/gtk/ /trunk/gtk/: follow_dlg.c
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation