Restrict the local network range

If the network assigns a range that is not a defined local
network range, it should not be considered as a local network
range. Thus, intersect the network assigned range with RFC1918/
CGNAT/LINK LOCAL ranges to ensure it's an accepted local network
range.

Bug: 184750836
Test: cd system/netd ; atest
Change-Id: I3ac6bba439986b72dbddec99c6aca3394c6d3235
(cherry picked from commit cff5e88c75a4d23d472544b7008a4e51af1381c4)
Merged-In: I3ac6bba439986b72dbddec99c6aca3394c6d3235
3 files changed
tree: c9abb5e0345d4f93cb339b274019943c743905a0
  1. client/
  2. include/
  3. netutils_wrappers/
  4. server/
  5. tests/
  6. .editorconfig
  7. Android.bp
  8. NOTICE
  9. OWNERS
  10. PREUPLOAD.cfg
  11. TEST_MAPPING