Searched refs:ifindex (Results 1 – 7 of 7) sorted by relevance
/ohos5.0/foundation/communication/dhcp/test/unittest/services/dhcp_client/ |
H A D | dhcp_function_test.cpp | 89 int ifindex; variable 91 ASSERT_EQ(GetLocalInterface(interface, &ifindex, hwaddr, NULL), DHCP_OPT_SUCCESS); 111 int ifindex = 0; variable 112 EXPECT_EQ(GetLocalInterface(interface, &ifindex, NULL, NULL), DHCP_OPT_FAILED); 114 EXPECT_EQ(GetLocalInterface(interface, &ifindex, hwaddr, NULL), DHCP_OPT_FAILED); 116 EXPECT_EQ(GetLocalInterface(interface, &ifindex, hwaddr, &ifaddr4), DHCP_OPT_SUCCESS); 117 EXPECT_EQ(GetLocalInterface(interface, &ifindex, hwaddr, &ifaddr4), DHCP_OPT_SUCCESS);
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/ |
H A D | netsys.c | 113 uint64_t ifindex = skb->ifindex; in socket_iface_stats() local 114 iface_stats_value *value_if = bpf_map_lookup_elem(&iface_stats_map, &ifindex); in socket_iface_stats() 117 bpf_map_update_elem(&iface_stats_map, &ifindex, &newValue, BPF_NOEXIST); in socket_iface_stats() 118 value_if = bpf_map_lookup_elem(&iface_stats_map, &ifindex); in socket_iface_stats() 316 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/dhcp/services/dhcp_client/src/ |
H A D | dhcp_ipv6_event.cpp | 87 int ifindex = -1; in parseNDRouteMessage() local 104 ifindex = *(reinterpret_cast<int32_t*>(RTA_DATA(rtaInfo))); in parseNDRouteMessage() 110 onIpv6RouteAddEvent(gateway, dst, ifindex); in parseNDRouteMessage()
|
H A D | dhcp_function.cpp | 145 int GetLocalInterface(const char *ifname, int *ifindex, unsigned char *hwaddr, uint32_t *ifaddr4) in GetLocalInterface() argument 177 *ifindex = iface.ifr_ifindex; in GetLocalInterface()
|
/ohos5.0/foundation/communication/netmanager_base/bpf/bpf_progs/ |
H A D | netstats.c | 121 uint32_t key = skb->ifindex; in bpf_socket_iface_ingress() 141 uint32_t key = skb->ifindex; in bpf_socket_iface_egress()
|
/ohos5.0/foundation/communication/dsoftbus/adapter/common/bus_center/network/ |
H A D | lnn_lwip_monitor.c | 25 char* lwip_if_indextoname(unsigned int ifindex, char *ifname);
|
/ohos5.0/foundation/communication/dhcp/services/dhcp_client/include/ |
H A D | dhcp_function.h | 30 int GetLocalInterface(const char *ifname, int *ifindex, unsigned char *hwaddr, uint32_t *ifaddr4);
|