ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 12184] MATE AVPL match modes "Loose" and "Every" do not wo

Date: Sun, 18 Sep 2016 11:30:30 +0000

Comment # 4 on bug 12184 from
What about adding this to https://wiki.wireshark.org/Mate/Reference#Every_Match

    (a=1, a=2) Match Every (a=1) ==> (a=1)
    (a=1, a=2) Match Every (a=1, a=2) ==> (a=1, a=2)
    (a=1, a=2) Match Every (a=1, a=3) ==> No match  // a found, but not a=3
    (a=1, a=2) Match Every (a!1) ==> (a=2)
    (a=1, a=2) Match Every (b?) ==> ()  // match with empty result

The description on the wiki (while it might technically correct) is hard to
parse. Your comment is already and improvement, but for the comment in the
source code I will be writing:

    There is a match if and only if for all conditions, either
    (1) there are no data avps with the same attribute name or
    (2) there exists a data avp with the same attribute name which matches.
    (If there are no conditions, the result will be a match.)

Alternatively, it is important to note that "Every" refers to the condition and
not "every" (compatible) data avp. "Every" condition must match (but if there
is no compatible data to test against, it will still be considered a match).


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