/external/dhcpcd/ |
D | ipv6rs.c | 166 ipv6rs_makeprobe(struct interface *ifp) in ipv6rs_makeprobe() argument 171 free(ifp->rs); in ipv6rs_makeprobe() 172 ifp->rslen = sizeof(*rs) + ROUNDUP8(ifp->hwlen + 2); in ipv6rs_makeprobe() 173 ifp->rs = xzalloc(ifp->rslen); in ipv6rs_makeprobe() 174 if (ifp->rs == NULL) in ipv6rs_makeprobe() 176 rs = (struct nd_router_solicit *)ifp->rs; in ipv6rs_makeprobe() 181 nd = (struct nd_opt_hdr *)(ifp->rs + sizeof(*rs)); in ipv6rs_makeprobe() 183 nd->nd_opt_len = (ROUNDUP8(ifp->hwlen + 2)) >> 3; in ipv6rs_makeprobe() 184 memcpy(nd + 1, ifp->hwaddr, ifp->hwlen); in ipv6rs_makeprobe() 191 struct interface *ifp = arg; in ipv6rs_sendprobe() local [all …]
|
D | dhcpcd.c | 252 struct interface *ifp; in find_interface() local 254 for (ifp = ifaces; ifp; ifp = ifp->next) in find_interface() 255 if (strcmp(ifp->name, ifname) == 0) in find_interface() 256 return ifp; in find_interface() 263 struct interface *ifp, *ifl = NULL; in stop_interface() local 275 for (ifp = ifaces; ifp; ifp = ifp->next) { in stop_interface() 276 if (ifp == iface) in stop_interface() 278 ifl = ifp; in stop_interface() 281 ifl->next = ifp->next; in stop_interface() 283 ifaces = ifp->next; in stop_interface() [all …]
|
D | if-pref.c | 79 struct interface *sorted, *ifp, *ifn, *ift; in sort_interfaces() local 86 for (ifp = ifaces; ifp && (ifn = ifp->next, 1); ifp = ifn) { in sort_interfaces() 88 if (ifcmp(ifp, sorted) == -1) { in sort_interfaces() 89 ifp->next = sorted; in sort_interfaces() 90 sorted = ifp; in sort_interfaces() 95 if (ifcmp(ifp, ift->next) == -1) { in sort_interfaces() 96 ifp->next = ift->next; in sort_interfaces() 97 ift->next = ifp; in sort_interfaces() 103 ift->next = ifp; in sort_interfaces() 104 ifp->next = NULL; in sort_interfaces()
|
D | net.c | 337 struct interface *ifp, *ifs, *ifl; in discover_interfaces() local 373 for (ifp = ifs; ifp; ifp = ifp->next) in discover_interfaces() 374 if (strcmp(ifp->name, ifa->ifa_name) == 0) in discover_interfaces() 376 if (ifp) in discover_interfaces() 414 if ((ifp = init_interface(p)) == NULL) in discover_interfaces() 418 if (!(ifp->flags & IFF_UP) in discover_interfaces() 420 && carrier_status(ifp) != -1 in discover_interfaces() 424 if (up_interface(ifp) == 0) in discover_interfaces() 427 syslog(LOG_ERR, "%s: up_interface: %m", ifp->name); in discover_interfaces() 432 if (ifp->flags & IFF_LOOPBACK) { in discover_interfaces() [all …]
|
D | ifaddrs.c | 135 struct ifaddrs *ifp; in freeifaddrs() local 138 ifp = ifa; in freeifaddrs() 139 free(ifp->ifa_name); in freeifaddrs() 140 if (ifp->ifa_addr) in freeifaddrs() 141 free(ifp->ifa_addr); in freeifaddrs() 142 if (ifp->ifa_netmask) in freeifaddrs() 143 free(ifp->ifa_netmask); in freeifaddrs() 145 free(ifp); in freeifaddrs()
|
D | configure.c | 171 const struct interface *ifp; in make_env() local 210 for (ifp = ifaces; ifp; ifp = ifp->next) in make_env() 211 e += strlen(ifp->name) + 1; in make_env() 216 for (ifp = ifaces; ifp; ifp = ifp->next) { in make_env() 217 l = strlcpy(p, ifp->name, e); in make_env() 640 add_router_host_route(struct rt *rt, const struct interface *ifp) in add_router_host_route() argument 667 if (ifp->flags & IFF_NOARP) { in add_router_host_route() 670 ifp->name, inet_ntoa(rtp->gate)); in add_router_host_route() 675 ifp->name, inet_ntoa(rtp->gate)); in add_router_host_route() 693 const struct interface *ifp; in build_routes() local [all …]
|
D | configure.h | 39 #define run_script(ifp) run_script_reason(ifp, (ifp)->state->reason); argument
|
D | ipv6rs.h | 38 void ipv6rs_free(struct interface *ifp);
|
/external/libusb/libusb/ |
D | descriptor.c | 164 struct libusb_interface_descriptor *ifp = in clear_interface() local 167 if (ifp->extra) in clear_interface() 168 free((void *) ifp->extra); in clear_interface() 169 if (ifp->endpoint) { in clear_interface() 170 for (j = 0; j < ifp->bNumEndpoints; j++) in clear_interface() 172 ifp->endpoint + j); in clear_interface() 173 free((void *) ifp->endpoint); in clear_interface() 192 struct libusb_interface_descriptor *ifp; in parse_interface() local 209 ifp = altsetting + interface->num_altsetting; in parse_interface() 211 usbi_parse_descriptor(buffer, "bbbbbbbbb", ifp, 0); in parse_interface() [all …]
|
/external/libusb_aah/libusb/ |
D | descriptor.c | 165 struct libusb_interface_descriptor *ifp = in clear_interface() local 168 if (ifp->extra) in clear_interface() 169 free((void *) ifp->extra); in clear_interface() 170 if (ifp->endpoint) { in clear_interface() 171 for (j = 0; j < ifp->bNumEndpoints; j++) in clear_interface() 173 ifp->endpoint + j); in clear_interface() 174 free((void *) ifp->endpoint); in clear_interface() 193 struct libusb_interface_descriptor *ifp; in parse_interface() local 210 ifp = altsetting + usb_interface->num_altsetting; in parse_interface() 212 usbi_parse_descriptor(buffer, "bbbbbbbbb", ifp, 0); in parse_interface() [all …]
|
/external/blktrace/ |
D | blkrawverify.c | 144 FILE *ifp, *ofp; in process() local 155 ifp = fopen(file, "r"); in process() 156 if (!ifp) in process() 166 fclose(ifp); in process() 174 while ((n = fread(bit, sizeof(struct blk_io_trace), 1, ifp)) == 1) { in process() 175 if (ferror(ifp)) { in process() 176 clearerr(ifp); in process() 199 n = fread(pdu_buf, bit->pdu_len, 1, ifp); in process() 246 if (n == 0 && !feof(ifp)) in process() 249 fclose(ifp); in process()
|
D | blkiomon.c | 76 static FILE *ifp; variable 463 if (fread(bit, sizeof(*bit), 1, ifp) != 1) { in blkiomon_do_fifo() 464 if (!feof(ifp)) in blkiomon_do_fifo() 469 if (ferror(ifp)) { in blkiomon_do_fifo() 470 clearerr(ifp); in blkiomon_do_fifo() 490 if (fread(pdu_buf, bit->pdu_len, 1, ifp) != 1) { in blkiomon_do_fifo() 491 clearerr(ifp); in blkiomon_do_fifo() 730 ifp = fdopen(STDIN_FILENO, "r"); in main() 731 if (!ifp) { in main()
|
D | blktrace.c | 2048 FILE *ifp = my_fopen(optarg, "r"); in handle_args() local 2050 if (!ifp) { in handle_args() 2057 while (fscanf(ifp, "%s\n", dev_line) == 1) in handle_args()
|