Jakub Zawadzki
changed
bug 9480
Comment # 2
on bug 9480
from Jakub Zawadzki
(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.