Home
last modified time | relevance | path

Searched refs:routeTable (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/communication/netmanager_base/frameworks/native/netmanagernative/
H A Dnetsys_net_diag_data.cpp245 bool NetDiagRouteTable::Unmarshalling(Parcel &parcel, NetDiagRouteTable &routeTable) in Unmarshalling() argument
247 if (!parcel.ReadString(routeTable.destination_)) { in Unmarshalling()
250 if (!parcel.ReadString(routeTable.gateway_)) { in Unmarshalling()
253 if (!parcel.ReadString(routeTable.mask_)) { in Unmarshalling()
256 if (!parcel.ReadString(routeTable.iface_)) { in Unmarshalling()
259 if (!parcel.ReadString(routeTable.flags_)) { in Unmarshalling()
262 if (!parcel.ReadUint32(routeTable.metric_)) { in Unmarshalling()
265 if (!parcel.ReadUint32(routeTable.ref_)) { in Unmarshalling()
268 if (!parcel.ReadUint32(routeTable.use_)) { in Unmarshalling()
H A Dnetsys_native_service_proxy.cpp2127 NetDiagRouteTable routeTable; in NetDiagGetRouteTable() local
2128 if (!NetDiagRouteTable::Unmarshalling(reply, routeTable)) { in NetDiagGetRouteTable()
2132 routeTables.push_back(routeTable); in NetDiagGetRouteTable()
/ohos5.0/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/
H A Dnet_diag_wrapper_test.cpp491 NetDiagRouteTable routeTable; variable
492 routeTable.destination_ = TEST_STRING_VALUE;
493 routeTable.gateway_ = TEST_STRING_VALUE;
494 routeTable.mask_ = TEST_STRING_VALUE;
495 routeTable.iface_ = TEST_STRING_VALUE;
496 routeTable.flags_ = TEST_STRING_VALUE;
497 routeTable.metric_ = TEST_UINT32_VALUE;
498 routeTable.ref_ = TEST_UINT32_VALUE;
499 routeTable.use_ = TEST_UINT32_VALUE;
501 auto ret = routeTable.Marshalling(parcel);
[all …]
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dnet_diag_wrapper.cpp474 NetDiagRouteTable routeTable; in ExtractRouteTableInfo() local
475 routeTable.destination_ = match[dstPos].str(); in ExtractRouteTableInfo()
476 routeTable.gateway_ = match[gatewayPos].str(); in ExtractRouteTableInfo()
477 routeTable.mask_ = match[maskPos].str(); in ExtractRouteTableInfo()
478 routeTable.flags_ = match[flagsPos].str(); in ExtractRouteTableInfo()
479 routeTable.metric_ = static_cast<uint16_t>(CommonUtils::StrToUint(match[metricPos].str())); in ExtractRouteTableInfo()
480 routeTable.ref_ = static_cast<uint16_t>(CommonUtils::StrToUint(match[refPos].str())); in ExtractRouteTableInfo()
481 routeTable.use_ = static_cast<uint16_t>(CommonUtils::StrToUint(match[usePos].str())); in ExtractRouteTableInfo()
482 routeTable.iface_ = match[ifacePos].str(); in ExtractRouteTableInfo()
483 routeTables.push_back(routeTable); in ExtractRouteTableInfo()
/ohos5.0/foundation/communication/netmanager_base/interfaces/innerkits/netmanagernative/include/
H A Dnetsys_net_diag_data.h91 static bool Unmarshalling(Parcel &parcel, NetDiagRouteTable &routeTable);
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/include/manager/
H A Droute_manager.h41 uint32_t routeTable; member
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/manager/
H A Droute_manager.cpp105 routeInfo.routeTable = ROUTE_VNIC_TABLE; in UpdateVnicRoute()
945 if (int32_t ret = nlmsg.AddAttr32(RTA_TABLE, routeInfo.routeTable)) { in SendRouteToKernel()
1012 routeInfo.routeTable = table; in SetRouteInfo()
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/
H A Dnetsys_native_service_stub.cpp1417 for (const auto &routeTable : routeTables) { in CmdNetDiagGetRouteTable() local
1418 if (!routeTable.Marshalling(reply)) { in CmdNetDiagGetRouteTable()