/freebsd-13-stable/sys/net/ |
H A D | if_clone.c | 101 static void if_clone_free(struct if_clone *ifc); 102 static int if_clone_createif(struct if_clone *ifc, char *name, size_t len, 121 #define IF_CLONE_LOCK_INIT(ifc) \ 122 mtx_init(&(ifc)->ifc_mtx, "if_clone lock", NULL, MTX_DEF) 123 #define IF_CLONE_LOCK_DESTROY(ifc) mtx_destroy(&(ifc)->ifc_mtx) 124 #define IF_CLONE_LOCK_ASSERT(ifc) mtx_assert(&(ifc)->ifc_mtx, MA_OWNED) 125 #define IF_CLONE_LOCK(ifc) mtx_lock(&(ifc) 180 struct if_clone *ifc; local 215 if_clone_addif(struct if_clone *ifc, struct ifnet *ifp) argument 230 if_clone_createif(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument 261 struct if_clone *ifc; local 304 if_clone_destroyif(struct if_clone *ifc, struct ifnet *ifp) argument 354 struct if_clone *ifc; local 370 if_clone_attach(struct if_clone *ifc) argument 392 struct if_clone *ifc; local 412 struct if_clone *ifc; local 444 if_clone_detach(struct if_clone *ifc) argument 464 if_clone_free(struct if_clone *ifc) argument 482 struct if_clone *ifc; local 536 struct if_clone *ifc, *ifc0; local 564 if_clone_addgroup(struct ifnet *ifp, struct if_clone *ifc) argument 609 ifc_alloc_unit_specific(struct if_clone *ifc, int *unit) argument 631 ifc_alloc_unit_next(struct if_clone *ifc, int *unit) argument 652 ifc_alloc_unit(struct if_clone *ifc, int *unit) argument 661 ifc_free_unit(struct if_clone *ifc, int unit) argument 669 ifc_simple_match(struct if_clone *ifc, const char *name) argument 690 ifc_simple_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument 731 ifc_simple_destroy(struct if_clone *ifc, struct ifnet *ifp) argument 748 ifc_name(struct if_clone *ifc) argument 754 ifc_flags_set(struct if_clone *ifc, int flags) argument 760 ifc_flags_get(struct if_clone *ifc) argument [all...] |
H A D | if_epair.c | 690 epair_clone_match(struct if_clone *ifc, const char *name) argument 716 epair_clone_add(struct if_clone *ifc, struct epair_softc *scb) argument 727 if_clone_addif(ifc, ifp); 731 epair_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument 748 error = ifc_alloc_unit(ifc, &unit); 761 ifc_free_unit(ifc, unit); 768 ifc_free_unit(ifc, unit); 788 ifc_free_unit(ifc, unit); 799 ifc_free_unit(ifc, unit); 895 epair_clone_add(ifc, sc 919 epair_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) argument [all...] |
H A D | iflib_clone.c | 168 iflib_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument 170 const char *name = ifc_name(ifc); 177 clctx.cc_ifc = ifc;
|
H A D | if_stf.c | 184 stf_clone_match(struct if_clone *ifc, const char *name) argument 197 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); 254 ifc_free_unit(ifc, unit); 268 stf_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) argument 280 ifc_free_unit(ifc, STFUNIT);
|
H A D | if_disc.c | 83 disc_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument
|
H A D | if_edsc.c | 97 edsc_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument
|
H A D | if.c | 788 * ifc->ifc_name. To recover this after if_detach_internal() and 790 * if_attach_internal() via ifc. If it is non-NULL, if_attach_internal() 791 * attempts to join a group whose name is ifc->ifc_name. 858 if_attach_internal(struct ifnet *ifp, int vmove, struct if_clone *ifc) argument 878 if (vmove && ifc != NULL) 879 if_clone_addgroup(ifp, ifc); 1304 struct if_clone *ifc; local 1325 rc = if_detach_internal(ifp, 1, &ifc); 1363 if_attach_internal(ifp, 1, ifc); 2974 struct ifconf ifc; local 3207 struct ifconf *ifc = (struct ifconf *)data; local [all...] |
H A D | if_tuntap.c | 235 static int tun_clone_match(struct if_clone *ifc, const char *name); 236 static int tap_clone_match(struct if_clone *ifc, const char *name); 237 static int vmnet_clone_match(struct if_clone *ifc, const char *name); 478 tun_clone_match(struct if_clone *ifc, const char *name) argument 491 tap_clone_match(struct if_clone *ifc, const char *name) argument 504 vmnet_clone_match(struct if_clone *ifc, const char *name) argument 517 tun_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument 652 tun_clone_destroy(struct if_clone *ifc __unused, struct ifnet *ifp)
|
/freebsd-13-stable/contrib/netbsd-tests/net/if/ |
H A D | ifconf.c | 54 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-13-stable/contrib/bsnmp/snmp_mibII/ |
H A D | mibII_interfaces.c | 70 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-13-stable/contrib/traceroute/ |
H A D | ifaddrlist.c | 79 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-13-stable/contrib/libpcap/ |
H A D | fad-gifc.c | 147 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 D | fad-glifc.c | 84 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-13-stable/contrib/netbsd-tests/net/mcast/ |
H A D | mcast.c | 97 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-13-stable/libexec/bootpd/ |
H A D | getether.c | 131 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-13-stable/libexec/rbootd/ |
H A D | bpf.c | 221 struct ifconf ifc; local 235 ifc.ifc_len = sizeof ibuf; 236 ifc.ifc_buf = (caddr_t)ibuf; 238 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 || 239 ifc.ifc_len < sizeof(struct ifreq)) { 244 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);
|
/freebsd-13-stable/contrib/ntp/lib/isc/unix/ |
H A D | ifiter_ioctl.c | 60 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-13-stable/sys/dev/cxgbe/ |
H A D | t4_tracer.c | 125 t4_cloner_match(struct if_clone *ifc, const char *name) argument 138 t4_cloner_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument 173 rc = ifc_alloc_unit(ifc, &unit); 179 ifc_free_unit(ifc, unit); 211 t4_cloner_destroy(struct if_clone *ifc, struct ifnet *ifp) argument 227 ifc_free_unit(ifc, unit);
|
/freebsd-13-stable/sys/dev/usb/ |
H A D | usb_pf.c | 153 usbpf_clone_match(struct if_clone *ifc, const char *name) argument 167 usbpf_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument 186 error = ifc_alloc_unit(ifc, &unit); 194 ifc_free_unit(ifc, unit); 218 usbpf_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) argument 236 ifc_free_unit(ifc, unit);
|
/freebsd-13-stable/usr.sbin/route6d/ |
H A D | route6d.c | 87 struct ifc { /* Configuration of an interface */ struct 88 TAILQ_ENTRY(ifc) ifc_next; 102 static TAILQ_HEAD(, ifc) ifc_head = TAILQ_HEAD_INITIALIZER(ifc_head); 107 struct ifc *ifac_ifc; /* back pointer */ 122 static struct ifc **index2ifc; 124 static struct ifc *loopifcp = NULL; /* pointing to loopback */ 208 static void ripsend(struct ifc *, struct sockaddr_in6 *, int); 209 static int out_filter(struct riprt *, struct ifc *); 212 static int ifconfig1(const char *, const struct sockaddr *, struct ifc *, int); 216 static int rt_deladdr(struct ifc *, cons [all...] |
/freebsd-13-stable/usr.sbin/arp/ |
H A D | arp.c | 806 struct ifconf ifc; local 815 ifc.ifc_len = sizeof(ifs); 816 ifc.ifc_req = ifs; 817 if (ioctl(sock, SIOCGIFCONF, &ifc) < 0) { 830 ifend = (struct ifreq *)(ifc.ifc_buf + ifc.ifc_len); 831 for (ifr = ifc.ifc_req; ifr < ifend; ifr = NEXTIFR(ifr) ) { 866 for (ifr = ifc.ifc_req; ifr < ifend; ifr = NEXTIFR(ifr))
|
/freebsd-13-stable/sys/netpfil/ipfw/ |
H A D | ip_fw_bpf.c | 95 ipfw_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument 121 ipfwlog_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument
|
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_interceptors_ioctl.inc | 588 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-13-stable/sys/compat/linux/ |
H A D | linux_ioctl.c | 2141 struct l_ifconf ifc; local 2143 struct ifconf ifc; 2151 error = copyin(uifc, &ifc, sizeof(ifc)); 2159 if ((l_uintptr_t)ifc.ifc_buf == PTROUT(NULL)) { 2160 ifc.ifc_len = 0; 2166 ifc.ifc_len += sizeof(ifr); 2170 error = copyout(&ifc, uifc, sizeof(ifc)); 2175 if (ifc [all...] |
/freebsd-13-stable/sys/netpfil/pf/ |
H A D | if_pflog.c | 116 pflog_clone_create(struct if_clone *ifc, int unit, caddr_t param) argument
|