Lines Matching refs:dw

1205 void TetherController::dumpIfaces(DumpWriter& dw) {  in dumpIfaces()  argument
1206 dw.println("Interface pairs:"); in dumpIfaces()
1208 ScopedIndent ifaceIndent(dw); in dumpIfaces()
1210 dw.println("%s -> %s %s", it.first.c_str(), it.second.iface.c_str(), in dumpIfaces()
1232 void TetherController::dumpBpf(DumpWriter& dw) { in dumpBpf() argument
1234 dw.println("BPF not supported"); in dumpBpf()
1238 dw.println("BPF ingress map: iif(iface) v6addr -> oif(iface) srcmac dstmac ethertype [pmtu]"); in dumpBpf()
1239 const auto printIngressMap = [&dw](const TetherIngressKey& key, const TetherIngressValue& value, in dumpBpf()
1250 dw.println("%u(%s) %s -> %u(%s) %s %s %04x [%u]", key.iif, iifStr, addr, value.oif, oifStr, in dumpBpf()
1256 dw.incIndent(); in dumpBpf()
1259 dw.println("Error printing BPF ingress map: %s", ret.error().message().c_str()); in dumpBpf()
1261 dw.decIndent(); in dumpBpf()
1263 dw.println("BPF stats (downlink): iif(iface) -> packets bytes errors"); in dumpBpf()
1264 const auto printStatsMap = [&dw](const uint32_t& key, const TetherStatsValue& value, in dumpBpf()
1268 dw.println("%u(%s) -> %" PRIu64 " %" PRIu64 " %" PRIu64, key, iifStr, value.rxPackets, in dumpBpf()
1274 dw.incIndent(); in dumpBpf()
1277 dw.println("Error printing BPF stats map: %s", ret.error().message().c_str()); in dumpBpf()
1279 dw.decIndent(); in dumpBpf()
1281 dw.println("BPF limit: iif(iface) -> bytes"); in dumpBpf()
1282 const auto printLimitMap = [&dw](const uint32_t& key, const uint64_t& value, in dumpBpf()
1286 dw.println("%u(%s) -> %" PRIu64, key, iifStr, value); in dumpBpf()
1291 dw.incIndent(); in dumpBpf()
1294 dw.println("Error printing BPF limit map: %s", ret.error().message().c_str()); in dumpBpf()
1296 dw.decIndent(); in dumpBpf()
1299 void TetherController::dump(DumpWriter& dw) { in dump() argument
1302 ScopedIndent tetherControllerIndent(dw); in dump()
1303 dw.println("TetherController"); in dump()
1304 dw.incIndent(); in dump()
1306 dw.println("Forwarding requests: " + Join(mForwardingRequests, ' ')); in dump()
1308 dw.println(StringPrintf("DNS: netId %d servers [%s]", mDnsNetId, in dump()
1312 dw.println("dnsmasq PID: %d", mDaemonPid); in dump()
1315 dumpIfaces(dw); in dump()
1316 dw.println(""); in dump()
1317 dumpBpf(dw); in dump()