Lines Matching defs:ifcr
610 struct ifcapreq ifcr;
617 assert(sizeof(ifcr) == prop_data_size(d));
619 memcpy(&ifcr, prop_data_value(d), sizeof(ifcr));
620 if (direct_ioctl(env, SIOCSIFCAP, &ifcr) == -1)
914 struct if_clonereq ifcr;
918 memset(&ifcr, 0, sizeof(ifcr));
922 if (prog_ioctl(s, SIOCIFGCLONERS, &ifcr) == -1)
925 buf = malloc(ifcr.ifcr_total * IFNAMSIZ);
929 ifcr.ifcr_count = ifcr.ifcr_total;
930 ifcr.ifcr_buffer = buf;
932 if (prog_ioctl(s, SIOCIFGCLONERS, &ifcr) == -1)
938 if (ifcr.ifcr_count > ifcr.ifcr_total)
939 ifcr.ifcr_count = ifcr.ifcr_total;
941 for (cp = buf, idx = 0; idx < ifcr.ifcr_count; idx++, cp += IFNAMSIZ) {
1093 struct ifcapreq ifcr;
1105 (void)direct_ioctl(env, SIOCGIFCAP, &ifcr);
1106 *oifcr = ifcr;
1108 capdata = prop_data_create_copy(&ifcr, sizeof(ifcr));
1123 struct ifcapreq ifcr;
1128 if (getifcaps(env, oenv, &ifcr) == -1)
1133 ifcr.ifcr_capenable &= ~ifcap;
1135 ifcr.ifcr_capenable |= ifcap;
1137 if ((capdata = prop_data_create_copy(&ifcr, sizeof(ifcr))) == NULL)
1282 struct ifcapreq ifcr;
1314 if (getifcaps(env, oenv, &ifcr) == -1)
1317 if (ifcr.ifcr_capabilities != 0) {
1319 ifcr.ifcr_capabilities, MAX_PRINT_LEN);
1326 ifcr.ifcr_capenable, MAX_PRINT_LEN);