| /netbsd/src/usr.sbin/map-mbone/ |
| 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/ |
| 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/sys/compat/common/ |
| 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/ |
| 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/external/bsd/libpcap/dist/ |
| D | fad-glifc.c | 90 struct lifconf ifc; in pcapint_findalldevs_interfaces() local 152 ifc.lifc_len = buf_size; in pcapint_findalldevs_interfaces() 153 ifc.lifc_buf = buf; in pcapint_findalldevs_interfaces() 154 ifc.lifc_family = AF_UNSPEC; in pcapint_findalldevs_interfaces() 155 ifc.lifc_flags = 0; in pcapint_findalldevs_interfaces() 157 if (ioctl(fd4, SIOCGLIFCONF, (char *)&ifc) < 0) { in pcapint_findalldevs_interfaces() 170 ifend = (struct lifreq *)(buf + ifc.lifc_len); in pcapint_findalldevs_interfaces()
|
| D | fad-gifc.c | 148 struct ifconf ifc; in pcapint_findalldevs_interfaces() local 196 ifc.ifc_len = buf_size; in pcapint_findalldevs_interfaces() 197 ifc.ifc_buf = buf; in pcapint_findalldevs_interfaces() 199 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 in pcapint_findalldevs_interfaces() 207 if (ifc.ifc_len < (int)buf_size && in pcapint_findalldevs_interfaces() 208 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcapint_findalldevs_interfaces() 215 ifend = (struct ifreq *)(buf + ifc.ifc_len); in pcapint_findalldevs_interfaces()
|
| /netbsd/src/sys/dev/usb/ |
| 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 …]
|
| 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/sys/compat/linux32/common/ |
| 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/ |
| D | getether.c | 132 struct ifconf ifc; in getether() local 141 ifc.ifc_len = sizeof(ibuf); in getether() 142 ifc.ifc_buf = (caddr_t) ibuf; in getether() 143 if (ioctl(fd, SIOCGIFCONF, (char *) &ifc) < 0 || in getether() 144 ifc.ifc_len < (int)sizeof(struct ifreq)) { in getether() 150 ifend = (struct ifreq *) ((char *) ibuf + ifc.ifc_len); in getether()
|
| /netbsd/src/external/ibm-public/postfix/dist/src/util/ |
| 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/ |
| 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/ |
| 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/ |
| 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/ |
| D | if.c | 1575 struct if_clone *ifc; in if_clone_create() local 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() local 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->ifc_destroy)(ifp); in if_clone_destroy() 1663 struct if_clone *ifc; in if_clone_lookup() local [all …]
|
| D | if_vether.c | 60 vether_clone_create(struct if_clone *ifc, int unit) in vether_clone_create() argument 76 if_initname(ifp, ifc->ifc_name, unit); in vether_clone_create()
|
| D | if_faith.c | 136 faith_clone_create(struct if_clone *ifc, int unit) in faith_clone_create() argument 142 if_initname(ifp, ifc->ifc_name, unit); in faith_clone_create()
|
| D | if_loop.c | 175 loop_clone_create(struct if_clone *ifc, int unit) in loop_clone_create() argument 181 if_initname(ifp, ifc->ifc_name, unit); in loop_clone_create()
|
| /netbsd/src/share/doc/psd/21.ipc/ |
| D | spell.ok | 205 ifc 206 ifc.ifc
|
| /netbsd/src/sys/compat/linux/common/ |
| 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, data, sizeof(ifc)); in linux_getifconf()
|
| /netbsd/src/external/bsd/libbind/dist/irs/ |
| 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()
|
| /netbsd/src/sys/dev/ic/ |
| D | isp_netbsd.c | 300 struct isp_fc_device *ifc = (struct isp_fc_device *) addr; in ispioctl() local 306 if (ifc->loopid >= MAX_FC_TARG) { in ispioctl() 310 lp = &FCPARAM(isp, ifc->chan)->portdb[ifc->loopid]; in ispioctl() 312 ifc->role = lp->roles; in ispioctl() 313 ifc->loopid = lp->handle; in ispioctl() 314 ifc->portid = lp->portid; in ispioctl() 315 ifc->node_wwn = lp->node_wwn; in ispioctl() 316 ifc->port_wwn = lp->port_wwn; in ispioctl()
|
| /netbsd/src/sys/compat/sunos/ |
| D | sunos_ioctl.c | 707 struct oifconf ifc; in sunos_sys_ioctl() local 716 error = copyin(SCARG(uap, data), &ifc, sizeof(ifc)); in sunos_sys_ioctl() 719 error = (*ctl)(fp, OOSIOCGIFCONF, &ifc); in sunos_sys_ioctl() 722 error = copyout((void *)&ifc, SCARG(uap, data), sizeof(ifc)); in sunos_sys_ioctl()
|
| /netbsd/src/sys/net/npf/ |
| D | if_npflog.c | 111 npflog_clone_create(struct if_clone *ifc, int unit) in npflog_clone_create() argument
|
| /netbsd/src/sys/dev/gpib/ |
| D | gpibvar.h | 77 void (*ifc)(void *); member
|