Merge "Add toString() to Ipv6ForwardingRule"

This commit is contained in:
Nucca Chen
2022-10-14 07:27:03 +00:00
committed by Gerrit Code Review
2 changed files with 16 additions and 0 deletions

View File

@@ -1473,6 +1473,15 @@ public class BpfCoordinator {
// to Objects.hash() to avoid autoboxing overhead.
return Objects.hash(upstreamIfindex, downstreamIfindex, address, srcMac, dstMac);
}
@Override
public String toString() {
return "upstreamIfindex: " + upstreamIfindex
+ ", downstreamIfindex: " + downstreamIfindex
+ ", address: " + address.getHostAddress()
+ ", srcMac: " + srcMac
+ ", dstMac: " + dstMac;
}
}
/** Tethering client information class. */