| /freebsd/sys/net/ |
| H A D | if_clone.c | 112 static void if_clone_free(struct if_clone *ifc); 113 static int if_clone_createif_nl(struct if_clone *ifc, const char *name, 116 static int ifc_simple_match(struct if_clone *ifc, const char *name); 117 static int ifc_handle_unit(struct if_clone *ifc, char *name, size_t len, int *punit); 122 static int ifc_simple_create_wrapper(struct if_clone *ifc, char *name, size_t maxlen, 124 static int ifc_advanced_create_wrapper(struct if_clone *ifc, char *name, size_t maxlen, 140 #define IF_CLONE_LOCK_INIT(ifc) \ argument 141 mtx_init(&(ifc)->ifc_mtx, "if_clone lock", NULL, MTX_DEF) 142 #define IF_CLONE_LOCK_DESTROY(ifc) mtx_destroy(&(ifc)->ifc_mtx) argument 143 #define IF_CLONE_LOCK_ASSERT(ifc) mtx_assert(&(ifc)->ifc_mtx, MA_OWNED) argument [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, 111 void ifc_detach_cloner(struct if_clone *ifc); 118 void ifc_link_ifp(struct if_clone *ifc, struct ifnet *ifp); 119 bool ifc_unlink_ifp(struct if_clone *ifc, struct ifnet *ifp);
|
| H A D | if_epair.c | 538 epair_clone_match(struct if_clone *ifc, const char *name) in epair_clone_match() argument 573 epair_clone_add(struct if_clone *ifc, struct epair_softc *scb) in epair_clone_add() argument 587 if_clone_addif(ifc, ifp); in epair_clone_add() 591 epair_alloc_sc(struct if_clone *ifc) in epair_alloc_sc() argument 718 epair_handle_unit(struct if_clone *ifc, char *name, size_t len, int *punit) in epair_handle_unit() argument 729 error = ifc_alloc_unit(ifc, &unit); in epair_handle_unit() 770 ifc_free_unit(ifc, unit); in epair_handle_unit() 776 epair_clone_create(struct if_clone *ifc, char *name, size_t len, in epair_clone_create() argument 785 error = epair_handle_unit(ifc, name, len, &unit); in epair_clone_create() 790 sca = epair_alloc_sc(ifc); in epair_clone_create() [all …]
|
| /freebsd/contrib/bsnmp/snmp_mibII/ |
| H A D | mibII_interfaces.c | 70 struct ifchange *ifc = (struct ifchange *)dep; in ifchange_func() local 74 if ((ifp = mib_find_if(ifc->ifindex)) == NULL) in ifchange_func() 85 if (ifc->set & IFC_PROMISC) { in ifchange_func() 87 if (ifc->promisc) in ifchange_func() 89 ifc->rb |= IFRB_FLAGS; in ifchange_func() 91 if (ifc->set & IFC_ADMIN) { in ifchange_func() 93 if (ifc->admin) in ifchange_func() 95 ifc->rb |= IFRB_FLAGS; in ifchange_func() 97 if (ifc->rb & IFRB_FLAGS) { in ifchange_func() 103 ifc->rb_flags = ifr1.ifr_flags; in ifchange_func() [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/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 15 - interrupts: IFC may have one or two interrupts. If two interrupt 27 Child device nodes describe the devices connected to IFC such as NOR (e.g. 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# 13 NXP's integrated flash controller (IFC) is an advanced version of the 15 interfaces with an extended feature set. The IFC provides access to multiple 24 const: fsl,ifc 44 IFC may have one or two interrupts. If two interrupt specifiers are 64 Child device nodes describe the devices connected to IFC such as NOR (e.g. 65 cfi-flash) and NAND (fsl,ifc-nand). There might be board specific devices 86 compatible = "fsl,ifc";
|
| /freebsd/sys/contrib/device-tree/Bindings/sound/ |
| H A D | qcom,wcd9335.yaml | 48 slim-ifc-dev: 49 description: SLIM IFC device interface 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: 32 description: IFC device interface 158 - slim-ifc-dev 162 - slim-ifc-dev 183 slim-ifc-dev: false 207 slim-ifc-dev = <&wcd9340_ifd>;
|
| /freebsd/crypto/krb5/src/lib/krb5/os/ |
| H A D | t_gifconf.c | 85 struct ifconf ifc; in main() local 95 ifc.ifc_len = t; in main() 96 ifc.ifc_buf = buffer; in main() 98 i = ioctl (sock, SIOCGIFCONF, (char *) &ifc); in main() 127 if (olen != ifc.ifc_len || omod != i) { in main() 129 t, ifc.ifc_len, i); in main() 130 olen = ifc.ifc_len; in main()
|
| /freebsd/crypto/krb5/src/lib/rpc/ |
| H A D | get_myaddress.c | 88 struct ifconf ifc; in get_myaddress() local 97 ifc.ifc_len = sizeof (buf); in get_myaddress() 98 ifc.ifc_buf = buf; in get_myaddress() 99 if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) { in get_myaddress() 103 ifr = ifc.ifc_req; in get_myaddress() 104 for (len = ifc.ifc_len; len; len -= sizeof ifreq) { in get_myaddress()
|
| H A D | pmap_rmt.c | 189 struct ifconf ifc; in getbroadcastnets() local 193 ifc.ifc_len = GIFCONF_BUFSIZE; in getbroadcastnets() 194 ifc.ifc_buf = buf; in getbroadcastnets() 196 if (ioctl(sock, SIOCGIFCONF, (char *)&ifc) < 0) { in getbroadcastnets() 200 ifr = ifc.ifc_req; in getbroadcastnets() 201 for (i = 0, n = ifc.ifc_len/sizeof (struct ifreq); n > 0; n--, ifr++) { in getbroadcastnets()
|
| /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/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-glifc.c | 85 struct lifconf ifc; in pcapint_findalldevs_interfaces() local 147 ifc.lifc_len = buf_size; in pcapint_findalldevs_interfaces() 148 ifc.lifc_buf = buf; in pcapint_findalldevs_interfaces() 149 ifc.lifc_family = AF_UNSPEC; in pcapint_findalldevs_interfaces() 150 ifc.lifc_flags = 0; in pcapint_findalldevs_interfaces() 152 if (ioctl(fd4, SIOCGLIFCONF, (char *)&ifc) < 0) { in pcapint_findalldevs_interfaces() 165 ifend = (struct lifreq *)(buf + ifc.lifc_len); in pcapint_findalldevs_interfaces()
|
| H A D | fad-gifc.c | 143 struct ifconf ifc; in pcapint_findalldevs_interfaces() local 191 ifc.ifc_len = buf_size; in pcapint_findalldevs_interfaces() 192 ifc.ifc_buf = buf; in pcapint_findalldevs_interfaces() 194 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 in pcapint_findalldevs_interfaces() 202 if (ifc.ifc_len < (int)buf_size && in pcapint_findalldevs_interfaces() 203 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcapint_findalldevs_interfaces() 210 ifend = (struct ifreq *)(buf + ifc.ifc_len); in pcapint_findalldevs_interfaces() 233 * doesn't update ifc.ifc_len, leaving it larger than the in pcapint_findalldevs_interfaces()
|
| /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() 150 if (isc_ioctl(iter->socket, SIOCGIFCONF, (char *)&iter->ifc) in getbuf4() 172 * ifc.lifc_len is too near to the end of the in getbuf4() 176 if (iter->ifc.ifc_len + 2 * sizeof(struct ifreq) in getbuf4() 273 * ifc.ifc_len is too near to the end of the in getbuf6() 464 if (iter->ifc.ifc_len == 0 || in internal_current4() 465 iter->pos == (unsigned int)iter->ifc.ifc_len) { in internal_current4() [all …]
|
| /freebsd/usr.sbin/route6d/ |
| H A D | route6d.c | 83 struct ifc { /* Configuration of an interface */ struct 84 TAILQ_ENTRY(ifc) ifc_next; 98 static TAILQ_HEAD(, ifc) ifc_head = TAILQ_HEAD_INITIALIZER(ifc_head); 103 struct ifc *ifac_ifc; /* back pointer */ 118 static struct ifc **index2ifc; 120 static struct ifc *loopifcp = NULL; /* pointing to loopback */ 204 static void ripsend(struct ifc *, struct sockaddr_in6 *, int); 205 static int out_filter(struct riprt *, struct ifc *); 208 static int ifconfig1(const char *, const struct sockaddr *, struct ifc *, int); 212 static int rt_deladdr(struct ifc *, const struct sockaddr_in6 *, [all …]
|
| /freebsd/share/doc/psd/21.ipc/ |
| H A D | spell.ok | 205 ifc 206 ifc.ifc
|
| /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/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/crypto/openssl/doc/man3/ |
| H A D | BN_security_bits.pod | 18 of asymmetric algorithms: the FFC (Finite Field Cryptography) and IFC 22 key. For IFC, e.g., RSA, only B<L> is used and it's commonly considered
|
| /freebsd/sys/contrib/device-tree/Bindings/slimbus/ |
| H A D | bus.txt | 36 - slim-ifc-dev - Should be phandle to SLIMBus Interface device. 58 slim-ifc-dev = <&codec_ifd>;
|
| /freebsd/sys/contrib/device-tree/src/powerpc/fsl/ |
| H A D | c293pcie.dts | 45 ifc: memory-controller@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() 217 usbpf_clone_destroy(struct if_clone *ifc, if_t ifp, uint32_t flags) in usbpf_clone_destroy() argument 235 ifc_free_unit(ifc, unit); in usbpf_clone_destroy()
|