Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 04f3b17f authored by Chenbo Feng's avatar Chenbo Feng
Browse files

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
parent fcc78a84
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment