Home
last modified time | relevance | path

Searched refs:ifIndex (Results 1 – 21 of 21) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_congestion/platform/unix/qdisc/
H A Dnstackx_qdisc.c54 static int32_t CheckTcMsgRecv(struct tcmsg *tcMsgRecv, int32_t ifIndex, int32_t protocol) in CheckTcMsgRecv() argument
56 if (tcMsgRecv->tcm_ifindex != ifIndex || tcMsgRecv->tcm_parent != (uint32_t)protocol) { in CheckTcMsgRecv()
67 int32_t ifIndex = qdiscArg->ifIndex; in ProcessQdiscInfo() local
82 if (CheckTcMsgRecv(tcMsgRecv, ifIndex, protocol) != NSTACKX_EOK) { in ProcessQdiscInfo()
107 qdiscArg.ifIndex = (int32_t)if_nametoindex(devName); in GetQdiscUsedLength()
120 ret = SendNetlinkRequest(sockFd, qdiscArg.ifIndex, RTM_GETQDISC); in GetQdiscUsedLength()
H A Dnstackx_nlmsg.c51 int32_t SendNetlinkRequest(int32_t nlSockFd, int32_t ifIndex, uint16_t type) in SendNetlinkRequest() argument
54 if (nlSockFd < 0 || ifIndex < 0) { in SendNetlinkRequest()
59 t.tcm_ifindex = ifIndex; in SendNetlinkRequest()
/ohos5.0/foundation/communication/netmanager_base/test/netsysbpfstats/unittest/netsys_bpf_stats_test/
H A Dnetsys_bpf_stats_test.cpp202 auto ifIndex = if_nametoindex(TEST_IFACE_NAME_WLAN0); variable
213 auto ret = ifaceStatsMap.Write(ifIndex, ifaceStats, BPF_ANY);
237 ret = ifaceStatsMap.Delete(ifIndex);
252 key1.ifIndex = TEST_UID_IF1;
258 key2.ifIndex = TEST_UID_IF2;
311 key1.ifIndex = TEST_UID_IF1;
331 key1.ifIndex = TEST_UID_IF1;
337 key2.ifIndex = TEST_UID_IF2;
358 key1.ifIndex = TEST_UID_IF1;
364 key2.ifIndex = TEST_UID_IF2;
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/
H A Dbpf_stats.cpp118 char *pName = if_indextoname(k.ifIndex, if_name); in GetAllSimStatsInfo()
166 char *pName = if_indextoname(k.ifIndex, if_name); in GetAllStatsInfo()
210 auto ifIndex = if_nametoindex(interfaceName.c_str()); in GetIfaceStats() local
211 if (ifIndex <= 0) { in GetIfaceStats()
216 if (ifaceStatsMap.Read(ifIndex, ifaceStats) < 0) { in GetIfaceStats()
H A Dnetsys.c316 app_uid_sim_stats_key key_sim = {.uId = sock_uid, .ifIndex = skb->ifindex, in bpf_cgroup_skb_uid_ingress()
330 app_uid_if_stats_key key = {.uId = sock_uid, .ifIndex = skb->ifindex}; in bpf_cgroup_skb_uid_ingress()
407 app_uid_sim_stats_key key_sim = {.uId = sock_uid, .ifIndex = skb->ifindex, in bpf_cgroup_skb_uid_egress()
421 app_uid_if_stats_key key = {.uId = sock_uid, .ifIndex = skb->ifindex}; in bpf_cgroup_skb_uid_egress()
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/include/manager/
H A Dtraffic_manager.h27 unsigned int ifIndex = 0; member
35 … os << "iface: " << parcel.iface << "ifIndex: " << parcel.ifIndex << "rxBytes: " << parcel.rxBytes
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dclat_utils.cpp344 int AddFilterAndBindPacketSocket(const int sock, const in6_addr *const addr, const int ifIndex) in AddFilterAndBindPacketSocket() argument
372 .sll_ifindex = ifIndex, in AddFilterAndBindPacketSocket()
383 int32_t ConfigureReadSocket(int sockFd, const std::string &addrStr, int ifIndex) in ConfigureReadSocket() argument
396 int ret = AddFilterAndBindPacketSocket(sockFd, &addr, ifIndex); in ConfigureReadSocket()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_congestion/platform/unix/
H A Dnstackx_qdisc.h30 int32_t ifIndex; member
H A Dnstackx_nlmsg.h53 int32_t SendNetlinkRequest(int32_t nlSockFd, int32_t ifIndex, uint16_t type);
/ohos5.0/drivers/hdf_core/framework/include/wifi/
H A Dhdf_wlan_chipdriver_manager.h119 struct HdfChipDriver *(*Build)(struct HdfWlanDevice *device, uint8_t ifIndex);
/ohos5.0/foundation/communication/netmanager_ext/services/mdnsmanager/src/
H A Dmdns_socket_listener.cpp441 int ifIndex = -1; in ReceiveInSock() local
444 ifIndex = reinterpret_cast<in_pktinfo *>(CMSG_DATA(cmptr))->ipi_ifindex; in ReceiveInSock()
447ifIndex = static_cast<int>(reinterpret_cast<in6_pktinfo *>(CMSG_DATA(cmptr))->ipi6_ifindex); in ReceiveInSock()
452 if (if_indextoname(static_cast<unsigned>(ifIndex), ifName) == nullptr) { in ReceiveInSock()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/include/
H A Dpcb.h63 FILLP_INT ifIndex; member
/ohos5.0/docs/zh-cn/device-dev/porting/
H A Dporting-smallchip-driver-oom.md183 …p;HdfWlanDevice&nbsp;\*device,&nbsp;uint8_t&nbsp;ifIndex) | 创建一个HdfChipDriver;输入参数中,device是设备信息,if…
H A Dstandard-system-porting-guide.md330 …p;HdfWlanDevice&nbsp;\*device,&nbsp;uint8_t&nbsp;ifIndex) | 创建一个HdfChipDriver;输入参数中,device是设备信息,if…
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/
H A Dbpf_def.h53 __u32 ifIndex; member
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/
H A Dclat_utils.h85 int32_t ConfigureReadSocket(const int sockFd, const std::string &addrStr, int ifIndex);
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/manager/
H A Dtraffic_manager.cpp152 interfaceTrafficBytes.ifIndex = if_nametoindex(ifName.c_str()); in GetInterfaceTraffic()
/ohos5.0/docs/en/device-dev/porting/
H A Dporting-smallchip-driver-oom.md183 …;uint8_t&nbsp;ifIndex) | Creates an **HdfChipDriver**. In the input parameters, **device** indicat…
H A Dstandard-system-porting-guide.md330 …vice, uint8_t ifIndex) | Creates an **HdfChipDriver**. In the input parameters, **device** indicat…
/ohos5.0/docs/zh-cn/device-dev/driver/
H A Ddriver-peripherals-external-des.md317 static struct HdfChipDriver *BuildHi3881Driver(struct HdfWlanDevice *device, uint8_t ifIndex)
324 (void)ifIndex;
/ohos5.0/docs/en/device-dev/driver/
H A Ddriver-peripherals-external-des.md317 static struct HdfChipDriver *BuildHi3881Driver(struct HdfWlanDevice *device, uint8_t ifIndex)
324 (void)ifIndex;