commit | 96ffe3733c9077cbbd5c889a3085fe569ac6c6dd | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <maze@google.com> | Mon Jun 20 13:50:48 2022 -0700 |
committer | Maciej Żenczykowski <maze@google.com> | Thu Jun 23 13:20:35 2022 +0000 |
tree | 3d0406590f8320a0d083a9e1d76f546bfe2fff28 | |
parent | 7e538299bb6b9ef9f927b2dad5662dd2fd41b9fa [diff] |
refactor common logic into abortOnKeyOrValueSizeMismatch Per request on: https://googleplex-android-review.googlesource.com/c/platform/frameworks/libs/net/+/18992756 While we're at it let's temporarily remove the check in .reset(fd) if (bpfGetFdMapFlags(mMapFd) != 0) abort(); // TODO: fix for BpfMapRO We'll add it back when the code is in better shape, and read-only vs read-write state of the map is something we actually *know*. Test: TreeHugger Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Id8d65bdc529872685b42656e638f22048fafb7f6