[APFv6 2023-01] Add helper function to match target_name in mDNS packets

Introduces a new helper function named match_labels to efficiently
compare a given target_name against a QNAME or NAME label within an mDNS
packet.

Bug: 293811969
Test: TH
Change-Id: Ib87e12cfa7fe1de98fab16eef536dbe2303d26a7
3 files changed