Refactor IpClientNetlinkMonitor to be a static class.
Refactor IpClientNetlinkMonitor to be a static class for easy mock in
the IpClient unit test, therefore, move all functions related to netlink
message parsing out of IpClientNetlinkMonitor class. To achieve this, we
do below things in this CL:
- add an method to create IpClientNetlinkMonitor in
IpClient.Dependencies.
- move functions related to netlink parsing inside
IpClientNetlinkMonitor class out of it.
- move ifindex member and setIfindex out of IpClientNetlinkMonitor class.
- add interface index parameter for processNetlinkMessage.
Bug: 318764217
Test: TH
Change-Id: Id96e18b9252bfd04becbeb02ca97c96334e038c1
3 files changed