Obtain the target socket directly to send packets

The sendMdnsPacket() now only sends packets on the specific
socket. Therefore, it does not need to iterate through the list
of active sockets to find the target socket. Instead, it can
simply use the target socket key to get the target socket and
send the packets on it.

Fix: 291871455
Test: atest FrameworksNetTests
Change-Id: If054959a142659625f2604224fcfd83792e2edfc
1 file changed