[APFv6 2023-01] Add helper function to match names in DNS packets

Introduces a new helper function called match_name. This function
checks if any names in a given list match the content of a DNS packet.

Bug: 293811969
Test: TH
Change-Id: I55ebe5141477a6b831bd1ecc20bf3a8ec458ad96
2 files changed