/freebsd/sys/net/ |
H A D | if_clone.c | 144 #define IF_CLONE_LOCK(ifc) mtx_lock(&(ifc)->ifc_mtx) argument 145 #define IF_CLONE_UNLOCK(ifc) mtx_unlock(&(ifc)->ifc_mtx) argument 346 if (ifc->ifc_match(ifc, name)) in ifc_find_cloner_match() 351 return (ifc); in ifc_find_cloner_match() 367 return (ifc); in ifc_find_cloner() 377 return (ifc); in ifc_find_cloner_in_vnet() 400 error = (*ifc->create_nl)(ifc, name, sizeof(name), ifd); in if_clone_createif_nl() 464 err = (*ifc->ifc_destroy)(ifc, ifp, flags); in if_clone_destroyif_flags() 492 ifc->ifc_unrhdr = new_unrhdr(0, ifc->ifc_maxunit, &ifc->ifc_mtx); in if_clone_alloc() 499 return (ifc); in if_clone_alloc() [all …]
|
H A D | if_clone.h | 51 typedef int ifc_match_f(struct if_clone *ifc, const char *name); 52 typedef int ifc_create_f(struct if_clone *ifc, char *name, size_t maxlen, 54 typedef int ifc_destroy_f(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags); 71 typedef int ifc_create_nl_f(struct if_clone *ifc, char *name, size_t maxlen, 106 void ifc_detach_cloner(struct if_clone *ifc); 113 void ifc_link_ifp(struct if_clone *ifc, struct ifnet *ifp); 114 bool ifc_unlink_ifp(struct if_clone *ifc, struct ifnet *ifp);
|
H A D | if_epair.c | 510 if_clone_addif(ifc, ifp); in epair_clone_add() 514 epair_alloc_sc(struct if_clone *ifc) in epair_alloc_sc() argument 654 error = ifc_alloc_unit(ifc, &unit); in epair_handle_unit() 695 ifc_free_unit(ifc, unit); in epair_handle_unit() 710 error = epair_handle_unit(ifc, name, len, &unit); in epair_clone_create() 715 sca = epair_alloc_sc(ifc); in epair_clone_create() 716 scb = epair_alloc_sc(ifc); in epair_clone_create() 720 ifc_free_unit(ifc, unit); in epair_clone_create() 749 epair_clone_add(ifc, scb); in epair_clone_create() 816 error = if_clone_destroyif(ifc, oifp); in epair_clone_destroy() [all …]
|
/freebsd/contrib/bsnmp/snmp_mibII/ |
H A D | mibII_interfaces.c | 87 if (ifc->promisc) in ifchange_func() 89 ifc->rb |= IFRB_FLAGS; in ifchange_func() 93 if (ifc->admin) in ifchange_func() 95 ifc->rb |= IFRB_FLAGS; in ifchange_func() 111 ifc->rb |= IFRB_TRAPS; in ifchange_func() 127 if (ifc->rb & IFRB_TRAPS) in ifchange_func() 196 struct ifchange *ifc; in op_ifentry() local 234 if (ifc->set & IFC_ADMIN) in op_ifentry() 236 ifc->set |= IFC_ADMIN; in op_ifentry() 371 struct ifchange *ifc; in op_ifxtable() local [all …]
|
/freebsd/contrib/netbsd-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()
|
/freebsd/usr.sbin/traceroute/ |
H A D | ifaddrlist.c | 70 struct ifconf ifc; in ifaddrlist() local 81 ifc.ifc_len = sizeof(ibuf); in ifaddrlist() 82 ifc.ifc_buf = (caddr_t)ibuf; in ifaddrlist() 84 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 || in ifaddrlist() 85 ifc.ifc_len < (int)sizeof(struct ifreq)) { in ifaddrlist() 97 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len); in ifaddrlist()
|
/freebsd/contrib/libpcap/ |
H A D | fad-gifc.c | 141 struct ifconf ifc; in pcap_findalldevs_interfaces() local 189 ifc.ifc_len = buf_size; in pcap_findalldevs_interfaces() 190 ifc.ifc_buf = buf; in pcap_findalldevs_interfaces() 192 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 in pcap_findalldevs_interfaces() 200 if (ifc.ifc_len < (int)buf_size && in pcap_findalldevs_interfaces() 201 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcap_findalldevs_interfaces() 208 ifend = (struct ifreq *)(buf + ifc.ifc_len); in pcap_findalldevs_interfaces()
|
H A D | fad-glifc.c | 83 struct lifconf ifc; in pcap_findalldevs_interfaces() local 145 ifc.lifc_len = buf_size; in pcap_findalldevs_interfaces() 146 ifc.lifc_buf = buf; in pcap_findalldevs_interfaces() 147 ifc.lifc_family = AF_UNSPEC; in pcap_findalldevs_interfaces() 148 ifc.lifc_flags = 0; in pcap_findalldevs_interfaces() 150 if (ioctl(fd4, SIOCGLIFCONF, (char *)&ifc) < 0) { in pcap_findalldevs_interfaces() 163 ifend = (struct lifreq *)(buf + ifc.lifc_len); in pcap_findalldevs_interfaces()
|
/freebsd/contrib/netbsd-tests/net/mcast/ |
H A D | mcast.c | 97 unsigned int ifc; in addmc() local 129 ifc = 1; in addmc() 131 &ifc, sizeof(ifc)) == -1) in addmc() 133 ifc = 224; in addmc() 135 &ifc, sizeof(ifc)) == -1) in addmc() 137 ifc = 1; /* XXX should pick a proper interface */ in addmc() 138 if (setsockopt(s, IPPROTO_IPV6, IPV6_MULTICAST_IF, &ifc, in addmc() 139 sizeof(ifc)) == -1) in addmc() 142 ifc = 0; /* Let pick an appropriate interface */ in addmc() 144 m6.ipv6mr_interface = ifc; in addmc()
|
/freebsd/sys/contrib/device-tree/Bindings/memory-controllers/fsl/ |
H A D | ifc.txt | 4 - name : Should be ifc 5 - compatible : should contain "fsl,ifc". The version of the integrated 28 cfi-flash) and NAND (fsl,ifc-nand). There might be board specific devices 33 ifc@ffe1e000 { 34 compatible = "fsl,ifc", "simple-bus"; 64 compatible = "fsl,ifc-nand";
|
H A D | fsl,ifc.yaml | 4 $id: http://devicetree.org/schemas/memory-controllers/fsl/fsl,ifc.yaml# 24 const: fsl,ifc 65 cfi-flash) and NAND (fsl,ifc-nand). There might be board specific devices 86 compatible = "fsl,ifc";
|
/freebsd/libexec/rbootd/ |
H A D | bpf.c | 211 struct ifconf ifc; in BpfGetIntfName() local 225 ifc.ifc_len = sizeof ibuf; in BpfGetIntfName() 226 ifc.ifc_buf = (caddr_t)ibuf; in BpfGetIntfName() 228 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 || in BpfGetIntfName() 229 ifc.ifc_len < sizeof(struct ifreq)) { in BpfGetIntfName() 234 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len); in BpfGetIntfName()
|
/freebsd/usr.sbin/route6d/ |
H A D | route6d.c | 278 struct ifc *ifcp; in main() 577 struct ifc *ifcp; in ripalarm() 1512 struct ifc *ifcp; in ifconfig() 1586 struct ifc *ifcp, in ifconfig1() 1666 struct ifc *ifcp; in ifremove() 2813 struct ifc *ifcp) in addroute() 3020 struct ifc *ifcp; in ifdump() 3167 struct ifc *ifcp; in filterconfig() 3523 static struct ifc * 3526 struct ifc *ifcp; in ifc_find() [all …]
|
/freebsd/libexec/bootpd/ |
H A D | getether.c | 125 struct ifconf ifc; in getether() local 134 ifc.ifc_len = sizeof(ibuf); in getether() 135 ifc.ifc_buf = (caddr_t) ibuf; in getether() 136 if (ioctl(fd, SIOCGIFCONF, (char *) &ifc) < 0 || in getether() 137 ifc.ifc_len < sizeof(struct ifreq)) { in getether() 143 ifend = (struct ifreq *) ((char *) ibuf + ifc.ifc_len); in getether()
|
/freebsd/sys/contrib/device-tree/Bindings/sound/ |
H A D | qcom,wcd9335.yaml | 48 slim-ifc-dev: 84 - slim-ifc-dev 94 - slim-ifc-dev 110 slim-ifc-dev: false 148 slim-ifc-dev = <&tasha_ifd>;
|
H A D | qcom,wcd934x.yaml | 31 slim-ifc-dev: 158 - slim-ifc-dev 162 - slim-ifc-dev 183 slim-ifc-dev: false 206 slim-ifc-dev = <&wcd9340_ifd>;
|
/freebsd/contrib/ntp/libntp/lib/isc/unix/ |
H A D | ifiter_ioctl.c | 60 struct ifconf ifc; member 142 memset(&iter->ifc.ifc_len, 0, sizeof(iter->ifc.ifc_len)); in getbuf4() 143 iter->ifc.ifc_len = iter->bufsize; in getbuf4() 144 iter->ifc.ifc_buf = iter->buf; in getbuf4() 176 if (iter->ifc.ifc_len + 2 * sizeof(struct ifreq) in getbuf4() 464 if (iter->ifc.ifc_len == 0 || in internal_current4() 465 iter->pos == (unsigned int)iter->ifc.ifc_len) { in internal_current4() 473 INSIST( iter->pos < (unsigned int) iter->ifc.ifc_len); in internal_current4() 475 ifrp = (void *)((char *) iter->ifc.ifc_req + iter->pos); in internal_current4() 917 if (iter->pos < (unsigned int) iter->ifc.ifc_len) { in internal_next4() [all …]
|
/freebsd/sys/contrib/device-tree/src/powerpc/fsl/ |
H A D | bsc9131rdb.dts | 18 board_ifc: ifc: ifc@ff71e000 {
|
H A D | bsc9132qds.dts | 18 ifc: ifc@ff71e000 { label
|
H A D | c293pcie.dts | 45 ifc: ifc@fffe1e000 { label 73 &ifc { 117 compatible = "fsl,ifc-nand";
|
/freebsd/sys/dev/usb/ |
H A D | usb_pf.c | 157 usbpf_clone_match(struct if_clone *ifc, const char *name) in usbpf_clone_match() argument 171 usbpf_clone_create(struct if_clone *ifc, char *name, size_t len, in usbpf_clone_create() argument 191 error = ifc_alloc_unit(ifc, &unit); in usbpf_clone_create() 199 ifc_free_unit(ifc, unit); in usbpf_clone_create() 223 usbpf_clone_destroy(struct if_clone *ifc, if_t ifp, uint32_t flags) in usbpf_clone_destroy() argument 241 ifc_free_unit(ifc, unit); in usbpf_clone_destroy()
|
/freebsd/share/doc/psd/21.ipc/ |
H A D | spell.ok | 205 ifc 206 ifc.ifc
|
/freebsd/sys/contrib/device-tree/src/arm64/freescale/ |
H A D | fsl-ls208xa-rdb.dtsi | 16 &ifc { 34 compatible = "fsl,ifc-nand";
|
H A D | fsl-ls1046a-frwy.dts | 93 &ifc { 101 compatible = "fsl,ifc-nand";
|
/freebsd/sys/netpfil/ipfw/ |
H A D | ip_fw_bpf.c | 93 ipfw_clone_create(struct if_clone *ifc, int unit, caddr_t params) in ipfw_clone_create() argument 119 ipfwlog_clone_create(struct if_clone *ifc, int unit, caddr_t params) in ipfwlog_clone_create() argument
|