/netbsd-src/usr.sbin/map-mbone/ |
H A D | mapper.c | 131 Interface *ifc; in find_interface() local 133 for (ifc = node->u.interfaces; ifc; ifc = ifc->next) in find_interface() 134 if (ifc->addr == addr) in find_interface() 135 return ifc; in find_interface() 137 ifc = (Interface *) malloc(sizeof(Interface)); in find_interface() 138 ifc->addr = addr; in find_interface() 139 ifc->next = node->u.interfaces; in find_interface() 140 node->u.interfaces = ifc; in find_interface() 141 ifc->neighbors = 0; in find_interface() 143 return ifc; in find_interface() [all …]
|
/netbsd-src/tests/net/if/ |
H A D | ifconf.c | 54 struct ifconf ifc; in get_number_of_entries() local 60 ifc.ifc_len = 0; in get_number_of_entries() 61 ifc.ifc_buf = NULL; in get_number_of_entries() 63 r = ioctl(fd, SIOCGIFCONF, &ifc); in get_number_of_entries() 69 return ifc.ifc_len / sizeof(struct ifreq); in get_number_of_entries() 82 struct ifconf ifc; in show_interfaces() local 99 ifc.ifc_len = sizeof(struct ifreq) * nifreqs; in show_interfaces() 100 ifc.ifc_req = ifreqs; in show_interfaces() 102 r = ioctl(fd, SIOCGIFCONF, &ifc); in show_interfaces() 107 for (i=0; i < (int)(ifc.ifc_len / sizeof(struct ifreq)); i++) { in show_interfaces()
|
/netbsd-src/external/mit/libuv/dist/src/unix/ |
H A D | os390.c | 278 __net_ifconf6header_t ifc; in uv__interface_addresses_v6() local 292 ifc.__nif6h_buffer = uv__calloc(1, maxsize); in uv__interface_addresses_v6() 294 if (ifc.__nif6h_buffer == NULL) { in uv__interface_addresses_v6() 299 ifc.__nif6h_version = 1; in uv__interface_addresses_v6() 300 ifc.__nif6h_buflen = maxsize; in uv__interface_addresses_v6() 302 if (ioctl(sockfd, SIOCGIFCONF6, &ifc) == -1) { in uv__interface_addresses_v6() 307 uv__free(ifc.__nif6h_buffer); in uv__interface_addresses_v6() 313 ifr = (__net_ifconf6entry_t*)(ifc.__nif6h_buffer); in uv__interface_addresses_v6() 314 while ((char*)ifr < (char*)ifc.__nif6h_buffer + ifc.__nif6h_buflen) { in uv__interface_addresses_v6() 316 ifr = (__net_ifconf6entry_t*)((char*)ifr + ifc.__nif6h_entrylen); in uv__interface_addresses_v6() [all …]
|
H A D | aix.c | 1103 struct ifconf ifc; in uv_interface_addresses() local 1108 ifc.ifc_req = NULL; in uv_interface_addresses() 1129 ifc.ifc_req = (struct ifreq*)uv__malloc(size); in uv_interface_addresses() 1130 if (ifc.ifc_req == NULL) { in uv_interface_addresses() 1134 ifc.ifc_len = size; in uv_interface_addresses() 1135 if (ioctl(sockfd, SIOCGIFCONF, &ifc) == -1) { in uv_interface_addresses() 1143 ifr = ifc.ifc_req; in uv_interface_addresses() 1144 while ((char*)ifr < (char*)ifc.ifc_req + ifc.ifc_len) { in uv_interface_addresses() 1176 ifr = ifc.ifc_req; in uv_interface_addresses() 1177 while ((char*)ifr < (char*)ifc.ifc_req + ifc.ifc_len) { in uv_interface_addresses() [all …]
|
/netbsd-src/external/mpl/dhcp/dist/relay/tests/ |
H A D | relay_unittests.c | 285 struct interface_info ifc; in ATF_TC_BODY() local 296 memset(&ifc, 0x0, sizeof(ifc)); in ATF_TC_BODY() 297 ifc.circuit_id = circuit_id; in ATF_TC_BODY() 298 ifc.circuit_id_len = sizeof(circuit_id); in ATF_TC_BODY() 299 ifc.remote_id = remote_id; in ATF_TC_BODY() 300 ifc.remote_id_len = sizeof(remote_id); in ATF_TC_BODY() 306 ret = add_relay_agent_options(&ifc, &packet, len, giaddr); in ATF_TC_BODY() 357 ret = add_relay_agent_options(&ifc, &packet, len, giaddr); in ATF_TC_BODY() 374 ret = add_relay_agent_options(&ifc, &packet, len, giaddr); in ATF_TC_BODY() 395 ret = add_relay_agent_options(&ifc, &packet, len, giaddr); in ATF_TC_BODY()
|
/netbsd-src/sys/compat/common/ |
H A D | uipc_syscalls_40.c | 39 struct oifconf *ifc = data; in compat_ifconf() local 56 const bool docopy = ifc->ifc_req != NULL; in compat_ifconf() 58 if (ifc->ifc_len < 0) in compat_ifconf() 61 space = ifc->ifc_len; in compat_ifconf() 62 ifrp = ifc->ifc_req; in compat_ifconf() 159 ifc->ifc_len -= space; in compat_ifconf() 161 ifc->ifc_len = -space; in compat_ifconf()
|
/netbsd-src/usr.sbin/route6d/ |
H A D | route6d.c | 102 struct ifc { /* Configuration of an interface */ struct 104 struct ifc *ifc_next; argument 118 struct ifc *ifa_conf; /* back pointer */ 132 static struct ifc *ifc; variable 134 static struct ifc **index2ifc; 136 static struct ifc *loopifcp = NULL; /* pointing to loopback */ 208 static void ripsend(struct ifc *, struct sockaddr_in6 *, int); 209 static int out_filter(struct riprt *, struct ifc *); 212 static void ifconfig1(const char *, const struct sockaddr *, struct ifc *, int); 216 static int rt_deladdr(struct ifc *, const struct sockaddr_in6 *, [all …]
|
/netbsd-src/tests/net/mcast/ |
H A D | mcast.c | 98 unsigned int ifc; in addmc() local 130 ifc = 1; in addmc() 132 &ifc, sizeof(ifc)) == -1) in addmc() 134 ifc = 224; in addmc() 136 &ifc, sizeof(ifc)) == -1) in addmc() 138 ifc = 1; /* XXX should pick a proper interface */ in addmc() 139 if (setsockopt(s, IPPROTO_IPV6, IPV6_MULTICAST_IF, &ifc, in addmc() 140 sizeof(ifc)) == -1) in addmc() 143 ifc = 0; /* Let pick an appropriate interface */ in addmc() 145 m6.ipv6mr_interface = ifc; in addmc()
|
/netbsd-src/sys/dev/usb/ |
H A D | usb_subr.c | 409 struct usbd_interface *ifc = &dev->ud_ifaces[ifaceidx]; in usbd_iface_init() local 411 memset(ifc, 0, sizeof(*ifc)); in usbd_iface_init() 413 ifc->ui_dev = dev; in usbd_iface_init() 414 ifc->ui_idesc = NULL; in usbd_iface_init() 415 ifc->ui_index = 0; in usbd_iface_init() 416 ifc->ui_altindex = 0; in usbd_iface_init() 417 ifc->ui_endpoints = NULL; in usbd_iface_init() 418 ifc->ui_busy = 0; in usbd_iface_init() 424 struct usbd_interface *ifc __diagused = &dev->ud_ifaces[ifaceidx]; in usbd_iface_fini() 426 KASSERT(ifc->ui_dev == dev); in usbd_iface_fini() [all …]
|
H A D | usbdi_util.c | 586 usbd_get_hid_descriptor(struct usbd_interface *ifc) in usbd_get_hid_descriptor() argument 588 usb_interface_descriptor_t *idesc = usbd_get_interface_descriptor(ifc); in usbd_get_hid_descriptor() 596 usbd_interface2device_handle(ifc, &dev); in usbd_get_hid_descriptor() 616 usbd_read_report_desc(struct usbd_interface *ifc, void **descp, int *sizep) in usbd_read_report_desc() argument 623 usbd_interface2device_handle(ifc, &dev); in usbd_read_report_desc() 624 id = usbd_get_interface_descriptor(ifc); in usbd_read_report_desc() 627 hid = usbd_get_hid_descriptor(ifc); in usbd_read_report_desc()
|
/netbsd-src/external/gpl3/gcc/dist/libgcc/config/avr/libf7/ |
H A D | asm-defs.h | 109 .ifc \reg,\dst 112 .ifc \reg,\src 125 .ifc \reg,\dst 128 .ifc \reg,\src 140 .ifc \reg,\dst 143 .ifc \reg,\src
|
/netbsd-src/external/gpl3/gcc.old/dist/libgcc/config/avr/libf7/ |
H A D | asm-defs.h | 109 .ifc \reg,\dst 112 .ifc \reg,\src 125 .ifc \reg,\dst 128 .ifc \reg,\src 140 .ifc \reg,\dst 143 .ifc \reg,\src
|
/netbsd-src/sys/compat/linux32/common/ |
H A D | linux32_socket.c | 419 struct linux32_ifconf ifc; in linux32_getifconf() local 430 error = copyin(data, &ifc, sizeof(ifc)); in linux32_getifconf() 434 docopy = NETBSD32PTR64(ifc.ifc_req) != NULL; in linux32_getifconf() 436 if (ifc.ifc_len < 0) in linux32_getifconf() 439 space = ifc.ifc_len; in linux32_getifconf() 440 ifrp = NETBSD32PTR64(ifc.ifc_req); in linux32_getifconf() 492 ifc.ifc_len -= space; in linux32_getifconf() 494 ifc.ifc_len = -space; in linux32_getifconf() 496 return copyout(&ifc, data, sizeof(ifc)); in linux32_getifconf()
|
/netbsd-src/usr.sbin/bootp/bootptest/ |
H A D | getether.c | 134 struct ifconf ifc; in getether() 143 ifc.ifc_len = sizeof(ibuf); in getether() 144 ifc.ifc_buf = (caddr_t) ibuf; in getether() 145 if (ioctl(fd, SIOCGIFCONF, (char *) &ifc) < 0 || in getether() 146 ifc.ifc_len < (int)sizeof(struct ifreq)) { in getether() 152 ifend = (struct ifreq *) ((char *) ibuf + ifc.ifc_len); in getether() 132 struct ifconf ifc; getether() local
|
/netbsd-src/external/ibm-public/postfix/dist/src/util/ |
H A D | inet_addr_local.c | 354 struct ifconf ifc; in ial_siocgif() local 381 ifc.ifc_len = vstring_avail(buf); in ial_siocgif() 382 ifc.ifc_buf = vstring_str(buf); in ial_siocgif() 383 if (ioctl(sock, SIOCGIFCONF, (char *) &ifc) < 0) { in ial_siocgif() 386 } else if (ifc.ifc_len < vstring_avail(buf) / 2) in ial_siocgif() 391 the_end = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len); in ial_siocgif() 392 for (ifr = ifc.ifc_req; ifr < the_end;) { in ial_siocgif()
|
/netbsd-src/lib/npf/ext_log/ |
H A D | npfext_log.c | 79 struct ifconf ifc; in npfext_log_param() local 94 memset(&ifc, 0, sizeof(ifc)); in npfext_log_param()
|
/netbsd-src/external/bsd/am-utils/dist/libamu/ |
H A D | wire.c | 452 #define clist (ifc.ifc_ifcu.ifcu_req) 453 #define count (ifc.ifc_len/sizeof(struct ifreq)) 459 struct ifconf ifc; local 484 ifc.ifc_len = sizeof(buf); 485 ifc.ifc_buf = buf; 490 if (ioctl(fd, SIOCGIFCONF, (caddr_t) & ifc) < 0) 496 cplim = buf + ifc.ifc_len;
|
/netbsd-src/external/bsd/openldap/dist/libraries/liblutil/ |
H A D | uuid.c | 122 struct ifconf ifc; in lutil_eaddr() local 138 ifc.ifc_len = sizeof( buf ); in lutil_eaddr() 139 ifc.ifc_buf = buf; in lutil_eaddr() 142 i = ioctl( s, SIOCGIFCONF, (char *)&ifc ); in lutil_eaddr() 149 for ( i = 0; i < ifc.ifc_len; ) { in lutil_eaddr() 150 ifr = (struct ifreq *)&ifc.ifc_buf[i]; in lutil_eaddr()
|
/netbsd-src/sys/net/ |
H A D | if.c | 1575 struct if_clone *ifc; in if_clone_create() 1582 ifc = if_clone_lookup(name, &unit); in if_clone_create() 1583 if (ifc == NULL) in if_clone_create() 1592 return (*ifc->ifc_create)(ifc, unit); in if_clone_create() 1601 struct if_clone *ifc; in if_clone_destroy() 1609 ifc = if_clone_lookup(name, NULL); in if_clone_destroy() 1610 if (ifc == NULL) in if_clone_destroy() 1613 if (ifc->ifc_destroy == NULL) in if_clone_destroy() 1632 error = (*ifc in if_clone_destroy() 1574 struct if_clone *ifc; if_clone_create() local 1600 struct if_clone *ifc; if_clone_destroy() local 1662 struct if_clone *ifc; if_clone_lookup() local 1717 if_clone_attach(struct if_clone * ifc) if_clone_attach() argument 1730 if_clone_detach(struct if_clone * ifc) if_clone_detach() argument 1746 struct if_clone *ifc; if_clone_list() local 3648 struct ifconf *ifc = (struct ifconf *)data; ifconf() local [all...] |
H A D | if_vether.c | 60 vether_clone_create(struct if_clone *ifc, int unit) in vether_clone_create() 76 if_initname(ifp, ifc->ifc_name, unit); in vether_clone_create() 56 vether_clone_create(struct if_clone * ifc,int unit) vether_clone_create() argument
|
/netbsd-src/share/doc/psd/21.ipc/ |
H A D | spell.ok | 205 ifc 206 ifc.ifc
|
/netbsd-src/sys/netcan/ |
H A D | if_canloop.c | 106 canloop_clone_create(struct if_clone *ifc, int unit) in canloop_clone_create() argument 112 if_initname(ifp, ifc->ifc_name, unit); in canloop_clone_create()
|
/netbsd-src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/freescale/ |
H A D | fsl-ls208xa-rdb.dtsi | 16 &ifc { 34 compatible = "fsl,ifc-nand";
|
/netbsd-src/sys/compat/linux/common/ |
H A D | linux_socket.c | 1166 struct linux_ifconf ifc; in linux_getifconf() local 1177 error = copyin(data, &ifc, sizeof(ifc)); in linux_getifconf() 1181 docopy = ifc.ifc_req != NULL; in linux_getifconf() 1183 if (ifc.ifc_len < 0) in linux_getifconf() 1186 space = ifc.ifc_len; in linux_getifconf() 1187 ifrp = ifc.ifc_req; in linux_getifconf() 1239 ifc.ifc_len -= space; in linux_getifconf() 1241 ifc.ifc_len = -space; in linux_getifconf() 1243 return copyout(&ifc, dat in linux_getifconf() [all...] |
/netbsd-src/external/bsd/libbind/dist/irs/ |
H A D | gethostent.c | 642 struct ifconf ifc; in scan_interfaces() local 682 ifc.ifc_len = bufsiz; in scan_interfaces() 683 ifc.ifc_buf = buf; in scan_interfaces() 690 if (emul_ioctl(&ifc) >= 0) in scan_interfaces() 693 if ((n = ioctl(s, SIOCGIFCONF, (char *)&ifc)) != -1) { in scan_interfaces() 702 if (ifc.ifc_len + 2 * sizeof(u.ifreq) < bufsiz) in scan_interfaces() 717 cplim = buf + ifc.ifc_len; /*%< skip over if's with big ifr_addr's */ in scan_interfaces()
|