/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 | 475 epair_clone_match(struct if_clone *ifc, const char *name) in epair_clone_match() argument 499 epair_clone_add(struct if_clone *ifc, struct epair_softc *scb) in epair_clone_add() argument 510 if_clone_addif(ifc, ifp); in epair_clone_add() 514 epair_alloc_sc(struct if_clone *ifc) in epair_alloc_sc() argument 638 epair_handle_unit(struct if_clone *ifc, char *name, size_t len, int *punit) in epair_handle_unit() argument 649 error = ifc_alloc_unit(ifc, &unit); in epair_handle_unit() 690 ifc_free_unit(ifc, unit); in epair_handle_unit() 696 epair_clone_create(struct if_clone *ifc, char *name, size_t len, in epair_clone_create() argument 705 error = epair_handle_unit(ifc, name, len, &unit); in epair_clone_create() 710 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/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()
|
/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";
|
/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/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/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/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() 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() [all …]
|
/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()
|
/freebsd/usr.sbin/bluetooth/rtlbtfw/ |
H A D | main.c | 170 const struct libusb_interface *ifc; in rtlbt_is_bluetooth() local 183 ifc = &cfg->interface[0]; in rtlbt_is_bluetooth() 184 if (ifc->num_altsetting != 0) { in rtlbt_is_bluetooth() 186 d = &ifc->altsetting[0]; in rtlbt_is_bluetooth()
|
/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";
|
H A D | fsl-ls1088a-qds.dts | 110 &ifc { 124 compatible = "fsl,ifc-nand";
|
H A D | fsl-ls1046a-rdb.dts | 78 &ifc { 87 compatible = "fsl,ifc-nand";
|
/freebsd/sys/netpfil/pf/ |
H A D | if_pflog.c | 150 pflog_clone_create(struct if_clone *ifc, char *name, size_t maxlen, in pflog_clone_create() argument 169 pflog_clone_destroy(ifc, ifp, IFC_F_FORCE); in pflog_clone_create() 179 pflog_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) in pflog_clone_destroy() argument
|
/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 117 ipfwlog_clone_create(struct if_clone *ifc, int unit, caddr_t params) in ipfwlog_clone_create() argument
|
/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";
|