/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/libnl/lib/route/link/ |
D | veth.c | 56 struct ifinfomsg *ifi; in veth_parse() local 59 ifi = nla_data(nla_peer); in veth_parse() 61 peer->l_family = ifi->ifi_family; in veth_parse() 62 peer->l_arptype = ifi->ifi_type; in veth_parse() 63 peer->l_index = ifi->ifi_index; in veth_parse() 64 peer->l_flags = ifi->ifi_flags; in veth_parse() 65 peer->l_change = ifi->ifi_change; in veth_parse() 121 struct ifinfomsg ifi; in veth_put_attrs() local 124 memset(&ifi, 0, sizeof ifi); in veth_put_attrs() 125 ifi.ifi_family = peer->l_family; in veth_put_attrs() [all …]
|
/external/iproute2/ip/ |
D | iptoken.c | 50 struct ifinfomsg *ifi = NLMSG_DATA(n); in print_token() local 58 len -= NLMSG_LENGTH(sizeof(*ifi)); in print_token() 62 if (ifi->ifi_family != AF_INET6) in print_token() 64 if (ifi->ifi_index == 0) in print_token() 66 if (ifindex > 0 && ifi->ifi_index != ifindex) in print_token() 68 if (ifi->ifi_flags & (IFF_LOOPBACK | IFF_NOARP)) in print_token() 71 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); in print_token() 82 format_host_rta(ifi->ifi_family, ltb[IFLA_INET6_TOKEN]), in print_token() 83 ll_index_to_name(ifi->ifi_index)); in print_token() 121 struct ifinfomsg ifi; in iptoken_set() member [all …]
|
D | iplink_vrf.c | 129 struct ifinfomsg *ifi; in ipvrf_get_table() local 146 ifi = NLMSG_DATA(&answer.n); in ipvrf_get_table() 147 len = answer.n.nlmsg_len - NLMSG_LENGTH(sizeof(*ifi)); in ipvrf_get_table() 153 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); in ipvrf_get_table() 198 struct ifinfomsg *ifi; in name_is_vrf() local 207 ifi = NLMSG_DATA(&answer.n); in name_is_vrf() 208 len = answer.n.nlmsg_len - NLMSG_LENGTH(sizeof(*ifi)); in name_is_vrf() 214 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); in name_is_vrf() 227 return ifi->ifi_index; in name_is_vrf()
|
D | ipaddress.c | 912 struct ifinfomsg *ifi = NLMSG_DATA(n); in print_link_stats() local 915 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), in print_link_stats() 916 n->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi))); in print_link_stats() 926 struct ifinfomsg *ifi = NLMSG_DATA(n); in print_linkinfo_brief() local 936 len -= NLMSG_LENGTH(sizeof(*ifi)); in print_linkinfo_brief() 943 if (pfilter->ifindex && ifi->ifi_index != pfilter->ifindex) in print_linkinfo_brief() 945 if (pfilter->up && !(ifi->ifi_flags&IFF_UP)) in print_linkinfo_brief() 948 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); in print_linkinfo_brief() 950 fprintf(stderr, "BUG: device with ifindex %d has nil ifname\n", ifi->ifi_index); in print_linkinfo_brief() 1018 ifi->ifi_type, in print_linkinfo_brief() [all …]
|
D | link_vti.c | 52 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in vti_parse_opt() local 58 .n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)), in vti_parse_opt() 62 .i.ifi_index = ifi->ifi_index, in vti_parse_opt() 84 len -= NLMSG_LENGTH(sizeof(*ifi)); in vti_parse_opt()
|
D | link_vti6.c | 47 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in vti6_parse_opt() local 53 .n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)), in vti6_parse_opt() 57 .i.ifi_index = ifi->ifi_index, in vti6_parse_opt() 79 len -= NLMSG_LENGTH(sizeof(*ifi)); in vti6_parse_opt()
|
D | ipvrf.c | 509 struct ifinfomsg *ifi = NLMSG_DATA(n); in ipvrf_print() local 516 len -= NLMSG_LENGTH(sizeof(*ifi)); in ipvrf_print() 520 if (vrf_filter.ifindex && vrf_filter.ifindex != ifi->ifi_index) in ipvrf_print() 523 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len); in ipvrf_print() 536 ifi->ifi_index); in ipvrf_print()
|
D | link_ip6tnl.c | 74 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in ip6tunnel_parse_opt() local 80 .n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)), in ip6tunnel_parse_opt() 84 .i.ifi_index = ifi->ifi_index, in ip6tunnel_parse_opt() 114 len -= NLMSG_LENGTH(sizeof(*ifi)); in ip6tunnel_parse_opt()
|
D | link_iptnl.c | 75 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in iptunnel_parse_opt() local 81 .n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)), in iptunnel_parse_opt() 85 .i.ifi_index = ifi->ifi_index, in iptunnel_parse_opt() 119 len -= NLMSG_LENGTH(sizeof(*ifi)); in iptunnel_parse_opt()
|
D | link_gre.c | 67 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in gre_parse_opt() local 73 .n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)), in gre_parse_opt() 77 .i.ifi_index = ifi->ifi_index, in gre_parse_opt() 111 len -= NLMSG_LENGTH(sizeof(*ifi)); in gre_parse_opt()
|
/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() 106 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), IFLA_PAYLOAD(n)); in ll_remember_index() 119 im->flags = ifi->ifi_flags; in ll_remember_index() 126 im->index = ifi->ifi_index; in ll_remember_index() 128 im->type = ifi->ifi_type; in ll_remember_index() 129 im->flags = ifi->ifi_flags; in ll_remember_index() 131 h = ifi->ifi_index & (IDXMAP_SIZE - 1); in ll_remember_index()
|
/external/android-clat/ |
D | setif.c | 108 struct ifinfomsg ifi; in if_up() local 111 memset(&ifi, 0, sizeof(ifi)); in if_up() 112 if (!(ifi.ifi_index = if_nametoindex(ifname))) { in if_up() 116 ifi.ifi_change = IFF_UP; in if_up() 117 ifi.ifi_flags = IFF_UP; in if_up() 119 msg = nlmsg_alloc_ifinfo(RTM_SETLINK, NLM_F_ACK | NLM_F_REQUEST | NLM_F_ROOT, &ifi); in if_up()
|
D | netlink_msg.c | 94 struct nl_msg *nlmsg_alloc_ifinfo(uint16_t type, uint16_t flags, struct ifinfomsg *ifi) { in nlmsg_alloc_ifinfo() argument 95 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/iproute2/testsuite/tools/ |
D | generate_nlmsg.c | 33 struct ifinfomsg *ifi; in fill_vf_rate_test() local 36 h->nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); in fill_vf_rate_test() 38 ifi = NLMSG_DATA(h); in fill_vf_rate_test() 39 ifi->ifi_type = ARPHRD_ETHER; in fill_vf_rate_test() 40 ifi->ifi_index = 1; in fill_vf_rate_test() 41 ifi->ifi_flags = IFF_RUNNING | IFF_BROADCAST | in fill_vf_rate_test()
|
/external/ltp/testcases/kernel/containers/share/ |
D | ns_ifmove.c | 44 struct ifinfomsg ifi; member 107 req.ifi.ifi_family = AF_UNSPEC; in main() 108 req.ifi.ifi_index = intf_index; in main() 109 req.ifi.ifi_change = 0xffffffff; in main()
|
/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() 148 print_link_flags(fp, ifi->ifi_flags); in print_linkinfo() 220 ifi->ifi_index); in print_linkinfo()
|
/external/wpa_supplicant_8/src/ap/ |
D | vlan_full.c | 638 struct ifinfomsg *ifi; in vlan_read_ifnames() local 643 if (len < sizeof(*ifi)) in vlan_read_ifnames() 646 ifi = NLMSG_DATA(h); in vlan_read_ifnames() 654 attr = (struct rtattr *) (((char *) ifi) + nlmsg_len); in vlan_read_ifnames() 684 ifi->ifi_index, ifname, ifi->ifi_family, ifi->ifi_flags, in vlan_read_ifnames() 685 (ifi->ifi_flags & IFF_UP) ? "[UP]" : "", in vlan_read_ifnames() 686 (ifi->ifi_flags & IFF_RUNNING) ? "[RUNNING]" : "", in vlan_read_ifnames() 687 (ifi->ifi_flags & IFF_LOWER_UP) ? "[LOWER_UP]" : "", in vlan_read_ifnames() 688 (ifi->ifi_flags & IFF_DORMANT) ? "[DORMANT]" : ""); in vlan_read_ifnames()
|
/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_macsec_linux.c | 58 int ifi; member 637 ctx->cb_arg.ifindex = drv->ifi; in do_dump() 711 msg = msg_prepare(MACSEC_CMD_UPD_RXSA, ctx, drv->ifi); in macsec_drv_set_receive_lowest_pn() 776 msg = msg_prepare(MACSEC_CMD_UPD_TXSA, ctx, drv->ifi); in macsec_drv_set_transmit_next_pn() 830 msg = msg_prepare(MACSEC_CMD_ADD_RXSC, ctx, drv->ifi); in macsec_drv_create_receive_sc() 866 msg = msg_prepare(MACSEC_CMD_DEL_RXSC, ctx, drv->ifi); in macsec_drv_delete_receive_sc() 912 msg = msg_prepare(MACSEC_CMD_ADD_RXSA, ctx, drv->ifi); in macsec_drv_create_receive_sa() 963 msg = msg_prepare(MACSEC_CMD_DEL_RXSA, ctx, drv->ifi); in macsec_drv_delete_receive_sa() 1041 return set_active_rx_sa(ctx, drv->ifi, mka_sci_u64(&sa->sc->sci), in macsec_drv_enable_receive_sa() 1061 return set_active_rx_sa(ctx, drv->ifi, mka_sci_u64(&sa->sc->sci), in macsec_drv_disable_receive_sa() [all …]
|
D | driver_wext.c | 622 static void wpa_driver_wext_event_rtm_newlink(void *ctx, struct ifinfomsg *ifi, in wpa_driver_wext_event_rtm_newlink() argument 630 if (!wpa_driver_wext_own_ifindex(drv, ifi->ifi_index, buf, len)) { in wpa_driver_wext_event_rtm_newlink() 632 ifi->ifi_index); in wpa_driver_wext_event_rtm_newlink() 638 drv->operstate, ifi->ifi_flags, in wpa_driver_wext_event_rtm_newlink() 639 (ifi->ifi_flags & IFF_UP) ? "[UP]" : "", in wpa_driver_wext_event_rtm_newlink() 640 (ifi->ifi_flags & IFF_RUNNING) ? "[RUNNING]" : "", in wpa_driver_wext_event_rtm_newlink() 641 (ifi->ifi_flags & IFF_LOWER_UP) ? "[LOWER_UP]" : "", in wpa_driver_wext_event_rtm_newlink() 642 (ifi->ifi_flags & IFF_DORMANT) ? "[DORMANT]" : ""); in wpa_driver_wext_event_rtm_newlink() 644 if (!drv->if_disabled && !(ifi->ifi_flags & IFF_UP)) { in wpa_driver_wext_event_rtm_newlink() 650 if (drv->if_disabled && (ifi->ifi_flags & IFF_UP)) { in wpa_driver_wext_event_rtm_newlink() [all …]
|
/external/libnl/lib/route/ |
D | link.c | 584 struct ifinfomsg *ifi; in link_msg_parser() local 601 if (!nlmsg_valid_hdr(n, sizeof(*ifi))) { in link_msg_parser() 606 ifi = nlmsg_data(n); in link_msg_parser() 607 link->l_family = family = ifi->ifi_family; in link_msg_parser() 608 link->l_arptype = ifi->ifi_type; in link_msg_parser() 609 link->l_index = ifi->ifi_index; in link_msg_parser() 610 link->l_flags = ifi->ifi_flags; in link_msg_parser() 611 link->l_change = ifi->ifi_change; in link_msg_parser() 626 err = nlmsg_parse(n, sizeof(*ifi), tb, IFLA_MAX, real_link_policy); in link_msg_parser() 1372 struct ifinfomsg ifi; in rtnl_link_build_get_request() local [all …]
|
/external/llvm-project/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/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()
|