Home
last modified time | relevance | path

Searched refs:ifa (Results 1 – 25 of 34) sorted by relevance

12

/third_party/musl/porting/liteos_a/user/src/network/
Dgetifaddrs.c37 struct ifaddrs ifa; member
119 struct ifaddrmsg *ifa = NLMSG_DATA(h); in netlink_msg_to_ifaddr() local
130 for (ifs0 = ctx->hash[ifa->ifa_index % IFADDRS_HASH_SIZE]; ifs0; ifs0 = ifs0->hash_next) in netlink_msg_to_ifaddr()
131 if (ifs0->index == ifa->ifa_index) in netlink_msg_to_ifaddr()
141 ifs->ifa.ifa_flags = ifi->ifi_flags; in netlink_msg_to_ifaddr()
148 ifs->ifa.ifa_name = ifs->name; in netlink_msg_to_ifaddr()
152 …copy_lladdr(&ifs->ifa.ifa_addr, &ifs->addr, RTA_DATA(rta), RTA_DATALEN(rta), ifi->ifi_index, ifi->… in netlink_msg_to_ifaddr()
155 …copy_lladdr(&ifs->ifa.ifa_broadaddr, &ifs->ifu, RTA_DATA(rta), RTA_DATALEN(rta), ifi->ifi_index, i… in netlink_msg_to_ifaddr()
158 ifs->ifa.ifa_data = (void*)(ifs+1); in netlink_msg_to_ifaddr()
159 memcpy(ifs->ifa.ifa_data, RTA_DATA(rta), RTA_DATALEN(rta)); in netlink_msg_to_ifaddr()
[all …]
Dif_nameindex.c40 struct ifaddrmsg *ifa = NLMSG_DATA(h); in netlink_msg_to_nameindex() local
41 index = ifa->ifa_index; in netlink_msg_to_nameindex()
43 rta = NLMSG_RTA(h, sizeof(*ifa)); in netlink_msg_to_nameindex()
/third_party/musl/src/network/
Dgetifaddrs.c34 struct ifaddrs ifa; member
110 struct ifaddrmsg *ifa = NLMSG_DATA(h); in netlink_msg_to_ifaddr() local
121 for (ifs0 = ctx->hash[ifa->ifa_index % IFADDRS_HASH_SIZE]; ifs0; ifs0 = ifs0->hash_next) in netlink_msg_to_ifaddr()
122 if (ifs0->index == ifa->ifa_index) in netlink_msg_to_ifaddr()
132 ifs->ifa.ifa_flags = ifi->ifi_flags; in netlink_msg_to_ifaddr()
139 ifs->ifa.ifa_name = ifs->name; in netlink_msg_to_ifaddr()
143 …copy_lladdr(&ifs->ifa.ifa_addr, &ifs->addr, RTA_DATA(rta), RTA_DATALEN(rta), ifi->ifi_index, ifi->… in netlink_msg_to_ifaddr()
146 …copy_lladdr(&ifs->ifa.ifa_broadaddr, &ifs->ifu, RTA_DATA(rta), RTA_DATALEN(rta), ifi->ifi_index, i… in netlink_msg_to_ifaddr()
149 ifs->ifa.ifa_data = (void*)(ifs+1); in netlink_msg_to_ifaddr()
150 memcpy(ifs->ifa.ifa_data, RTA_DATA(rta), RTA_DATALEN(rta)); in netlink_msg_to_ifaddr()
[all …]
Dif_nameindex.c39 struct ifaddrmsg *ifa = NLMSG_DATA(h); in netlink_msg_to_nameindex() local
40 index = ifa->ifa_index; in netlink_msg_to_nameindex()
42 rta = NLMSG_RTA(h, sizeof(*ifa)); in netlink_msg_to_nameindex()
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_bsd_addr.c213 sctp_gather_internal_ifa_flags(struct sctp_ifa *ifa) argument
219 sctp_gather_internal_ifa_flags(struct sctp_ifa *ifa) argument
223 ifa6 = (struct in6_ifaddr *)ifa->ifa;
224 ifa->flags = ifa6->ia6_flags;
226 if (ifa->flags &
228 ifa->localifa_flags |= SCTP_ADDR_IFA_UNUSEABLE;
230 ifa->localifa_flags &= ~SCTP_ADDR_IFA_UNUSEABLE;
233 ifa->localifa_flags &= ~SCTP_ADDR_IFA_UNUSEABLE;
235 if (ifa->flags &
239 ifa->localifa_flags |= SCTP_ADDR_IFA_UNUSEABLE;
[all …]
Dsctp_asconf.c1255 sctp_asconf_queue_mgmt(struct sctp_tcb *stcb, struct sctp_ifa *ifa, in sctp_asconf_queue_mgmt() argument
1263 if (sctp_asconf_addr_match(aa, &ifa->address.sa) == 0) in sctp_asconf_queue_mgmt()
1280 sctp_del_local_addr_restricted(stcb, ifa); in sctp_asconf_queue_mgmt()
1291 sctp_del_local_addr_restricted(stcb, aa->ifa); in sctp_asconf_queue_mgmt()
1311 aa->ifa = ifa; in sctp_asconf_queue_mgmt()
1312 atomic_add_int(&ifa->refcount, 1); in sctp_asconf_queue_mgmt()
1314 switch (ifa->address.sa.sa_family) { in sctp_asconf_queue_mgmt()
1320 sin6 = &ifa->address.sin6; in sctp_asconf_queue_mgmt()
1335 sin = &ifa->address.sin; in sctp_asconf_queue_mgmt()
1348 sctp_free_ifa(ifa); in sctp_asconf_queue_mgmt()
[all …]
Dsctp_bsd_addr.h54 void sctp_gather_internal_ifa_flags(struct sctp_ifa *ifa);
64 void sctp_addr_change(struct ifaddr *ifa, int cmd);
Dsctp_pcb.c549 uint32_t ifn_type, const char *if_name, void *ifa, argument
680 sctp_ifap->ifa = ifa;
801 wi->ifa = sctp_ifap;
907 wi->ifa = sctp_ifap;
1076 if (laddr->ifa->localifa_flags & SCTP_BEING_DELETED) {
1080 if (sctp_is_addr_restricted(stcb, laddr->ifa) &&
1081 (!sctp_is_addr_pending(stcb, laddr->ifa))) {
1088 if (laddr->ifa->address.sa.sa_family != to->sa_family) {
1097 sin = &laddr->ifa->address.sin;
1111 sin6 = &laddr->ifa->address.sin6;
[all …]
Dsctp_output.c1895 sctp_is_address_in_scope(struct sctp_ifa *ifa, in sctp_is_address_in_scope() argument
1900 (ifa->ifn_p) && SCTP_IFN_IS_IFT_LOOP(ifa->ifn_p)) { in sctp_is_address_in_scope()
1906 switch (ifa->address.sa.sa_family) { in sctp_is_address_in_scope()
1912 sin = &ifa->address.sin; in sctp_is_address_in_scope()
1936 sctp_gather_internal_ifa_flags(ifa); in sctp_is_address_in_scope()
1938 if (ifa->localifa_flags & SCTP_ADDR_IFA_UNUSEABLE) { in sctp_is_address_in_scope()
1942 sin6 = &ifa->address.sin6; in sctp_is_address_in_scope()
1974 sctp_add_addr_to_mbuf(struct mbuf *m, struct sctp_ifa *ifa, uint16_t *len) in sctp_add_addr_to_mbuf() argument
1982 switch (ifa->address.sa.sa_family) { in sctp_add_addr_to_mbuf()
2016 switch (ifa->address.sa.sa_family) { in sctp_add_addr_to_mbuf()
[all …]
Dsctp_output.h61 sctp_is_address_in_scope(struct sctp_ifa *ifa,
66 sctp_is_addr_in_ep(struct sctp_inpcb *inp, struct sctp_ifa *ifa);
Dsctp_pcb.h109 void *ifa; /* pointer to ifa, needed for flag member
126 struct sctp_ifa *ifa; member
715 void *ifa, struct sockaddr *addr, uint32_t ifa_flags,
Dsctp_usrreq.c1702 if (sctp_is_addr_restricted(stcb, laddr->ifa)) {
1707 sa_len = laddr->ifa->address.sa.sa_len;
1709 switch (laddr->ifa->address.sa.sa_family) {
1734 if (sctp_fill_user_address(addr, &laddr->ifa->address.sa))
1736 switch (laddr->ifa->address.sa.sa_family) {
1852 switch (laddr->ifa->address.sa.sa_family) {
6707 struct sctp_ifa *ifa; local
6726 ifa = sctp_find_ifa_by_addr(addr, stcb->asoc.vrf_id, SCTP_ADDR_NOT_LOCKED);
6727 if (ifa == NULL) {
6738 if (laddr->ifa == NULL) {
[all …]
/third_party/gstreamer/gstreamer/libs/gst/helpers/
Dgst-ptp-helper.c281 struct ifaddrs *ifaddr, *ifa; in setup_sockets()
288 for (ifa = ifaddr; ifa; ifa = ifa->ifa_next) { in setup_sockets()
289 if ((ifa->ifa_flags & IFF_LOOPBACK)) in setup_sockets()
292 if (!ifa->ifa_addr || ifa->ifa_addr->sa_family != AF_LINK) in setup_sockets()
295 g_ptr_array_add (arr, g_strdup (ifa->ifa_name)); in setup_sockets()
370 struct ifaddrs *ifaddr, *ifa; in setup_sockets() local
373 for (ifa = ifaddr; ifa; ifa = ifa->ifa_next) { in setup_sockets()
374 struct sockaddr_dl *sdl = (struct sockaddr_dl *) ifa->ifa_addr; in setup_sockets()
377 if ((ifa->ifa_flags & IFF_LOOPBACK)) in setup_sockets()
380 if (!ifa->ifa_addr || ifa->ifa_addr->sa_family != AF_LINK) in setup_sockets()
[all …]
/third_party/toybox/toys/net/
Dping.c90 struct ifaddrs *ifa, *ifa2 = 0; in ping_main() local
132 for (ifa = ifa2; ifa; ifa = ifa->ifa_next) { in ping_main()
133 if (!ifa->ifa_addr || ifa->ifa_addr->sa_family!=ai->ai_family in ping_main()
134 || strcmp(ifa->ifa_name, TT.I)) continue; in ping_main()
135 sa = (void *)ifa->ifa_addr; in ping_main()
139 if (ifa) break; in ping_main()
/third_party/toybox/porting/liteos_a/toys/net/
Dping.c92 struct ifaddrs *ifa, *ifa2 = 0; in ping_main() local
136 for (ifa = ifa2; ifa; ifa = ifa->ifa_next) { in ping_main()
137 if (!ifa->ifa_addr || ifa->ifa_addr->sa_family!=ai->ai_family in ping_main()
138 || strcmp(ifa->ifa_name, TT.I)) continue; in ping_main()
139 sa = (void *)ifa->ifa_addr; in ping_main()
143 if (ifa) break; in ping_main()
/third_party/mindspore/mindspore/ccsrc/ps/core/
Dcomm_util.cc71 struct ifaddrs *ifa = nullptr; in GetAvailableInterfaceAndIP() local
78 for (ifa = if_address; ifa != nullptr; ifa = ifa->ifa_next) { in GetAvailableInterfaceAndIP()
79 if (ifa->ifa_addr == nullptr) { in GetAvailableInterfaceAndIP()
83 if (ifa->ifa_addr->sa_family == AF_INET && (ifa->ifa_flags & IFF_LOOPBACK) == 0) { in GetAvailableInterfaceAndIP()
85 void *sin_addr_ptr = &(reinterpret_cast<struct sockaddr_in *>(ifa->ifa_addr))->sin_addr; in GetAvailableInterfaceAndIP()
91 *interface = ifa->ifa_name; in GetAvailableInterfaceAndIP()
/third_party/grpc/src/core/lib/iomgr/
Dtcp_server_utils_posix_ifaddrs.cc96 struct ifaddrs* ifa = nullptr; in grpc_tcp_server_add_all_local_addrs() local
113 if (getifaddrs(&ifa) != 0 || ifa == nullptr) { in grpc_tcp_server_add_all_local_addrs()
116 for (ifa_it = ifa; ifa_it != nullptr; ifa_it = ifa_it->ifa_next) { in grpc_tcp_server_add_all_local_addrs()
163 freeifaddrs(ifa); in grpc_tcp_server_add_all_local_addrs()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Ddriver_bsd.c626 struct ifaddrs *ifaddrs, *ifa; in bsd_route_overflow() local
644 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) { in bsd_route_overflow()
645 if (ifa->ifa_addr == NULL || in bsd_route_overflow()
646 ifa->ifa_addr->sa_family != AF_LINK) in bsd_route_overflow()
648 sdl = (struct sockaddr_dl *) (void *) ifa->ifa_addr; in bsd_route_overflow()
649 drv = bsd_get_drvname(global, ifa->ifa_name); in bsd_route_overflow()
658 os_strlcpy(event.interface_status.ifname, ifa->ifa_name, in bsd_route_overflow()
680 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) { in bsd_route_overflow()
681 if (ifa->ifa_addr == NULL || in bsd_route_overflow()
682 ifa->ifa_addr->sa_family != AF_LINK) in bsd_route_overflow()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/
Duser_recv_thread.c98 struct ifaddrs *ifa, *ifas; in sctp_handle_ifamsg() local
109 for (ifa = ifas; ifa; ifa = ifa->ifa_next) { in sctp_handle_ifamsg()
110 if (index == if_nametoindex(ifa->ifa_name)) { in sctp_handle_ifamsg()
114 if (ifa == NULL) { in sctp_handle_ifamsg()
123 if_nametoindex(ifa->ifa_name), in sctp_handle_ifamsg()
125 ifa->ifa_name, in sctp_handle_ifamsg()
131 sctp_del_addr_from_vrf(SCTP_DEFAULT_VRFID, ifa->ifa_addr, in sctp_handle_ifamsg()
132 if_nametoindex(ifa->ifa_name), in sctp_handle_ifamsg()
133 ifa->ifa_name); in sctp_handle_ifamsg()
142 struct ifa_msghdr *ifa; in recv_function_route() local
[all …]
/third_party/grpc/test/core/iomgr/
Dtcp_server_posix_test.cc437 struct ifaddrs* ifa = nullptr; in main() local
459 if (getifaddrs(&ifa) != 0 || ifa == nullptr) { in main()
464 for (ifa_it = ifa; ifa_it != nullptr && dst_addrs->naddrs < MAX_ADDRS; in main()
484 freeifaddrs(ifa); in main()
485 ifa = nullptr; in main()
/third_party/libnl/lib/route/
Daddr.c201 struct ifaddrmsg *ifa; in addr_msg_parser() local
213 err = nlmsg_parse(nlh, sizeof(*ifa), tb, IFA_MAX, addr_policy); in addr_msg_parser()
217 ifa = nlmsg_data(nlh); in addr_msg_parser()
218 addr->a_family = family = ifa->ifa_family; in addr_msg_parser()
219 addr->a_prefixlen = ifa->ifa_prefixlen; in addr_msg_parser()
220 addr->a_scope = ifa->ifa_scope; in addr_msg_parser()
222 ifa->ifa_flags; in addr_msg_parser()
223 addr->a_ifindex = ifa->ifa_index; in addr_msg_parser()
/third_party/icu/icu4c/source/data/curr/
Dshi_Latn.txt217 "frank ṣifa",
221 "frank ṣifa bisaw",
/third_party/skia/third_party/externals/icu/source/data/curr/
Dshi_Latn.txt217 "frank ṣifa",
221 "frank ṣifa bisaw",
/third_party/flutter/skia/third_party/externals/icu/source/data/curr/
Dshi_Latn.txt216 "frank ṣifa",
220 "frank ṣifa bisaw",
/third_party/toybox/toys/pending/
Dip.c1003 struct ifaddrmsg *ifa = NLMSG_DATA(h); in print_addrinfo() local
1006 if ((len = h->nlmsg_len - NLMSG_LENGTH(sizeof(*ifa))) < 0) { in print_addrinfo()
1011 for (rta = IFA_RTA(ifa); RTA_OK(rta, len); rta=RTA_NEXT(rta, len)) in print_addrinfo()
1016 if ((addrinfo.scope ^ ifa->ifa_scope)&addrinfo.scopemask) return 0; in print_addrinfo()
1017 if (addrinfo.ifindex && addrinfo.ifindex != ifa->ifa_index) return 0; in print_addrinfo()
1019 if (flag_l && addrinfo.label && ifa->ifa_family == AF_INET6) return 0; in print_addrinfo()
1028 if (ifa->ifa_index == addrinfo.ifindex) { in print_addrinfo()
1039 if (!if_indextoname(ifa->ifa_index, lbuf)) perror_exit(NULL); in print_addrinfo()
1040 printf("%u: %s",ifa->ifa_index, lbuf); in print_addrinfo()
1043 sprintf(scope, " scope %s ", namefromRPDB(ifa->ifa_scope, RPDB_rtscopes)); in print_addrinfo()
[all …]

12