Lines Matching defs:ifc
485 struct ifconf *ifc = NULL;
494 ifc = (struct ifconf *)ifr;
495 len = ifc->ifc_len;
504 if (ifc->ifc_buf == NULL) {
530 if (memcpy_s(ifc->ifc_buf + pos, sizeof(struct ifreq), &ifreq, sizeof(struct ifreq)) != EOK) {
537 ifc->ifc_len = pos;
1588 struct ifconf ifc;
1592 if (LOS_ArchCopyFromUser(&ifc, argp, sizeof(struct ifconf)) != 0) {
1596 nbytes = ifc.ifc_len;
1601 buf_bak = ifc.ifc_buf;
1606 ifc.ifc_buf = malloc(nbytes);
1607 if (ifc.ifc_buf == NULL) {
1611 (void)memset_s(ifc.ifc_buf, nbytes, 0, nbytes);
1613 ret = lwip_ioctl(sockfd, cmd, &ifc);
1615 if (LOS_ArchCopyToUser(buf_bak, ifc.ifc_buf, nbytes) != 0) {
1621 free(ifc.ifc_buf);
1622 ifc.ifc_buf = buf_bak;
1623 if (LOS_ArchCopyToUser(argp, &ifc, sizeof(struct ifconf)) != 0) {