limit IFINDEX matching to specific actions.
For each netlink message that belongs to net subsystem, the netd NetLinkHandler will try to find the IFINDEX param in the netlink event. Since most of the net related netlink event do not have IFINDEX inside the message, it causes a lot of FindParam() error when handle those messages. So we only do a FindParam for message with action kLinkUp, kLinkDown and kAdd so the false alarm of IFINDEX not exist will not be triggered. Bug: 73137611 Test: ./netd_unit_test pass and adb logcat | grep IFINDEX do not show NetlinkEvent errors; Change-Id: If8f06b357d7f6added0dc6d9bfe2742ec9601575
Loading
Please register or sign in to comment