/openbsd/usr.sbin/map-mbone/ |
H A D | mapper.c | 129 Interface *ifc; in find_interface() local 131 for (ifc = node->u.interfaces; ifc; ifc = ifc->next) in find_interface() 133 return ifc; in find_interface() 136 ifc->addr = addr; in find_interface() 141 return ifc; in find_interface() 147 Interface *ifc; in find_neighbor() local 149 for (ifc = node->u.interfaces; ifc; ifc = ifc->next) { in find_neighbor() 631 Interface *ifc; in print_map() local 637 for (ifc = node->u.interfaces; ifc; ifc = ifc->next) { in print_map() 703 for (ifc = node->u.interfaces; ifc; ifc = ifc->next) in graph_edges() [all …]
|
/openbsd/usr.bin/systat/ |
H A D | if.c | 401 if_err_ifails(const struct ifcount *ifc) in if_err_ifails() argument 403 return (ifc->ifc_ie + ifc->ifc_iq); in if_err_ifails() 407 if_err_ofails(const struct ifcount *ifc) in if_err_ofails() argument 409 return (ifc->ifc_oe + ifc->ifc_oq); in if_err_ofails() 413 if_err_ierrors(const struct ifcount *ifc) in if_err_ierrors() argument 415 return (ifc->ifc_ie); in if_err_ierrors() 419 if_err_oerrors(const struct ifcount *ifc) in if_err_oerrors() argument 421 return (ifc->ifc_oe); in if_err_oerrors() 425 if_err_iqdrops(const struct ifcount *ifc) in if_err_iqdrops() argument 427 return (ifc->ifc_iq); in if_err_iqdrops() [all …]
|
/openbsd/usr.sbin/route6d/ |
H A D | route6d.c | 91 struct ifc *ifc_next; argument 119 struct ifc *ifc; variable 244 struct ifc *ifcp; in main() 466 struct ifc *ifcp; in ripalarm() 511 ifc = (struct ifc *)NULL; in init() 1357 struct ifc *ifcp; in ifconfig() 1387 ifc = ifcp; in ifconfig() 2735 struct ifc *ifcp; in ifdump() 2860 struct ifc *ifcp; in filterconfig() 3174 struct ifc * [all …]
|
/openbsd/games/hunt/hunt/ |
H A D | list.c | 213 struct ifconf ifc; in probe_drivers() local 260 ifc.ifc_len = inlen; in probe_drivers() 263 ifc.ifc_buf = inbuf = ninbuf; in probe_drivers() 264 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) == -1) in probe_drivers() 266 if (ifc.ifc_len + sizeof(*ifr) < inlen) in probe_drivers() 272 ifr = ifc.ifc_req; in probe_drivers() 273 for (i = 0; i < ifc.ifc_len; in probe_drivers()
|
/openbsd/lib/libpcap/ |
H A D | inet.c | 155 struct ifconf ifc; in pcap_lookupdev() 165 ifc.ifc_len = sizeof ibuf; in pcap_lookupdev() 166 ifc.ifc_buf = (caddr_t)ibuf; in pcap_lookupdev() 169 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) == -1 || in pcap_lookupdev() 170 ifc.ifc_len < sizeof(struct ifreq)) { in pcap_lookupdev() 177 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len); in pcap_lookupdev()
|
/openbsd/sys/dev/usb/ |
H A D | usb_subr.c | 488 ifc->device = dev; in usbd_fill_iface_data() 489 ifc->idesc = idesc; in usbd_fill_iface_data() 490 ifc->index = ifaceno; in usbd_fill_iface_data() 491 ifc->altindex = altno; in usbd_fill_iface_data() 492 ifc->endpoints = NULL; in usbd_fill_iface_data() 493 ifc->priv = NULL; in usbd_fill_iface_data() 495 ifc->nendpt = nendpt; in usbd_fill_iface_data() 498 ifc->endpoints = mallocarray(nendpt, sizeof(*ifc->endpoints), in usbd_fill_iface_data() 505 free(ifc->endpoints, M_USB, nendpt * sizeof(*ifc->endpoints)); in usbd_fill_iface_data() 520 p = (char *)ifc->idesc + ifc->idesc->bLength; in usbd_parse_idesc() [all …]
|
/openbsd/sys/net/ |
H A D | if_pair.c | 106 pair_clone_create(struct if_clone *ifc, int unit) in pair_clone_create() argument 196 struct if_clone *ifc; in pairioctl() local 244 if ((ifc = if_clone_lookup(newifp->if_xname, in pairioctl() 246 ifc->ifc_name) != 0) { in pairioctl()
|
H A D | if.c | 1316 struct if_clone *ifc; in if_clone_create() local 1321 if (ifc == NULL) in if_clone_create() 1331 ret = (*ifc->ifc_create)(ifc, unit); in if_clone_create() 1354 struct if_clone *ifc; in if_clone_destroy() local 1359 if (ifc == NULL) in if_clone_destroy() 1397 struct if_clone *ifc; in if_clone_lookup() local 1419 if (ifc == NULL) in if_clone_lookup() 1434 return (ifc); in if_clone_lookup() 1461 struct if_clone *ifc; in if_clone_list() local 2725 ifc->ifc_len = space; in ifconf() [all …]
|
H A D | if_enc.c | 67 enc_clone_create(struct if_clone *ifc, int unit) in enc_clone_create() argument 92 ifc->ifc_name, unit); in enc_clone_create() 96 if_addgroup(ifp, ifc->ifc_name); in enc_clone_create()
|
H A D | if_tun.c | 170 tun_clone_create(struct if_clone *ifc, int unit) in tun_clone_create() argument 172 return (tun_create(ifc, unit, 0)); in tun_clone_create() 176 tap_clone_create(struct if_clone *ifc, int unit) in tap_clone_create() argument 178 return (tun_create(ifc, unit, TUN_LAYER2)); in tap_clone_create() 215 tun_create(struct if_clone *ifc, int unit, int flags) in tun_create() argument 230 "%s%d", ifc->ifc_name, unit); in tun_create() 381 tun_dev_open(dev_t dev, const struct if_clone *ifc, int mode, struct proc *p) in tun_dev_open() argument 400 snprintf(name, sizeof(name), "%s%u", ifc->ifc_name, minor(dev)); in tun_dev_open()
|
H A D | if_loop.c | 167 loop_clone_create(struct if_clone *ifc, int unit) in loop_clone_create() argument 191 if_addgroup(ifp, ifc->ifc_name); in loop_clone_create()
|
H A D | if_vether.c | 73 vether_clone_create(struct if_clone *ifc, int unit) in vether_clone_create() argument
|
H A D | if_sec.c | 122 sec_clone_create(struct if_clone *ifc, int unit) in sec_clone_create() argument 134 ifc->ifc_name, unit); in sec_clone_create()
|
H A D | if_pflog.c | 98 pflog_clone_create(struct if_clone *ifc, int unit) in pflog_clone_create() argument
|
/openbsd/usr.sbin/ospf6d/ |
H A D | kroute.c | 969 struct ifaddrchange ifc; in if_newaddr() local 1028 ifc.addr = ia->addr; in if_newaddr() 1029 ifc.dstbrd = ia->dstbrd; in if_newaddr() 1031 ifc.ifindex = ifindex; in if_newaddr() 1032 main_imsg_compose_ospfe(IMSG_IFADDRNEW, 0, &ifc, sizeof(ifc)); in if_newaddr() 1033 main_imsg_compose_rde(IMSG_IFADDRNEW, 0, &ifc, sizeof(ifc)); in if_newaddr() 1043 struct ifaddrchange ifc; in if_deladdr() local 1072 ifc.addr = ia->addr; in if_deladdr() 1075 ifc.ifindex = ifindex; in if_deladdr() 1077 sizeof(ifc)); in if_deladdr() [all …]
|
H A D | ospfe.c | 253 struct ifaddrchange *ifc; in ospfe_dispatch_main() local 332 ifc = imsg.data; in ospfe_dispatch_main() 334 iface = if_find(ifc->ifindex); in ospfe_dispatch_main() 341 ia->addr = ifc->addr; in ospfe_dispatch_main() 342 ia->dstbrd = ifc->dstbrd; in ospfe_dispatch_main() 343 ia->prefixlen = ifc->prefixlen; in ospfe_dispatch_main() 352 ifc = imsg.data; in ospfe_dispatch_main() 354 iface = if_find(ifc->ifindex); in ospfe_dispatch_main() 363 &ifc->addr)) { in ospfe_dispatch_main()
|
H A D | rde.c | 643 struct ifaddrchange *ifc; in rde_dispatch_parent() local 737 ifc = imsg.data; in rde_dispatch_parent() 739 iface = if_find(ifc->ifindex); in rde_dispatch_parent() 746 ia->addr = ifc->addr; in rde_dispatch_parent() 747 ia->dstbrd = ifc->dstbrd; in rde_dispatch_parent() 748 ia->prefixlen = ifc->prefixlen; in rde_dispatch_parent() 758 ifc = imsg.data; in rde_dispatch_parent() 760 iface = if_find(ifc->ifindex); in rde_dispatch_parent() 769 &ifc->addr)) { in rde_dispatch_parent()
|
/openbsd/sbin/ifconfig/ |
H A D | brconfig.c | 833 struct ifbrlconf ifc; in bridge_rules() local 838 ifc.ifbrl_len = len; in bridge_rules() 842 ifc.ifbrl_buf = inbuf = inb; in bridge_rules() 843 strlcpy(ifc.ifbrl_name, ifname, sizeof(ifc.ifbrl_name)); in bridge_rules() 844 strlcpy(ifc.ifbrl_ifsname, ifsname, sizeof(ifc.ifbrl_ifsname)); in bridge_rules() 845 if (ioctl(sock, SIOCBRDGGRL, &ifc) == -1) in bridge_rules() 847 if (ifc.ifbrl_len + sizeof(*ifrp) < len) in bridge_rules() 851 ifrp = ifc.ifbrl_req; in bridge_rules() 852 for (i = 0; i < ifc.ifbrl_len; i += sizeof(*ifrp)) { in bridge_rules() 853 ifrp = (struct ifbrlreq *)((caddr_t)ifc.ifbrl_req + i); in bridge_rules()
|
/openbsd/usr.sbin/ospfd/ |
H A D | ospfe.c | 264 struct ifaddrchange *ifc; in ospfe_dispatch_main() local 354 ifc = imsg.data; in ospfe_dispatch_main() 358 if (ifc->ifindex == iface->ifindex && in ospfe_dispatch_main() 359 ifc->addr.s_addr == in ospfe_dispatch_main() 361 iface->mask = ifc->mask; in ospfe_dispatch_main() 362 iface->dst = ifc->dst; in ospfe_dispatch_main() 383 ifc = imsg.data; in ospfe_dispatch_main() 387 if (ifc->ifindex == iface->ifindex && in ospfe_dispatch_main() 388 ifc->addr.s_addr == in ospfe_dispatch_main()
|
H A D | kroute.c | 1134 struct ifaddrchange ifc; in if_deladdr() local 1148 ifc.addr = ifa->sin_addr; in if_deladdr() 1149 ifc.ifindex = ifindex; in if_deladdr() 1150 main_imsg_compose_ospfe(IMSG_IFADDRDEL, 0, &ifc, in if_deladdr() 1151 sizeof(ifc)); in if_deladdr()
|
/openbsd/usr.sbin/nsd/ |
H A D | xfrd.c | 1726 struct acl_options* ifc) in xfrd_send_udp() argument 1760 ifc->ip_address_spec); in xfrd_send_udp() 1794 if (!ifc) /* no outgoing interface set */ in xfrd_bind_local_interface() 1797 while (ifc) { in xfrd_bind_local_interface() 1798 if (ifc->is_ipv6 != acl->is_ipv6) { in xfrd_bind_local_interface() 1800 ifc = ifc->next; in xfrd_bind_local_interface() 1805 ifc->ip_address_spec, tcp? "tcp":"udp")); in xfrd_bind_local_interface() 1821 if (ifc->port != 0) { in xfrd_bind_local_interface() 1839 ifc->ip_address_spec, tcp? "tcp":"udp")); in xfrd_bind_local_interface() 1845 ifc->ip_address_spec, tcp? "tcp":"udp", in xfrd_bind_local_interface() [all …]
|
H A D | xfrd.h | 409 struct acl_options* ifc); 467 int xfrd_bind_local_interface(int sockd, struct acl_options* ifc,
|
/openbsd/regress/lib/libcrypto/x509/bettertls/certificates/ |
H A D | 118.chain | 17 FTebiunwzxqkcWRMdhVzkW8X6vOvzRQ63D/jCG9V7WoCAzfGus+q+dx5pnRA+ifc
|
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_interceptors_ioctl.inc | 591 struct __sanitizer_ifconf *ifc = (__sanitizer_ifconf *)arg; 592 COMMON_INTERCEPTOR_READ_RANGE(ctx, (char*)&ifc->ifc_len, 593 sizeof(ifc->ifc_len)); 607 struct __sanitizer_ifconf *ifc = (__sanitizer_ifconf *)arg; 608 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ifc->ifc_ifcu.ifcu_req, ifc->ifc_len);
|
/openbsd/gnu/usr.bin/gcc/gcc/objc/ |
H A D | Make-lang.in | 86 sed -e "/^ifc$$/,/^end ifc$$/d" \
|