android_packages_modules_Co.../tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hungming Chen bd85f8903e ClatCoordinator: use Java class BpfMap to remove clat rule
This a preparation to replace duplicated native functions with the
existing Java class.

Bug: 221213090
Test: atest FrameworksNetTests
Test: manual check

Steps:
1. Connect wlan and check map content {iface index, v4addr, v6addr, pfx96} manually
after clat started.
$ adb shell dumpsys netd
  ClatdController
    BPF ingress map: iif(iface) nat64Prefix v6Addr -> v4Addr oif(iface)
      47(wlan0) 64:ff9b::/96 2a00:79e1:abc:6f02:2479:2f51:25a9:28f1 -> 192.0.0.4 53(v4-wlan0)
    BPF egress map: iif(iface) v4Addr -> v6Addr nat64Prefix oif(iface)
      53(v4-wlan0) 192.0.0.4 -> 2a00:79e1:abc:6f02:2479:2f51:25a9:28f1 64:ff9b::/96 47(wlan0) ether

2. Disconnect wlan and check the bpf map is removed.
$ adb shell dumpsys netd
  ClatdController
    BPF ingress map: iif(iface) nat64Prefix v6Addr -> v4Addr oif(iface)
    BPF egress map: iif(iface) v4Addr -> v6Addr nat64Prefix oif(iface)

Change-Id: Ia0c90c7104c4a42d34a28a5ddf3cf13a289f8c76
2022-03-31 16:04:42 +08:00
..
common Rename setAccessUids to setAllowedUids 2022-03-16 17:58:20 +00:00
cts Merge "Add @AppModeFull for those tests which will bind socket" 2022-03-29 15:35:30 +00:00
deflake Enable/disable FrameworksNetTests 2021-10-01 19:29:50 +08:00
integration Add tests for VPN validation in NetworkMonitor 2022-03-23 11:19:44 +00:00
mts Skip BpfExistenceTest#TestPrograms on BPF unsupported device 2022-02-16 16:06:59 +08:00
smoketest Update tests for NetworkStats code move. 2022-02-28 04:17:13 +00:00
unit ClatCoordinator: use Java class BpfMap to remove clat rule 2022-03-31 16:04:42 +08:00