Searched refs:ifc (Results 1 - 25 of 60) sorted by relevance

123

/freebsd-11.0-release/sys/net/
H A Dif_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) \
119 mtx_init(&(ifc)->ifc_mtx, "if_clone lock", NULL, MTX_DEF)
120 #define IF_CLONE_LOCK_DESTROY(ifc) mtx_destroy(&(ifc)->ifc_mtx)
121 #define IF_CLONE_LOCK_ASSERT(ifc) mtx_assert(&(ifc)->ifc_mtx, MA_OWNED)
122 #define IF_CLONE_LOCK(ifc) mtx_lock(&(ifc)
177 struct if_clone *ifc; local
215 if_clone_createif(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument
250 struct if_clone *ifc; local
293 if_clone_destroyif(struct if_clone *ifc, struct ifnet *ifp) argument
342 struct if_clone *ifc; local
358 if_clone_attach(struct if_clone *ifc) argument
380 struct if_clone *ifc; local
402 struct if_clone *ifc; local
436 if_clone_detach(struct if_clone *ifc) argument
456 if_clone_free(struct if_clone *ifc) argument
474 struct if_clone *ifc; local
528 struct if_clone *ifc, *ifc0; local
556 if_clone_addgroup(struct ifnet *ifp, struct if_clone *ifc) argument
599 ifc_alloc_unit(struct if_clone *ifc, int *unit) argument
639 ifc_free_unit(struct if_clone *ifc, int unit) argument
647 ifc_simple_match(struct if_clone *ifc, const char *name) argument
668 ifc_simple_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument
710 ifc_simple_destroy(struct if_clone *ifc, struct ifnet *ifp) argument
[all...]
H A Dif_stf.c190 stf_clone_match(struct if_clone *ifc, const char *name) argument
203 stf_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument
215 err = ifc_alloc_unit(ifc, &unit);
223 ifc_free_unit(ifc, unit);
243 ifc_free_unit(ifc, unit);
257 stf_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) argument
270 ifc_free_unit(ifc, STFUNIT);
H A Dif_epair.c682 epair_clone_match(struct if_clone *ifc, const char *name) argument
708 epair_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument
742 error = ifc_alloc_unit(ifc, &unit);
755 ifc_free_unit(ifc, unit);
762 ifc_free_unit(ifc, unit);
782 ifc_free_unit(ifc, unit);
793 ifc_free_unit(ifc, unit);
889 epair_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) argument
932 error = if_clone_destroyif(ifc, oifp);
951 ifc_free_unit(ifc, uni
[all...]
H A Dif_disc.c81 disc_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument
H A Dif_edsc.c95 edsc_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument
H A Dif_vlan.c862 vlan_clone_match(struct if_clone *ifc, const char *name) argument
880 vlan_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument
936 error = ifc_alloc_unit(ifc, &unit);
952 ifc_free_unit(ifc, unit);
995 ifc_free_unit(ifc, unit);
1009 vlan_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) argument
1018 ifc_free_unit(ifc, unit);
H A Dif.c598 * ifc->ifc_name. To recover this after if_detach_internal() and
600 * if_attach_internal() via ifc. If it is non-NULL, if_attach_internal()
601 * attempts to join a group whose name is ifc->ifc_name.
668 if_attach_internal(struct ifnet *ifp, int vmove, struct if_clone *ifc) argument
688 if (vmove && ifc != NULL)
689 if_clone_addgroup(ifp, ifc);
1111 struct if_clone *ifc; local
1127 rc = if_detach_internal(ifp, 1, &ifc);
1159 if_attach_internal(ifp, 1, ifc);
2753 struct ifconf ifc; local
2968 struct ifconf *ifc = (struct ifconf *)data; local
[all...]
H A Dif_loop.c121 lo_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument
/freebsd-11.0-release/contrib/bsnmp/snmp_mibII/
H A DmibII_interfaces.c70 struct ifchange *ifc = (struct ifchange *)dep; local
74 if ((ifp = mib_find_if(ifc->ifindex)) == NULL)
85 if (ifc->set & IFC_PROMISC) {
87 if (ifc->promisc)
89 ifc->rb |= IFRB_FLAGS;
91 if (ifc->set & IFC_ADMIN) {
93 if (ifc->admin)
95 ifc->rb |= IFRB_FLAGS;
97 if (ifc->rb & IFRB_FLAGS) {
103 ifc
196 struct ifchange *ifc; local
371 struct ifchange *ifc; local
[all...]
/freebsd-11.0-release/contrib/traceroute/
H A Difaddrlist.c79 struct ifconf ifc; local
90 ifc.ifc_len = sizeof(ibuf);
91 ifc.ifc_buf = (caddr_t)ibuf;
93 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 ||
94 ifc.ifc_len < (int)sizeof(struct ifreq)) {
106 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);
/freebsd-11.0-release/contrib/libpcap/
H A Dfad-gifc.c141 struct ifconf ifc; local
179 ifc.ifc_len = buf_size;
180 ifc.ifc_buf = buf;
182 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0
190 if (ifc.ifc_len < buf_size &&
191 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN)
198 ifend = (struct ifreq *)(buf + ifc.ifc_len);
221 * doesn't update ifc.ifc_len, leaving it larger than the
H A Dfad-glifc.c84 struct lifconf ifc; local
146 ifc.lifc_len = buf_size;
147 ifc.lifc_buf = buf;
148 ifc.lifc_family = AF_UNSPEC;
149 ifc.lifc_flags = 0;
151 if (ioctl(fd4, SIOCGLIFCONF, (char *)&ifc) < 0) {
164 ifend = (struct lifreq *)(buf + ifc.lifc_len);
/freebsd-11.0-release/libexec/bootpd/
H A Dgetether.c131 struct ifconf ifc;
140 ifc.ifc_len = sizeof(ibuf);
141 ifc.ifc_buf = (caddr_t) ibuf;
142 if (ioctl(fd, SIOCGIFCONF, (char *) &ifc) < 0 ||
143 ifc.ifc_len < sizeof(struct ifreq)) {
149 ifend = (struct ifreq *) ((char *) ibuf + ifc.ifc_len);
129 struct ifconf ifc; local
/freebsd-11.0-release/libexec/rbootd/
H A Dbpf.c219 struct ifconf ifc; local
233 ifc.ifc_len = sizeof ibuf;
234 ifc.ifc_buf = (caddr_t)ibuf;
236 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 ||
237 ifc.ifc_len < sizeof(struct ifreq)) {
242 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);
/freebsd-11.0-release/contrib/amd/libamu/
H A Dwire.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;
/freebsd-11.0-release/contrib/ntp/lib/isc/unix/
H A Difiter_ioctl.c60 struct ifconf ifc; member in struct:isc_interfaceiter
142 memset(&iter->ifc.ifc_len, 0, sizeof(iter->ifc.ifc_len));
143 iter->ifc.ifc_len = iter->bufsize;
144 iter->ifc.ifc_buf = iter->buf;
150 if (isc_ioctl(iter->socket, SIOCGIFCONF, (char *)&iter->ifc)
172 * ifc.lifc_len is too near to the end of the
176 if (iter->ifc.ifc_len + 2 * sizeof(struct ifreq)
273 * ifc.ifc_len is too near to the end of the
464 if (iter->ifc
[all...]
/freebsd-11.0-release/sys/dev/cxgbe/
H A Dt4_tracer.c123 t4_cloner_match(struct if_clone *ifc, const char *name) argument
135 t4_cloner_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument
170 rc = ifc_alloc_unit(ifc, &unit);
176 ifc_free_unit(ifc, unit);
208 t4_cloner_destroy(struct if_clone *ifc, struct ifnet *ifp) argument
224 ifc_free_unit(ifc, unit);
/freebsd-11.0-release/sys/dev/usb/
H A Dusb_pf.c151 usbpf_clone_match(struct if_clone *ifc, const char *name) argument
165 usbpf_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument
184 error = ifc_alloc_unit(ifc, &unit);
192 ifc_free_unit(ifc, unit);
216 usbpf_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) argument
234 ifc_free_unit(ifc, unit);
/freebsd-11.0-release/usr.sbin/route6d/
H A Droute6d.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 *, in
[all...]
/freebsd-11.0-release/usr.sbin/arp/
H A Darp.c800 struct ifconf ifc; local
809 ifc.ifc_len = sizeof(ifs);
810 ifc.ifc_req = ifs;
811 if (ioctl(sock, SIOCGIFCONF, &ifc) < 0) {
824 ifend = (struct ifreq *)(ifc.ifc_buf + ifc.ifc_len);
825 for (ifr = ifc.ifc_req; ifr < ifend; ifr = NEXTIFR(ifr) ) {
864 for (ifr = ifc.ifc_req; ifr < ifend; ifr = NEXTIFR(ifr))
/freebsd-11.0-release/sys/netpfil/ipfw/
H A Dip_fw_log.c143 ipfw_log_clone_match(struct if_clone *ifc, const char *name) argument
150 ipfw_log_clone_create(struct if_clone *ifc, char *name, size_t len, argument
161 error = ifc_alloc_unit(ifc, &unit);
167 ifc_free_unit(ifc, unit);
191 ifc_free_unit(ifc, unit);
202 ipfw_log_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) argument
222 ifc_free_unit(ifc, unit);
/freebsd-11.0-release/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_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);
/freebsd-11.0-release/usr.sbin/timed/timed/
H A Dtimed.c121 struct ifconf ifc; local
265 ifc.ifc_len = sizeof(buf);
266 ifc.ifc_buf = buf;
267 if (ioctl(sock, SIOCGIFCONF, (char *)&ifc) < 0)
271 cplim = buf + ifc.ifc_len; /*skip over if's with big ifr_addr's */
/freebsd-11.0-release/sys/compat/linux/
H A Dlinux_ioctl.c2168 struct l_ifconf ifc; local
2170 struct ifconf ifc;
2178 error = copyin(uifc, &ifc, sizeof(ifc));
2186 if ((l_uintptr_t)ifc.ifc_buf == PTROUT(NULL)) {
2187 ifc.ifc_len = 0;
2193 ifc.ifc_len += sizeof(ifr);
2197 error = copyout(&ifc, uifc, sizeof(ifc));
2202 if (ifc
[all...]
/freebsd-11.0-release/sys/netpfil/pf/
H A Dif_pflog.c114 pflog_clone_create(struct if_clone *ifc, int unit, caddr_t param) argument

Completed in 252 milliseconds

123