Home
last modified time | relevance | path

Searched refs:ifi (Results 1 – 22 of 22) sorted by relevance

/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c85 struct ifi_info *ifi, *ifihead, **ifipnext, *ifipold, **ifiptr; in get_ifi_info_linuxv6() local
121 ifi = (struct ifi_info*)calloc(1, sizeof(struct ifi_info)); in get_ifi_info_linuxv6()
122 if (ifi == NULL) { in get_ifi_info_linuxv6()
128 *ifipnext = ifi; /* prev points to this new one */ in get_ifi_info_linuxv6()
129 ifipnext = &ifi->ifi_next; /* pointer to next one goes here */ in get_ifi_info_linuxv6()
143 ifi->ifi_addr = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6()
144 if (ifi->ifi_addr == NULL) { in get_ifi_info_linuxv6()
147 memcpy(ifi->ifi_addr, res0->ai_addr, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6()
152 ifi->ifi_netmask = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6()
153 if (ifi->ifi_addr == NULL) { in get_ifi_info_linuxv6()
[all …]
/external/android-clat/
Dsetif.c103 struct ifinfomsg ifi; in if_up() local
106 memset(&ifi, 0, sizeof(ifi)); in if_up()
107 if (!(ifi.ifi_index = if_nametoindex(ifname))) { in if_up()
111 ifi.ifi_change = IFF_UP; in if_up()
112 ifi.ifi_flags = IFF_UP; in if_up()
114 msg = nlmsg_alloc_ifinfo(RTM_SETLINK, NLM_F_ACK | NLM_F_REQUEST | NLM_F_ROOT, &ifi); in if_up()
Dnetlink_msg.c93 struct nl_msg *nlmsg_alloc_ifinfo(uint16_t type, uint16_t flags, struct ifinfomsg *ifi) { in nlmsg_alloc_ifinfo() argument
94 return nlmsg_alloc_generic(type, flags, ifi, sizeof(*ifi)); in nlmsg_alloc_ifinfo()
Dnetlink_msg.h23 struct nl_msg *nlmsg_alloc_ifinfo(uint16_t type, uint16_t flags, struct ifinfomsg *ifi);
/external/iproute2/lib/
Dll_map.c51 struct ifinfomsg *ifi = NLMSG_DATA(n); in ll_remember_index() local
58 if (n->nlmsg_len < NLMSG_LENGTH(sizeof(ifi))) in ll_remember_index()
62 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), IFLA_PAYLOAD(n)); in ll_remember_index()
66 h = ifi->ifi_index & (IDXMAP_SIZE - 1); in ll_remember_index()
68 if (im->index == ifi->ifi_index) in ll_remember_index()
76 im->index = ifi->ifi_index; in ll_remember_index()
80 im->type = ifi->ifi_type; in ll_remember_index()
81 im->flags = ifi->ifi_flags; in ll_remember_index()
/external/dhcpcd/
Dif-linux.c344 struct ifinfomsg *ifi; in link_netlink() local
357 if ((size_t)len < sizeof(*ifi)) { in link_netlink()
361 ifi = NLMSG_DATA(nlm); in link_netlink()
362 if (ifi->ifi_flags & IFF_LOOPBACK) in link_netlink()
364 rta = (struct rtattr *) ((char *)ifi + NLMSG_ALIGN(sizeof(*ifi))); in link_netlink()
365 len = NLMSG_PAYLOAD(nlm, sizeof(*ifi)); in link_netlink()
372 ifi->ifi_change == 0) in link_netlink()
391 if (ifi->ifi_flags & IFF_MASTER && !(ifi->ifi_flags & IFF_LOWER_UP)) { in link_netlink()
396 handle_carrier(ifi->ifi_flags & IFF_RUNNING ? 1 : -1, in link_netlink()
397 ifi->ifi_flags, ifn); in link_netlink()
/external/wpa_supplicant_8/src/drivers/
Dnetlink.h17 void (*newlink_cb)(void *ctx, struct ifinfomsg *ifi, u8 *buf,
19 void (*dellink_cb)(void *ctx, struct ifinfomsg *ifi, u8 *buf,
Ddriver_wext.c629 static void wpa_driver_wext_event_rtm_newlink(void *ctx, struct ifinfomsg *ifi, in wpa_driver_wext_event_rtm_newlink() argument
637 if (!wpa_driver_wext_own_ifindex(drv, ifi->ifi_index, buf, len)) { in wpa_driver_wext_event_rtm_newlink()
639 ifi->ifi_index); in wpa_driver_wext_event_rtm_newlink()
645 drv->operstate, ifi->ifi_flags, in wpa_driver_wext_event_rtm_newlink()
646 (ifi->ifi_flags & IFF_UP) ? "[UP]" : "", in wpa_driver_wext_event_rtm_newlink()
647 (ifi->ifi_flags & IFF_RUNNING) ? "[RUNNING]" : "", in wpa_driver_wext_event_rtm_newlink()
648 (ifi->ifi_flags & IFF_LOWER_UP) ? "[LOWER_UP]" : "", in wpa_driver_wext_event_rtm_newlink()
649 (ifi->ifi_flags & IFF_DORMANT) ? "[DORMANT]" : ""); in wpa_driver_wext_event_rtm_newlink()
651 if (!drv->if_disabled && !(ifi->ifi_flags & IFF_UP)) { in wpa_driver_wext_event_rtm_newlink()
657 if (drv->if_disabled && (ifi->ifi_flags & IFF_UP)) { in wpa_driver_wext_event_rtm_newlink()
[all …]
Dnetlink.c24 void (*cb)(void *ctx, struct ifinfomsg *ifi, in netlink_receive_link() argument
Ddriver_nl80211.c1216 struct ifinfomsg *ifi, in wpa_driver_nl80211_event_rtm_newlink() argument
1228 drv = nl80211_find_drv(global, ifi->ifi_index, buf, len); in wpa_driver_nl80211_event_rtm_newlink()
1231 ifi->ifi_index); in wpa_driver_nl80211_event_rtm_newlink()
1271 ifi->ifi_index, ifname, extra, ifi->ifi_family, in wpa_driver_nl80211_event_rtm_newlink()
1272 ifi->ifi_flags, in wpa_driver_nl80211_event_rtm_newlink()
1273 (ifi->ifi_flags & IFF_UP) ? "[UP]" : "", in wpa_driver_nl80211_event_rtm_newlink()
1274 (ifi->ifi_flags & IFF_RUNNING) ? "[RUNNING]" : "", in wpa_driver_nl80211_event_rtm_newlink()
1275 (ifi->ifi_flags & IFF_LOWER_UP) ? "[LOWER_UP]" : "", in wpa_driver_nl80211_event_rtm_newlink()
1276 (ifi->ifi_flags & IFF_DORMANT) ? "[DORMANT]" : ""); in wpa_driver_nl80211_event_rtm_newlink()
1278 if (!drv->if_disabled && !(ifi->ifi_flags & IFF_UP)) { in wpa_driver_nl80211_event_rtm_newlink()
[all …]
Ddriver_madwifi.c983 madwifi_wireless_event_rtm_newlink(void *ctx, struct ifinfomsg *ifi, in madwifi_wireless_event_rtm_newlink() argument
990 if (ifi->ifi_index != drv->ifindex) in madwifi_wireless_event_rtm_newlink()
Ddriver_atheros.c1557 struct ifinfomsg *ifi, u8 *buf, size_t len) in atheros_wireless_event_rtm_newlink() argument
1563 if (ifi->ifi_index != drv->ifindex) in atheros_wireless_event_rtm_newlink()
Ddriver_hostap.c870 struct ifinfomsg *ifi, in hostapd_wireless_event_rtm_newlink() argument
/external/iproute2/ip/
Dipaddress.c364 struct ifinfomsg *ifi = NLMSG_DATA(n); in print_linkinfo() local
372 len -= NLMSG_LENGTH(sizeof(*ifi)); in print_linkinfo()
376 if (filter.ifindex && ifi->ifi_index != filter.ifindex) in print_linkinfo()
378 if (filter.up && !(ifi->ifi_flags&IFF_UP)) in print_linkinfo()
381 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); in print_linkinfo()
383 fprintf(stderr, "BUG: device with ifindex %d has nil ifname\n", ifi->ifi_index); in print_linkinfo()
399 fprintf(fp, "%d: %s", ifi->ifi_index, in print_linkinfo()
415 print_link_flags(fp, ifi->ifi_flags, m_flag); in print_linkinfo()
438 fprintf(fp, " link/%s ", ll_type_n2a(ifi->ifi_type, b1, sizeof(b1))); in print_linkinfo()
443 ifi->ifi_type, in print_linkinfo()
[all …]
Dlink_gre.c50 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in gre_parse_opt() local
69 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); in gre_parse_opt()
73 req.i.ifi_index = ifi->ifi_index; in gre_parse_opt()
83 len -= NLMSG_LENGTH(sizeof(*ifi)); in gre_parse_opt()
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
Dp3-generic-lambda-1y.cpp47 static int ifi(int i) { return i; } in main() function
53 l4(&Local::ifi); in main()
/external/libnl/lib/route/
Dlink.c260 struct ifinfomsg *ifi; in link_msg_parser() local
272 err = nlmsg_parse(n, sizeof(*ifi), tb, IFLA_MAX, link_policy); in link_msg_parser()
283 ifi = nlmsg_data(n); in link_msg_parser()
284 link->l_family = ifi->ifi_family; in link_msg_parser()
285 link->l_arptype = ifi->ifi_type; in link_msg_parser()
286 link->l_index = ifi->ifi_index; in link_msg_parser()
287 link->l_flags = ifi->ifi_flags; in link_msg_parser()
288 link->l_change = ifi->ifi_change; in link_msg_parser()
866 struct ifinfomsg ifi = { in rtnl_link_build_change_request() local
872 ifi.ifi_flags = old->l_flags & ~tmpl->l_flag_mask; in rtnl_link_build_change_request()
[all …]
/external/iproute2/misc/
Difstat.c84 struct ifinfomsg *ifi = NLMSG_DATA(m); in get_nlmsg() local
93 len -= NLMSG_LENGTH(sizeof(*ifi)); in get_nlmsg()
97 if (!(ifi->ifi_flags&IFF_UP)) in get_nlmsg()
100 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); in get_nlmsg()
107 n->ifindex = ifi->ifi_index; in get_nlmsg()
/external/wpa_supplicant_8/src/ap/
Dvlan_init.c617 struct ifinfomsg *ifi; in vlan_read_ifnames() local
621 if (len < sizeof(*ifi)) in vlan_read_ifnames()
624 ifi = NLMSG_DATA(h); in vlan_read_ifnames()
632 attr = (struct rtattr *) (((char *) ifi) + nlmsg_len); in vlan_read_ifnames()
/external/mdnsresponder/mDNSShared/
Duds_daemon.c231 mDNSu32 ifi; // Note: This field is in NETWORK byte order member
430 …(*rep)->rhdr->ifi = dnssd_htonl(mDNSPlatformInterfaceIndexfromInterfaceID(&mDNSStorage, id, mDNS… in GenerateNTDResponse()
473 …(*rep)->rhdr->ifi = dnssd_htonl(mDNSPlatformInterfaceIndexfromInterfaceID(&mDNSStorage, id, mDNS… in GenerateBonjourBrowserResponse()
905 …reply->rhdr->ifi = dnssd_htonl(mDNSPlatformInterfaceIndexfromInterfaceID(m, rr->resrec.Interface… in regrecord_callback()
2263 …rep->rhdr->ifi = dnssd_htonl(mDNSPlatformInterfaceIndexfromInterfaceID(m, answer->InterfaceID, m… in resolve_result_callback()
2820 …rep->rhdr->ifi = dnssd_htonl(mDNSPlatformInterfaceIndexfromInterfaceID(m, answer->InterfaceID, m… in queryrecord_result_callback()
3062 const char *domain, DNSServiceFlags flags, mDNSu32 ifi, DNSServiceErrorType err) in format_enumeration_reply() argument
3075 reply->rhdr->ifi = dnssd_htonl(ifi); in format_enumeration_reply()
3270 …rep->rhdr->ifi = dnssd_htonl(mDNSPlatformInterfaceIndexfromInterfaceID(m, n->InterfaceID, mDNSfa… in port_mapping_create_request_callback()
/external/lldb/source/Symbol/
DClangASTType.cpp4493 for (IndirectFieldVector::iterator ifi = indirect_fields.begin(), ife = indirect_fields.end(); in BuildIndirectFields() local
4494 ifi < ife; in BuildIndirectFields()
4495 ++ifi) in BuildIndirectFields()
4497 record_decl->addDecl(*ifi); in BuildIndirectFields()
/external/chromium_org/third_party/WebKit/PerformanceTests/Parser/resources/
Dfinal-url-en41838 http://www.filminflorida.com/ifi/g.asp
48712 http://www.ifi.ie/links.asp