commit | 096fc5351fba3c35f4ec2d45c738a594da672458 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Sun Apr 26 19:21:12 2020 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Sun May 10 11:36:59 2020 +0900 |
tree | 49b4978652b28794efc031ecc78bcde750a915c3 | |
parent | c3d30bfdfff894419a4386685bc711b07ab917de [diff] |
Parse IFA_F_* values above 0x80. In RTM_NEWADDR messages, the first 8 flags are reported in the ifa_flags field in struct ifaddrmsg, but flags above 0x80 are reported in the IFA_FLAGS attribute. NetlinkEvent currently only looks at ifa_flags, so it cannot see higher-value flags such as IFA_F_STABLE_PRIVACY. Fix this by parsing the IFA_FLAGS attribute. Bug: 155005831 Test: makes new test in aosp/1295495 pass Change-Id: I723f1106cbcea2186fc6452305942a0f8301fd2a