Wireshark-bugs: [Wireshark-bugs] [Bug 9480] new dfilter function num_items()

Date: Thu, 28 Nov 2013 00:15:12 +0000

changed bug 9480

What Removed Added
CC   [email protected]

Comment # 2 on bug 9480 from
(In reply to comment #0)
> I'd like to add a dfilter function num_items(). It takes a field name as
> parameter and returns the number of occurrences in a packet.
> 
> This allows for filters such as
> 
> num_items(ip.addr)>=2

I was thinking to rename function to: count(ip.addr) [SQL-like], but
num_items() is fine for me.

Anyway, cool stuff, later we could do index(field, n) to return n-th element of
list: num_items(ip.addr) > 2 && index(ip.addr, 2) == 192.168.192.1 :)


You are receiving this mail because:
  • You are watching all bug changes.