/external/mdnsresponder/mDNSPosix/ |
D | mDNSUNP.c | 85 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/iproute2/ip/ |
D | iptoken.c | 50 struct ifinfomsg *ifi = NLMSG_DATA(n); in print_token() local 59 len -= NLMSG_LENGTH(sizeof(*ifi)); in print_token() 63 if (ifi->ifi_family != AF_INET6) in print_token() 65 if (ifi->ifi_index == 0) in print_token() 67 if (ifindex > 0 && ifi->ifi_index != ifindex) in print_token() 69 if (ifi->ifi_flags & (IFF_LOOPBACK | IFF_NOARP)) in print_token() 72 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); in print_token() 83 format_host(ifi->ifi_family, in print_token() 87 fprintf(fp, "dev %s ", ll_index_to_name(ifi->ifi_index)); in print_token() 129 struct ifinfomsg ifi; in iptoken_set() member [all …]
|
D | ipaddress.c | 603 struct ifinfomsg *ifi = NLMSG_DATA(n); in print_link_stats() local 606 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), in print_link_stats() 607 n->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi))); in print_link_stats() 616 struct ifinfomsg *ifi = NLMSG_DATA(n); in print_linkinfo_brief() local 626 len -= NLMSG_LENGTH(sizeof(*ifi)); in print_linkinfo_brief() 630 if (filter.ifindex && ifi->ifi_index != filter.ifindex) in print_linkinfo_brief() 632 if (filter.up && !(ifi->ifi_flags&IFF_UP)) in print_linkinfo_brief() 635 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); in print_linkinfo_brief() 637 fprintf(stderr, "BUG: device with ifindex %d has nil ifname\n", ifi->ifi_index); in print_linkinfo_brief() 699 ifi->ifi_type, in print_linkinfo_brief() [all …]
|
D | link_vti6.c | 50 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in vti6_parse_opt() local 64 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); in vti6_parse_opt() 68 req.i.ifi_index = ifi->ifi_index; in vti6_parse_opt() 78 len -= NLMSG_LENGTH(sizeof(*ifi)); in vti6_parse_opt()
|
D | link_vti.c | 54 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in vti_parse_opt() local 68 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); in vti_parse_opt() 72 req.i.ifi_index = ifi->ifi_index; in vti_parse_opt() 82 len -= NLMSG_LENGTH(sizeof(*ifi)); in vti_parse_opt()
|
D | link_ip6tnl.c | 66 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in ip6tunnel_parse_opt() local 86 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); in ip6tunnel_parse_opt() 90 req.i.ifi_index = ifi->ifi_index; in ip6tunnel_parse_opt() 100 len -= NLMSG_LENGTH(sizeof(*ifi)); in ip6tunnel_parse_opt()
|
D | link_gre6.c | 68 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in gre_parse_opt() local 88 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); in gre_parse_opt() 92 req.i.ifi_index = ifi->ifi_index; in gre_parse_opt() 102 len -= NLMSG_LENGTH(sizeof(*ifi)); in gre_parse_opt()
|
D | link_iptnl.c | 61 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in iptunnel_parse_opt() local 88 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); in iptunnel_parse_opt() 92 req.i.ifi_index = ifi->ifi_index; in iptunnel_parse_opt() 102 len -= NLMSG_LENGTH(sizeof(*ifi)); in iptunnel_parse_opt()
|
D | link_gre.c | 58 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in gre_parse_opt() local 82 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); in gre_parse_opt() 86 req.i.ifi_index = ifi->ifi_index; in gre_parse_opt() 96 len -= NLMSG_LENGTH(sizeof(*ifi)); in gre_parse_opt()
|
/external/avahi/avahi-autoipd/ |
D | iface-linux.c | 108 struct ifinfomsg *ifi; in process_nlmsg() local 109 ifi = NLMSG_DATA(n); in process_nlmsg() 111 if (ifi->ifi_family != AF_UNSPEC || (int) ifi->ifi_index != ifindex) in process_nlmsg() 121 if ((ifi->ifi_flags & IFF_LOOPBACK) || in process_nlmsg() 122 (ifi->ifi_flags & IFF_NOARP) || in process_nlmsg() 123 ifi->ifi_type != ARPHRD_ETHER) { in process_nlmsg() 252 struct ifinfomsg *ifi; in iface_get_initial_state() local 262 n->nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); in iface_get_initial_state() 268 ifi = NLMSG_DATA(n); in iface_get_initial_state() 269 ifi->ifi_family = AF_UNSPEC; in iface_get_initial_state() [all …]
|
/external/iproute2/lib/ |
D | ll_map.c | 86 struct ifinfomsg *ifi = NLMSG_DATA(n); in ll_remember_index() local 93 if (n->nlmsg_len < NLMSG_LENGTH(sizeof(ifi))) in ll_remember_index() 96 im = ll_get_by_index(ifi->ifi_index); in ll_remember_index() 107 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), IFLA_PAYLOAD(n)); in ll_remember_index() 120 im->flags = ifi->ifi_flags; in ll_remember_index() 127 im->index = ifi->ifi_index; in ll_remember_index() 129 im->type = ifi->ifi_type; in ll_remember_index() 130 im->flags = ifi->ifi_flags; in ll_remember_index() 132 h = ifi->ifi_index & (IDXMAP_SIZE - 1); in ll_remember_index()
|
/external/android-clat/ |
D | setif.c | 103 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()
|
D | netlink_msg.c | 93 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()
|
D | netlink_msg.h | 23 struct nl_msg *nlmsg_alloc_ifinfo(uint16_t type, uint16_t flags, struct ifinfomsg *ifi);
|
/external/wpa_supplicant_8/src/ap/ |
D | vlan_full.c | 589 struct ifinfomsg *ifi; in vlan_read_ifnames() local 594 if (len < sizeof(*ifi)) in vlan_read_ifnames() 597 ifi = NLMSG_DATA(h); in vlan_read_ifnames() 605 attr = (struct rtattr *) (((char *) ifi) + nlmsg_len); in vlan_read_ifnames() 635 ifi->ifi_index, ifname, ifi->ifi_family, ifi->ifi_flags, in vlan_read_ifnames() 636 (ifi->ifi_flags & IFF_UP) ? "[UP]" : "", in vlan_read_ifnames() 637 (ifi->ifi_flags & IFF_RUNNING) ? "[RUNNING]" : "", in vlan_read_ifnames() 638 (ifi->ifi_flags & IFF_LOWER_UP) ? "[LOWER_UP]" : "", in vlan_read_ifnames() 639 (ifi->ifi_flags & IFF_DORMANT) ? "[DORMANT]" : ""); in vlan_read_ifnames()
|
/external/iproute2/bridge/ |
D | link.c | 104 struct ifinfomsg *ifi = NLMSG_DATA(n); in print_linkinfo() local 108 len -= NLMSG_LENGTH(sizeof(*ifi)); in print_linkinfo() 114 if (!(ifi->ifi_family == AF_BRIDGE || ifi->ifi_family == AF_UNSPEC)) in print_linkinfo() 117 if (filter_index && filter_index != ifi->ifi_index) in print_linkinfo() 120 parse_rtattr_flags(tb, IFLA_MAX, IFLA_RTA(ifi), len, NLA_F_NESTED); in print_linkinfo() 130 fprintf(fp, "%d: %s ", ifi->ifi_index, in print_linkinfo() 147 print_link_flags(fp, ifi->ifi_flags); in print_linkinfo()
|
/external/wpa_supplicant_8/src/drivers/ |
D | netlink.h | 17 void (*newlink_cb)(void *ctx, struct ifinfomsg *ifi, u8 *buf, 19 void (*dellink_cb)(void *ctx, struct ifinfomsg *ifi, u8 *buf,
|
D | driver_wext.c | 633 static void wpa_driver_wext_event_rtm_newlink(void *ctx, struct ifinfomsg *ifi, in wpa_driver_wext_event_rtm_newlink() argument 641 if (!wpa_driver_wext_own_ifindex(drv, ifi->ifi_index, buf, len)) { in wpa_driver_wext_event_rtm_newlink() 643 ifi->ifi_index); in wpa_driver_wext_event_rtm_newlink() 649 drv->operstate, ifi->ifi_flags, in wpa_driver_wext_event_rtm_newlink() 650 (ifi->ifi_flags & IFF_UP) ? "[UP]" : "", in wpa_driver_wext_event_rtm_newlink() 651 (ifi->ifi_flags & IFF_RUNNING) ? "[RUNNING]" : "", in wpa_driver_wext_event_rtm_newlink() 652 (ifi->ifi_flags & IFF_LOWER_UP) ? "[LOWER_UP]" : "", in wpa_driver_wext_event_rtm_newlink() 653 (ifi->ifi_flags & IFF_DORMANT) ? "[DORMANT]" : ""); in wpa_driver_wext_event_rtm_newlink() 655 if (!drv->if_disabled && !(ifi->ifi_flags & IFF_UP)) { in wpa_driver_wext_event_rtm_newlink() 661 if (drv->if_disabled && (ifi->ifi_flags & IFF_UP)) { in wpa_driver_wext_event_rtm_newlink() [all …]
|
D | driver_nl80211.c | 920 struct ifinfomsg *ifi, in wpa_driver_nl80211_event_rtm_newlink() argument 968 ifi->ifi_index, ifname, extra, ifi->ifi_family, in wpa_driver_nl80211_event_rtm_newlink() 969 ifi->ifi_flags, in wpa_driver_nl80211_event_rtm_newlink() 970 (ifi->ifi_flags & IFF_UP) ? "[UP]" : "", in wpa_driver_nl80211_event_rtm_newlink() 971 (ifi->ifi_flags & IFF_RUNNING) ? "[RUNNING]" : "", in wpa_driver_nl80211_event_rtm_newlink() 972 (ifi->ifi_flags & IFF_LOWER_UP) ? "[LOWER_UP]" : "", in wpa_driver_nl80211_event_rtm_newlink() 973 (ifi->ifi_flags & IFF_DORMANT) ? "[DORMANT]" : ""); in wpa_driver_nl80211_event_rtm_newlink() 975 drv = nl80211_find_drv(global, ifi->ifi_index, buf, len); in wpa_driver_nl80211_event_rtm_newlink() 979 if (!drv->if_disabled && !(ifi->ifi_flags & IFF_UP)) { in wpa_driver_nl80211_event_rtm_newlink() 981 if (if_indextoname(ifi->ifi_index, namebuf) && in wpa_driver_nl80211_event_rtm_newlink() [all …]
|
D | netlink.c | 24 void (*cb)(void *ctx, struct ifinfomsg *ifi, in netlink_receive_link() argument
|
/external/libnl/lib/route/ |
D | link.c | 260 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/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/ |
D | p3-generic-lambda-1y.cpp | 47 static int ifi(int i) { return i; } in main() function 53 l4(&Local::ifi); in main()
|
/external/dhcpcd-6.8.2/ |
D | if-linux.c | 740 struct ifinfomsg *ifi; in link_netlink() local 758 if ((size_t)len < sizeof(*ifi)) { in link_netlink() 762 ifi = NLMSG_DATA(nlm); in link_netlink() 763 if (ifi->ifi_flags & IFF_LOOPBACK) in link_netlink() 765 rta = (struct rtattr *)(void *)((char *)ifi +NLMSG_ALIGN(sizeof(*ifi))); in link_netlink() 766 len = NLMSG_PAYLOAD(nlm, sizeof(*ifi)); in link_netlink() 775 ifi->ifi_change == 0) in link_netlink() 797 if (ifi->ifi_flags & IFF_MASTER && !hwaddr) { in link_netlink() 803 if (handle_rename(ctx, (unsigned int)ifi->ifi_index, ifn)) in link_netlink() 816 if (!(ifi->ifi_flags & IFF_UP) && hwaddr) { in link_netlink() [all …]
|
/external/iproute2/misc/ |
D | ifstat.c | 113 struct ifinfomsg *ifi = NLMSG_DATA(m); in get_nlmsg() local 122 len -= NLMSG_LENGTH(sizeof(*ifi)); in get_nlmsg() 126 if (!(ifi->ifi_flags&IFF_UP)) in get_nlmsg() 129 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); in get_nlmsg() 136 n->ifindex = ifi->ifi_index; in get_nlmsg()
|
/external/mdnsresponder/mDNSShared/ |
D | uds_daemon.c | 231 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() 2259 …rep->rhdr->ifi = dnssd_htonl(mDNSPlatformInterfaceIndexfromInterfaceID(m, answer->InterfaceID, m… in resolve_result_callback() 2816 …rep->rhdr->ifi = dnssd_htonl(mDNSPlatformInterfaceIndexfromInterfaceID(m, answer->InterfaceID, m… in queryrecord_result_callback() 3058 const char *domain, DNSServiceFlags flags, mDNSu32 ifi, DNSServiceErrorType err) in format_enumeration_reply() argument 3071 reply->rhdr->ifi = dnssd_htonl(ifi); in format_enumeration_reply() 3266 …rep->rhdr->ifi = dnssd_htonl(mDNSPlatformInterfaceIndexfromInterfaceID(m, n->InterfaceID, mDNSfa… in port_mapping_create_request_callback()
|