Add methods for updating ingressDiscardRule bpf map to BpfNetMaps
Cherry-pick of aosp/2795710 to backport VPN security fix to non-mainline
U devices with minor conflicts resolution.
Since U branches use module prebuilt and new tests in
BpfNetMapsTest.java relies on InetAddressUtils change in this topic,
this CL does not add tests for setIngressDiscardRule and
removeIngressDiscardRule.
Bug: 193031925
Test: NetworkStaticLibsTests
Merged-In: I42bc0adc22c3018480029d624053f758d815e526
Change-Id: Ie7057eb0273023767489ea72ea1faf9598724ef9
3 files changed