Home
last modified time | relevance | path

Searched refs:ifc (Results 1 – 25 of 68) sorted by relevance

123

/NextBSD/sys/net/
HDif_clone.c98 static void if_clone_free(struct if_clone *ifc);
99 static int if_clone_createif(struct if_clone *ifc, char *name, size_t len,
118 #define IF_CLONE_LOCK_INIT(ifc) \ argument
119 mtx_init(&(ifc)->ifc_mtx, "if_clone lock", NULL, MTX_DEF)
120 #define IF_CLONE_LOCK_DESTROY(ifc) mtx_destroy(&(ifc)->ifc_mtx) argument
121 #define IF_CLONE_LOCK_ASSERT(ifc) mtx_assert(&(ifc)->ifc_mtx, MA_OWNED) argument
122 #define IF_CLONE_LOCK(ifc) mtx_lock(&(ifc)->ifc_mtx) argument
123 #define IF_CLONE_UNLOCK(ifc) mtx_unlock(&(ifc)->ifc_mtx) argument
125 #define IF_CLONE_ADDREF(ifc) \ argument
127 IF_CLONE_LOCK(ifc); \
[all …]
HDif_epair.c681 epair_clone_match(struct if_clone *ifc, const char *name) in epair_clone_match() argument
707 epair_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) in epair_clone_create() argument
741 error = ifc_alloc_unit(ifc, &unit); in epair_clone_create()
754 ifc_free_unit(ifc, unit); in epair_clone_create()
761 ifc_free_unit(ifc, unit); in epair_clone_create()
781 ifc_free_unit(ifc, unit); in epair_clone_create()
792 ifc_free_unit(ifc, unit); in epair_clone_create()
888 epair_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) in epair_clone_destroy() argument
931 error = if_clone_destroyif(ifc, oifp); in epair_clone_destroy()
950 ifc_free_unit(ifc, unit); in epair_clone_destroy()
HDif_stf.c190 stf_clone_match(struct if_clone *ifc, const char *name) in stf_clone_match() argument
203 stf_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) in stf_clone_create() argument
215 err = ifc_alloc_unit(ifc, &unit); in stf_clone_create()
223 ifc_free_unit(ifc, unit); in stf_clone_create()
243 ifc_free_unit(ifc, unit); in stf_clone_create()
257 stf_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) in stf_clone_destroy() argument
270 ifc_free_unit(ifc, STFUNIT); in stf_clone_destroy()
HDif.c641 if_attach_internal(struct ifnet *ifp, int vmove, struct if_clone *ifc) in if_attach_internal() argument
661 if (vmove && ifc != NULL) in if_attach_internal()
662 if_clone_addgroup(ifp, ifc); in if_attach_internal()
1023 struct if_clone *ifc; in if_vmove() local
1031 rc = if_detach_internal(ifp, 1, &ifc); in if_vmove()
1063 if_attach_internal(ifp, 1, ifc); in if_vmove()
2608 struct ifconf ifc; in ifioctl() local
2611 ifc.ifc_len = ifc32->ifc_len; in ifioctl()
2612 ifc.ifc_buf = PTRIN(ifc32->ifc_buf); in ifioctl()
2614 error = ifconf(SIOCGIFCONF, (void *)&ifc); in ifioctl()
[all …]
HDif_vlan.c835 vlan_clone_match(struct if_clone *ifc, const char *name) argument
853 vlan_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument
909 error = ifc_alloc_unit(ifc, &unit);
925 ifc_free_unit(ifc, unit);
968 ifc_free_unit(ifc, unit);
982 vlan_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) argument
991 ifc_free_unit(ifc, unit);
/NextBSD/contrib/bsnmp/snmp_mibII/
HDmibII_interfaces.c70 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 …]
/NextBSD/contrib/traceroute/
HDifaddrlist.c79 struct ifconf ifc; in ifaddrlist() local
90 ifc.ifc_len = sizeof(ibuf); in ifaddrlist()
91 ifc.ifc_buf = (caddr_t)ibuf; in ifaddrlist()
93 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 || in ifaddrlist()
94 ifc.ifc_len < (int)sizeof(struct ifreq)) { in ifaddrlist()
106 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len); in ifaddrlist()
/NextBSD/contrib/libpcap/
HDfad-gifc.c141 struct ifconf ifc; in pcap_findalldevs_interfaces() local
179 ifc.ifc_len = buf_size; in pcap_findalldevs_interfaces()
180 ifc.ifc_buf = buf; in pcap_findalldevs_interfaces()
182 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 in pcap_findalldevs_interfaces()
190 if (ifc.ifc_len < buf_size && in pcap_findalldevs_interfaces()
191 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcap_findalldevs_interfaces()
198 ifend = (struct ifreq *)(buf + ifc.ifc_len); in pcap_findalldevs_interfaces()
HDfad-glifc.c84 struct lifconf ifc; in pcap_findalldevs_interfaces() local
146 ifc.lifc_len = buf_size; in pcap_findalldevs_interfaces()
147 ifc.lifc_buf = buf; in pcap_findalldevs_interfaces()
148 ifc.lifc_family = AF_UNSPEC; in pcap_findalldevs_interfaces()
149 ifc.lifc_flags = 0; in pcap_findalldevs_interfaces()
151 if (ioctl(fd4, SIOCGLIFCONF, (char *)&ifc) < 0) { in pcap_findalldevs_interfaces()
164 ifend = (struct lifreq *)(buf + ifc.lifc_len); in pcap_findalldevs_interfaces()
/NextBSD/sys/compat/svr4/
HDsvr4_sockio.c147 struct ifconf *ifc; local
156 ifc = (struct ifconf *)&sc;
157 ifc->ifc_req->ifr_addr.sa_family =
159 ifc->ifc_req->ifr_addr.sa_len =
166 ifc->ifc_req->ifr_addr.sa_family;
/NextBSD/libexec/rbootd/
HDbpf.c219 struct ifconf ifc; in BpfGetIntfName() local
233 ifc.ifc_len = sizeof ibuf; in BpfGetIntfName()
234 ifc.ifc_buf = (caddr_t)ibuf; in BpfGetIntfName()
236 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 || in BpfGetIntfName()
237 ifc.ifc_len < sizeof(struct ifreq)) { in BpfGetIntfName()
242 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len); in BpfGetIntfName()
/NextBSD/usr.sbin/route6d/
HDroute6d.c92 struct ifc { /* Configuration of an interface */ struct
93 TAILQ_ENTRY(ifc) ifc_next;
107 TAILQ_HEAD(, ifc) ifc_head = TAILQ_HEAD_INITIALIZER(ifc_head);
112 struct ifc *ifac_ifc; /* back pointer */
127 struct ifc **index2ifc;
129 struct ifc *loopifcp = NULL; /* pointing to loopback */
212 void ripsend(struct ifc *, struct sockaddr_in6 *, int);
213 int out_filter(struct riprt *, struct ifc *);
215 void sockopt(struct ifc *);
217 int ifconfig1(const char *, const struct sockaddr *, struct ifc *, int);
[all …]
/NextBSD/libexec/bootpd/
HDgetether.c129 struct ifconf ifc; local
138 ifc.ifc_len = sizeof(ibuf);
139 ifc.ifc_buf = (caddr_t) ibuf;
140 if (ioctl(fd, SIOCGIFCONF, (char *) &ifc) < 0 ||
141 ifc.ifc_len < sizeof(struct ifreq)) {
147 ifend = (struct ifreq *) ((char *) ibuf + ifc.ifc_len);
/NextBSD/contrib/ntp/lib/isc/unix/
HDifiter_ioctl.c60 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 …]
/NextBSD/contrib/amd/libamu/
HDwire.c449 #define clist (ifc.ifc_ifcu.ifcu_req)
450 #define count (ifc.ifc_len/sizeof(struct ifreq))
456 struct ifconf ifc; local
481 ifc.ifc_len = sizeof(buf);
482 ifc.ifc_buf = buf;
487 if (ioctl(fd, SIOCGIFCONF, (caddr_t) & ifc) < 0)
493 cplim = buf + ifc.ifc_len;
/NextBSD/sys/netpfil/ipfw/
HDip_fw_log.c141 ipfw_log_clone_match(struct if_clone *ifc, const char *name) in ipfw_log_clone_match() argument
148 ipfw_log_clone_create(struct if_clone *ifc, char *name, size_t len, in ipfw_log_clone_create() argument
159 error = ifc_alloc_unit(ifc, &unit); in ipfw_log_clone_create()
165 ifc_free_unit(ifc, unit); in ipfw_log_clone_create()
189 ifc_free_unit(ifc, unit); in ipfw_log_clone_create()
200 ipfw_log_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) in ipfw_log_clone_destroy() argument
220 ifc_free_unit(ifc, unit); in ipfw_log_clone_destroy()
/NextBSD/usr.sbin/arp/
HDarp.c800 struct ifconf ifc; in get_ether_addr() local
809 ifc.ifc_len = sizeof(ifs); in get_ether_addr()
810 ifc.ifc_req = ifs; in get_ether_addr()
811 if (ioctl(sock, SIOCGIFCONF, &ifc) < 0) { in get_ether_addr()
824 ifend = (struct ifreq *)(ifc.ifc_buf + ifc.ifc_len); in get_ether_addr()
825 for (ifr = ifc.ifc_req; ifr < ifend; ifr = NEXTIFR(ifr) ) { in get_ether_addr()
864 for (ifr = ifc.ifc_req; ifr < ifend; ifr = NEXTIFR(ifr)) in get_ether_addr()
/NextBSD/sys/dev/usb/
HDusb_pf.c151 usbpf_clone_match(struct if_clone *ifc, const char *name) in usbpf_clone_match() argument
165 usbpf_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) in usbpf_clone_create() argument
184 error = ifc_alloc_unit(ifc, &unit); in usbpf_clone_create()
192 ifc_free_unit(ifc, unit); in usbpf_clone_create()
216 usbpf_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) in usbpf_clone_destroy() argument
234 ifc_free_unit(ifc, unit); in usbpf_clone_destroy()
/NextBSD/sys/dev/cxgbe/
HDt4_tracer.c123 t4_cloner_match(struct if_clone *ifc, const char *name) in t4_cloner_match() argument
135 t4_cloner_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) in t4_cloner_create() argument
170 rc = ifc_alloc_unit(ifc, &unit); in t4_cloner_create()
176 ifc_free_unit(ifc, unit); in t4_cloner_create()
208 t4_cloner_destroy(struct if_clone *ifc, struct ifnet *ifp) in t4_cloner_destroy() argument
224 ifc_free_unit(ifc, unit); in t4_cloner_destroy()
/NextBSD/share/doc/psd/21.ipc/
HDspell.ok205 ifc
206 ifc.ifc
/NextBSD/lib/libosxsupport/uuid/
HDgen_uuid.c241 struct ifconf ifc; in get_node_id() local
270 ifc.ifc_len = sizeof(buf); in get_node_id()
271 ifc.ifc_buf = (void *)buf; in get_node_id()
272 if (ioctl (sd, SIOCGIFCONF, (char *)&ifc) < 0) { in get_node_id()
276 n = ifc.ifc_len; in get_node_id()
/NextBSD/usr.sbin/timed/timed/
HDtimed.c121 struct ifconf ifc; in main() local
268 ifc.ifc_len = sizeof(buf); in main()
269 ifc.ifc_buf = buf; in main()
270 if (ioctl(sock, SIOCGIFCONF, (char *)&ifc) < 0) in main()
274 cplim = buf + ifc.ifc_len; /*skip over if's with big ifr_addr's */ in main()
/NextBSD/contrib/compiler-rt/lib/sanitizer_common/
HDsanitizer_common_interceptors_ioctl.inc582 struct __sanitizer_ifconf *ifc = (__sanitizer_ifconf *)arg;
583 COMMON_INTERCEPTOR_READ_RANGE(ctx, &ifc->ifc_len, sizeof(ifc->ifc_len));
597 struct __sanitizer_ifconf *ifc = (__sanitizer_ifconf *)arg;
598 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ifc->ifc_ifcu.ifcu_req, ifc->ifc_len);
/NextBSD/sys/compat/linux/
HDlinux_ioctl.c2166 struct l_ifconf ifc; in linux_ifconf() local
2168 struct ifconf ifc; in linux_ifconf()
2176 error = copyin(uifc, &ifc, sizeof(ifc)); in linux_ifconf()
2184 if ((l_uintptr_t)ifc.ifc_buf == PTROUT(NULL)) { in linux_ifconf()
2185 ifc.ifc_len = 0; in linux_ifconf()
2191 ifc.ifc_len += sizeof(ifr); in linux_ifconf()
2195 error = copyout(&ifc, uifc, sizeof(ifc)); in linux_ifconf()
2200 if (ifc.ifc_len <= 0) { in linux_ifconf()
2208 if (ifc.ifc_len <= max_len) { in linux_ifconf()
2209 max_len = ifc.ifc_len; in linux_ifconf()
[all …]
/NextBSD/sys/gnu/dts/arm/
HDls1021a.dtsi118 ifc: ifc@1530000 { label
119 compatible = "fsl,ifc", "simple-bus";

123