ClatCoordinator: dump BPF forwarding rules
This is a preparation for moving clat map dump from netd to
mainline module.
Test: compare dumpsys connectivity and netd
$ adb shell dumpsys connectivity
Nat464Xlat:
ClatCoordinator:
Forwarding rules:
BPF ingress map: iif nat64Prefix v6Addr -> v4Addr oif
47 /64:ff9b::/96 /2a00:79e1:abc:6f02:4aac:17dd:b40e:8bcc -> /192.0.0.4 52
BPF egress map: iif v4Addr -> v6Addr nat64Prefix oif
52 /192.0.0.4 -> /2a00:79e1:abc:6f02:4aac:17dd:b40e:8bcc /64:ff9b::/96 47 ether
$ adb shell dumpsys netd
ClatdController
BPF ingress map: iif(iface) nat64Prefix v6Addr -> v4Addr oif(iface)
47(wlan0) 64:ff9b::/96 2a00:79e1:abc:6f02:4aac:17dd:b40e:8bcc -> 192.0.0.4 52(v4-wlan0)
BPF egress map: iif(iface) v4Addr -> v6Addr nat64Prefix oif(iface)
52(v4-wlan0) 192.0.0.4 -> 2a00:79e1:abc:6f02:4aac:17dd:b40e:8bcc 64:ff9b::/96 47(wlan0) ether
Change-Id: I597709663477b62005b0bc5cc1bf0fc22743e10b
This commit is contained in:
committed by
Nucca Chen
parent
eb15a2d816
commit
707675511a
@@ -3431,6 +3431,10 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
pw.increaseIndent();
|
||||
nai.dumpInactivityTimers(pw);
|
||||
pw.decreaseIndent();
|
||||
pw.println("Nat464Xlat:");
|
||||
pw.increaseIndent();
|
||||
nai.dumpNat464Xlat(pw);
|
||||
pw.decreaseIndent();
|
||||
pw.decreaseIndent();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user