Searched refs:ifp (Results 1 - 16 of 16) sorted by relevance

/external/dhcpcd/
H A Dconfigure.h39 #define run_script(ifp) run_script_reason(ifp, (ifp)->state->reason);
H A Dif-pref.c79 struct interface *sorted, *ifp, *ifn, *ift; local
86 for (ifp = ifaces; ifp && (ifn = ifp->next, 1); ifp = ifn) {
88 if (ifcmp(ifp, sorted) == -1) {
89 ifp->next = sorted;
90 sorted = ifp;
95 if (ifcmp(ifp, ift->next) == -1) {
96 ifp
[all...]
H A Dipv6rs.h38 void ipv6rs_free(struct interface *ifp);
H A Dipv6rs.c166 ipv6rs_makeprobe(struct interface *ifp) argument
171 free(ifp->rs);
172 ifp->rslen = sizeof(*rs) + ROUNDUP8(ifp->hwlen + 2);
173 ifp->rs = xzalloc(ifp->rslen);
174 if (ifp->rs == NULL)
176 rs = (struct nd_router_solicit *)ifp->rs;
181 nd = (struct nd_opt_hdr *)(ifp->rs + sizeof(*rs));
183 nd->nd_opt_len = (ROUNDUP8(ifp
191 struct interface *ifp = arg; local
233 ipv6rs_sort(struct interface *ifp) argument
275 struct interface *ifp; local
569 ipv6rs_env(char **env, const char *prefix, const struct interface *ifp) argument
665 ipv6rs_free(struct interface *ifp) argument
682 struct interface *ifp; local
748 ipv6rs_start(struct interface *ifp) argument
[all...]
H A Ddhcpcd.c252 struct interface *ifp; local
254 for (ifp = ifaces; ifp; ifp = ifp->next)
255 if (strcmp(ifp->name, ifname) == 0)
256 return ifp;
263 struct interface *ifp, *ifl = NULL; local
275 for (ifp = ifaces; ifp; if
1299 struct interface *ifs, *ifp, *ifn, *ifl = NULL; local
1350 struct interface *ifp; local
1387 struct interface *ifp; local
1474 struct interface *ifl, *ifn, *ifp, *ifs, *ift; local
1511 struct interface *ifp, *ifl; local
1600 struct interface *ifp; local
[all...]
H A Dnet.c337 struct interface *ifp, *ifs, *ifl; local
373 for (ifp = ifs; ifp; ifp = ifp->next)
374 if (strcmp(ifp->name, ifa->ifa_name) == 0)
376 if (ifp)
414 if ((ifp = init_interface(p)) == NULL)
418 if (!(ifp->flags & IFF_UP)
420 && carrier_status(ifp) !
[all...]
H A Difaddrs.c135 struct ifaddrs *ifp; local
138 ifp = ifa;
139 free(ifp->ifa_name);
140 if (ifp->ifa_addr)
141 free(ifp->ifa_addr);
142 if (ifp->ifa_netmask)
143 free(ifp->ifa_netmask);
145 free(ifp);
H A Dconfigure.c171 const struct interface *ifp; local
210 for (ifp = ifaces; ifp; ifp = ifp->next)
211 e += strlen(ifp->name) + 1;
216 for (ifp = ifaces; ifp; ifp = ifp
640 add_router_host_route(struct rt *rt, const struct interface *ifp) argument
693 const struct interface *ifp; local
[all...]
/external/libusb/libusb/
H A Ddescriptor.c164 struct libusb_interface_descriptor *ifp = local
167 if (ifp->extra)
168 free((void *) ifp->extra);
169 if (ifp->endpoint) {
170 for (j = 0; j < ifp->bNumEndpoints; j++)
172 ifp->endpoint + j);
173 free((void *) ifp->endpoint);
192 struct libusb_interface_descriptor *ifp; local
209 ifp = altsetting + interface->num_altsetting;
211 usbi_parse_descriptor(buffer, "bbbbbbbbb", ifp,
[all...]
/external/blktrace/
H A Dblkrawverify.c144 FILE *ifp, *ofp; local
155 ifp = fopen(file, "r");
156 if (!ifp)
166 fclose(ifp);
174 while ((n = fread(bit, sizeof(struct blk_io_trace), 1, ifp)) == 1) {
175 if (ferror(ifp)) {
176 clearerr(ifp);
199 n = fread(pdu_buf, bit->pdu_len, 1, ifp);
246 if (n == 0 && !feof(ifp))
249 fclose(ifp);
[all...]
H A Dblkiomon.c76 static FILE *ifp; variable
463 if (fread(bit, sizeof(*bit), 1, ifp) != 1) {
464 if (!feof(ifp))
469 if (ferror(ifp)) {
470 clearerr(ifp);
490 if (fread(pdu_buf, bit->pdu_len, 1, ifp) != 1) {
491 clearerr(ifp);
730 ifp = fdopen(STDIN_FILENO, "r");
731 if (!ifp) {
H A Dblktrace.c2048 FILE *ifp = my_fopen(optarg, "r"); local
2050 if (!ifp) {
2057 while (fscanf(ifp, "%s\n", dev_line) == 1)
/external/chromium_org/third_party/libusb/src/libusb/
H A Ddescriptor.c196 struct libusb_interface_descriptor *ifp = local
199 if (ifp->extra)
200 free((void *) ifp->extra);
201 if (ifp->endpoint) {
202 for (j = 0; j < ifp->bNumEndpoints; j++)
204 ifp->endpoint + j);
205 free((void *) ifp->endpoint);
225 struct libusb_interface_descriptor *ifp; local
242 ifp = altsetting + usb_interface->num_altsetting;
243 usbi_parse_descriptor(buffer, "bbbbbbbbb", ifp,
[all...]
/external/iputils/
H A Drdisc.c102 static int sendbcastif(int s, char *packet, int packetlen, struct interface *ifp);
103 static int sendmcastif(int s, char *packet, int packetlen, struct sockaddr_in *sin, struct interface *ifp);
626 struct interface *ifp = &interfaces[i]; local
631 if ((sin->sin_addr.s_addr & ifp->netmask.s_addr) ==
632 (ifp->address.s_addr & ifp->netmask.s_addr)) {
637 ifp->name,
638 pr_name(ifp->address));
1013 sendbcastif(int s, char *packet, int packetlen, struct interface *ifp) argument
1020 baddr.sin_addr = ifp
1055 sendmcastif(int s, char *packet, int packetlen, struct sockaddr_in *sin, struct interface *ifp) argument
[all...]
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/
H A Dsctp_os_userspace.h1074 #define SCTP_IP6_OUTPUT(result, o_pak, ro, ifp, stcb, vrf_id) sctp_userspace_ip6_output(&result, o_pak, ro, stcb, vrf_id);
1080 #define SCTP_IP6_OUTPUT(result, o_pak, ro, ifp, stcb, vrf_id) \
1085 (ro), 0, 0, ifp, NULL); \
1087 result = ip6_output(o_pak, NULL, (ro), 0, 0, ifp, NULL); \
H A Dsctp_output.c4516 struct ifnet *ifp; local
4832 ifp = SCTP_GET_IFN_VOID_FROM_ROUTE(ro);
4914 SCTP_IP6_OUTPUT(ret, o_pak, (struct route_in6 *)ro, &ifp, stcb, vrf_id);
4973 else if (ifp) {
4975 #define ND_IFINFO(ifp) (ifp)
4978 if (ND_IFINFO(ifp)->linkmtu &&
4979 (stcb->asoc.smallest_mtu > ND_IFINFO(ifp)->linkmtu)) {
4982 ND_IFINFO(ifp)->linkmtu);
8442 * if we have a route and an ifp chec
8445 struct ifnet *ifp; local
[all...]

Completed in 2866 milliseconds