Implement IGMPv2 general query reply generation in APF
This change adds logic to APF to generate IGMPv2 report packets in
response to IGMPv2 general queries.
To optimize bytecode efficiency, the implementation reuses previously
constructed IGMPv3 packets from the data region whenever possible.
Notably, the code can generate multiple IGMPv2 reports for a single
IGMPv2 general query if the device has joined multiple IPv4 multicast
addresses.
Bug: 379840541
Test: TH
Change-Id: I0c0029b464698f848f0ee8f073ee31fdee543fd5
2 files changed