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

123

/freebsd-11-stable/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
212 if_clone_addif(struct if_clone *ifc, struct ifnet *ifp) argument
226 if_clone_createif(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument
257 struct if_clone *ifc; local
300 if_clone_destroyif(struct if_clone *ifc, struct ifnet *ifp) argument
349 struct if_clone *ifc; local
365 if_clone_attach(struct if_clone *ifc) argument
387 struct if_clone *ifc; local
409 struct if_clone *ifc; local
443 if_clone_detach(struct if_clone *ifc) argument
463 if_clone_free(struct if_clone *ifc) argument
481 struct if_clone *ifc; local
535 struct if_clone *ifc, *ifc0; local
563 if_clone_addgroup(struct ifnet *ifp, struct if_clone *ifc) argument
606 ifc_alloc_unit_specific(struct if_clone *ifc, int *unit) argument
628 ifc_alloc_unit_next(struct if_clone *ifc, int *unit) argument
649 ifc_alloc_unit(struct if_clone *ifc, int *unit) argument
658 ifc_free_unit(struct if_clone *ifc, int unit) argument
666 ifc_simple_match(struct if_clone *ifc, const char *name) argument
687 ifc_simple_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument
729 ifc_simple_destroy(struct if_clone *ifc, struct ifnet *ifp) argument
[all...]
H A Dif_epair.c682 epair_clone_match(struct if_clone *ifc, const char *name) argument
708 epair_clone_add(struct if_clone *ifc, struct epair_softc *scb) argument
721 if_clone_addif(ifc, ifp);
725 epair_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument
739 error = ifc_alloc_unit(ifc, &unit);
752 ifc_free_unit(ifc, unit);
759 ifc_free_unit(ifc, unit);
779 ifc_free_unit(ifc, unit);
790 ifc_free_unit(ifc, unit);
863 epair_clone_add(ifc, sc
887 epair_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) argument
[all...]
H A Dif_stf.c185 stf_clone_match(struct if_clone *ifc, const char *name) argument
198 stf_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument
216 err = ifc_alloc_unit(ifc, &unit);
224 ifc_free_unit(ifc, unit);
256 ifc_free_unit(ifc, unit);
270 stf_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) argument
282 ifc_free_unit(ifc, STFUNIT);
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.c679 * ifc->ifc_name. To recover this after if_detach_internal() and
681 * if_attach_internal() via ifc. If it is non-NULL, if_attach_internal()
682 * attempts to join a group whose name is ifc->ifc_name.
749 if_attach_internal(struct ifnet *ifp, int vmove, struct if_clone *ifc) argument
769 if (vmove && ifc != NULL)
770 if_clone_addgroup(ifp, ifc);
1204 struct if_clone *ifc; local
1224 rc = if_detach_internal(ifp, 1, &ifc);
1256 if_attach_internal(ifp, 1, ifc);
2993 struct ifconf ifc; local
3225 struct ifconf *ifc = (struct ifconf *)data; local
[all...]
/freebsd-11-stable/contrib/netbsd-tests/net/if/
H A Difconf.c54 struct ifconf ifc; local
60 ifc.ifc_len = 0;
61 ifc.ifc_buf = NULL;
63 r = ioctl(fd, SIOCGIFCONF, &ifc);
69 return ifc.ifc_len / sizeof(struct ifreq);
82 struct ifconf ifc; local
99 ifc.ifc_len = sizeof(struct ifreq) * nifreqs;
100 ifc.ifc_req = ifreqs;
102 r = ioctl(fd, SIOCGIFCONF, &ifc);
107 for (i=0; i < (int)(ifc
[all...]
/freebsd-11-stable/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-stable/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-stable/contrib/libpcap/
H A Dfad-gifc.c147 struct ifconf ifc; local
195 ifc.ifc_len = buf_size;
196 ifc.ifc_buf = buf;
198 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0
206 if (ifc.ifc_len < (int)buf_size &&
207 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN)
214 ifend = (struct ifreq *)(buf + ifc.ifc_len);
237 * 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-stable/contrib/netbsd-tests/net/mcast/
H A Dmcast.c97 unsigned int ifc; local
129 ifc = 1;
131 &ifc, sizeof(ifc)) == -1)
133 ifc = 224;
135 &ifc, sizeof(ifc)) == -1)
137 ifc = 1; /* XXX should pick a proper interface */
138 if (setsockopt(s, IPPROTO_IPV6, IPV6_MULTICAST_IF, &ifc,
139 sizeof(ifc))
[all...]
/freebsd-11-stable/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-stable/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-stable/contrib/amd/libamu/
H A Dwire.c450 #define clist (ifc.ifc_ifcu.ifcu_req)
451 #define count (ifc.ifc_len/sizeof(struct ifreq))
457 struct ifconf ifc; local
482 ifc.ifc_len = sizeof(buf);
483 ifc.ifc_buf = buf;
488 if (ioctl(fd, SIOCGIFCONF, (caddr_t) & ifc) < 0)
494 cplim = buf + ifc.ifc_len;
/freebsd-11-stable/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-stable/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-stable/sys/dev/cxgbe/
H A Dt4_tracer.c123 t4_cloner_match(struct if_clone *ifc, const char *name) argument
136 t4_cloner_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument
171 rc = ifc_alloc_unit(ifc, &unit);
177 ifc_free_unit(ifc, unit);
209 t4_cloner_destroy(struct if_clone *ifc, struct ifnet *ifp) argument
225 ifc_free_unit(ifc, unit);
/freebsd-11-stable/usr.sbin/route6d/
H A Droute6d.c88 struct ifc { /* Configuration of an interface */ struct
89 TAILQ_ENTRY(ifc) ifc_next;
103 TAILQ_HEAD(, ifc) ifc_head = TAILQ_HEAD_INITIALIZER(ifc_head);
108 struct ifc *ifac_ifc; /* back pointer */
123 struct ifc **index2ifc;
125 struct ifc *loopifcp = NULL; /* pointing to loopback */
208 void ripsend(struct ifc *, struct sockaddr_in6 *, int);
209 int out_filter(struct riprt *, struct ifc *);
211 void sockopt(struct ifc *);
213 int ifconfig1(const char *, const struct sockaddr *, struct ifc *, in
[all...]
/freebsd-11-stable/sys/netpfil/ipfw/
H A Dip_fw_bpf.c106 ipfw_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument
135 ipfwlog_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument
/freebsd-11-stable/usr.sbin/arp/
H A Darp.c837 struct ifconf ifc; local
846 ifc.ifc_len = sizeof(ifs);
847 ifc.ifc_req = ifs;
848 if (ioctl(sock, SIOCGIFCONF, &ifc) < 0) {
861 ifend = (struct ifreq *)(ifc.ifc_buf + ifc.ifc_len);
862 for (ifr = ifc.ifc_req; ifr < ifend; ifr = NEXTIFR(ifr) ) {
897 for (ifr = ifc.ifc_req; ifr < ifend; ifr = NEXTIFR(ifr))
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors_ioctl.inc588 struct __sanitizer_ifconf *ifc = (__sanitizer_ifconf *)arg;
589 COMMON_INTERCEPTOR_READ_RANGE(ctx, (char*)&ifc->ifc_len,
590 sizeof(ifc->ifc_len));
604 struct __sanitizer_ifconf *ifc = (__sanitizer_ifconf *)arg;
605 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ifc->ifc_ifcu.ifcu_req, ifc->ifc_len);
/freebsd-11-stable/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-stable/sys/compat/linux/
H A Dlinux_ioctl.c2243 struct l_ifconf ifc; local
2245 struct ifconf ifc;
2253 error = copyin(uifc, &ifc, sizeof(ifc));
2261 if ((l_uintptr_t)ifc.ifc_buf == PTROUT(NULL)) {
2262 ifc.ifc_len = 0;
2268 ifc.ifc_len += sizeof(ifr);
2272 error = copyout(&ifc, uifc, sizeof(ifc));
2277 if (ifc
[all...]
/freebsd-11-stable/sys/netpfil/pf/
H A Dif_pflog.c114 pflog_clone_create(struct if_clone *ifc, int unit, caddr_t param) argument

Completed in 161 milliseconds

123