Searched refs:ifcon (Results 1 – 4 of 4) sorted by relevance
/external/toybox/toys/net/ |
D | ifconfig.c | 341 struct ifconf ifcon; in show_iface() local 346 ifcon.ifc_buf = NULL; in show_iface() 348 ifcon.ifc_len = sizeof(struct ifreq)*num; in show_iface() 349 ifcon.ifc_buf = xrealloc(ifcon.ifc_buf, ifcon.ifc_len); in show_iface() 350 xioctl(TT.sockfd, SIOCGIFCONF, &ifcon); in show_iface() 351 if (ifcon.ifc_len != sizeof(struct ifreq)*num) break; in show_iface() 354 ifre = ifcon.ifc_req; in show_iface() 355 for(num = 0; num < ifcon.ifc_len && ifre; num += sizeof(struct ifreq), ifre++) in show_iface() 364 free(ifcon.ifc_buf); in show_iface()
|
/external/selinux/libsemanage/tests/ |
D | test_iface.c | 343 semanage_context_t *ifcon = NULL; in test_iface_create() local 353 &ifcon) >= 0); in test_iface_create() 354 CU_ASSERT(semanage_iface_set_ifcon(sh, iface, ifcon) >= 0); in test_iface_create() 369 semanage_context_t *ifcon = NULL; in test_iface_clone() local 379 &ifcon) >= 0); in test_iface_clone() 380 CU_ASSERT(semanage_iface_set_ifcon(sh, iface, ifcon) >= 0); in test_iface_clone() 390 CU_ASSERT_CONTEXT_EQUAL(ifcon, ifcon2); in test_iface_clone()
|
/external/selinux/libsemanage/src/ |
D | interfaces_file.c | 29 semanage_context_t *ifcon = semanage_iface_get_ifcon(iface); in iface_print() local 35 if (semanage_context_to_string(handle, ifcon, &con_str) < 0) in iface_print()
|
/external/selinux/libsepol/src/ |
D | interfaces.c | 72 context_struct_t *ifcon = &iface->context[0]; in iface_to_record() local 84 if (context_to_record(handle, policydb, ifcon, &tmp_con) < 0) in iface_to_record()
|