/freebsd-10-stable/sys/net/ |
H A D | if_clone.c | 97 static void if_clone_free(struct if_clone *ifc); 98 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) 184 struct if_clone *ifc; local 222 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 D | if_stf.c | 200 stf_clone_match(struct if_clone *ifc, const char *name) argument 213 stf_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument 225 err = ifc_alloc_unit(ifc, &unit); 233 ifc_free_unit(ifc, unit); 253 ifc_free_unit(ifc, unit); 267 stf_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) argument 280 ifc_free_unit(ifc, STFUNIT);
|
H A D | if_epair.c | 680 epair_clone_match(struct if_clone *ifc, const char *name) argument 706 epair_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument 740 error = ifc_alloc_unit(ifc, &unit); 753 ifc_free_unit(ifc, unit); 760 ifc_free_unit(ifc, unit); 780 ifc_free_unit(ifc, unit); 791 ifc_free_unit(ifc, unit); 887 epair_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) argument 930 error = if_clone_destroyif(ifc, oifp); 949 ifc_free_unit(ifc, uni [all...] |
H A D | if_faith.c | 144 faith_clone_create(ifc, unit, params) 145 struct if_clone *ifc;
|
H A D | if_vlan.c | 800 vlan_clone_match_ethervid(struct if_clone *ifc, const char *name, int *vidp) argument 838 vlan_clone_match(struct if_clone *ifc, const char *name) argument 842 if (vlan_clone_match_ethervid(ifc, name, NULL) != NULL) 856 vlan_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument 904 } else if ((p = vlan_clone_match_ethervid(ifc, name, &vid)) != NULL) { 925 error = ifc_alloc_unit(ifc, &unit); 941 ifc_free_unit(ifc, unit); 985 ifc_free_unit(ifc, unit); 999 vlan_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) argument 1008 ifc_free_unit(ifc, uni [all...] |
H A D | if.c | 587 * ifc->ifc_name. To recover this after if_detach_internal() and 589 * if_attach_internal() via ifc. If it is non-NULL, if_attach_internal() 590 * attempts to join a group whose name is ifc->ifc_name. 657 if_attach_internal(struct ifnet *ifp, int vmove, struct if_clone *ifc) argument 677 if (vmove && ifc != NULL) 678 if_clone_addgroup(ifp, ifc); 1063 struct if_clone *ifc; local 1071 rc = if_detach_internal(ifp, 1, &ifc); 1107 if_attach_internal(ifp, 1, ifc); 2726 struct ifconf ifc; local 3000 struct ifconf *ifc = (struct ifconf *)data; local [all...] |
H A D | if_disc.c | 79 disc_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument
|
/freebsd-10-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-10-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-10-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-10-stable/libexec/rbootd/ |
H A D | bpf.c | 219 struct ifconf ifc; local 233 ifc.ifc_len = sizeof ibuf; 234 ifc.ifc_buf = (caddr_t)ibuf; 237 if (ioctl(fd, OSIOCGIFCONF, (char *)&ifc) < 0 || 238 ifc.ifc_len < sizeof(struct ifreq)) { 243 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 || 244 ifc.ifc_len < sizeof(struct ifreq)) { 250 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);
|
/freebsd-10-stable/contrib/libpcap/ |
H A D | fad-gifc.c | 146 struct ifconf ifc; local 184 ifc.ifc_len = buf_size; 185 ifc.ifc_buf = buf; 187 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 195 if (ifc.ifc_len < buf_size && 196 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) 203 ifend = (struct ifreq *)(buf + ifc.ifc_len); 226 * doesn't update ifc.ifc_len, leaving it larger than the
|
H A D | fad-glifc.c | 89 struct lifconf ifc; local 151 ifc.lifc_len = buf_size; 152 ifc.lifc_buf = buf; 153 ifc.lifc_family = AF_UNSPEC; 154 ifc.lifc_flags = 0; 156 if (ioctl(fd4, SIOCGLIFCONF, (char *)&ifc) < 0) { 169 ifend = (struct lifreq *)(buf + ifc.lifc_len);
|
/freebsd-10-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-10-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-10-stable/sys/gnu/dts/arm/ |
H A D | ls1021a-twr.dts | 84 &ifc {
|
H A D | ls1021a-qds.dts | 139 &ifc {
|
/freebsd-10-stable/contrib/amd/libamu/ |
H A D | wire.c | 450 #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-10-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-10-stable/sys/dev/usb/ |
H A D | usb_pf.c | 150 usbpf_clone_match(struct if_clone *ifc, const char *name) argument 164 usbpf_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument 183 error = ifc_alloc_unit(ifc, &unit); 191 ifc_free_unit(ifc, unit); 215 usbpf_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) argument 233 ifc_free_unit(ifc, unit);
|
/freebsd-10-stable/sys/dev/cxgbe/ |
H A D | t4_tracer.c | 122 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-10-stable/usr.sbin/route6d/ |
H A D | route6d.c | 89 struct ifc { /* Configuration of an interface */ struct 90 TAILQ_ENTRY(ifc) ifc_next; 104 TAILQ_HEAD(, ifc) ifc_head = TAILQ_HEAD_INITIALIZER(ifc_head); 109 struct ifc *ifac_ifc; /* back pointer */ 124 struct ifc **index2ifc; 126 struct ifc *loopifcp = NULL; /* pointing to loopback */ 209 void ripsend(struct ifc *, struct sockaddr_in6 *, int); 210 int out_filter(struct riprt *, struct ifc *); 212 void sockopt(struct ifc *); 214 int ifconfig1(const char *, const struct sockaddr *, struct ifc *, in [all...] |
/freebsd-10-stable/usr.sbin/arp/ |
H A D | arp.c | 800 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) ) { 860 for (ifr = ifc.ifc_req; ifr < ifend; ifr = NEXTIFR(ifr))
|
/freebsd-10-stable/sys/netpfil/ipfw/ |
H A D | ip_fw_log.c | 133 ipfw_log_clone_match(struct if_clone *ifc, const char *name) argument 140 ipfw_log_clone_create(struct if_clone *ifc, char *name, size_t len, argument 151 error = ifc_alloc_unit(ifc, &unit); 157 ifc_free_unit(ifc, unit); 181 ifc_free_unit(ifc, unit); 192 ipfw_log_clone_destroy(struct if_clone *ifc, struct ifnet *ifp) argument 212 ifc_free_unit(ifc, unit);
|
/freebsd-10-stable/usr.sbin/timed/timed/ |
H A D | timed.c | 121 struct ifconf ifc; local 268 ifc.ifc_len = sizeof(buf); 269 ifc.ifc_buf = buf; 270 if (ioctl(sock, SIOCGIFCONF, (char *)&ifc) < 0) 274 cplim = buf + ifc.ifc_len; /*skip over if's with big ifr_addr's */
|