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

123

/freebsd-9.3-release/sys/net/
H A Dif_clone.c54 static void if_clone_free(struct if_clone *ifc);
55 static int if_clone_createif(struct if_clone *ifc, char *name, size_t len,
71 #define IF_CLONE_LOCK_INIT(ifc) \
72 mtx_init(&(ifc)->ifc_mtx, "if_clone lock", NULL, MTX_DEF)
73 #define IF_CLONE_LOCK_DESTROY(ifc) mtx_destroy(&(ifc)->ifc_mtx)
74 #define IF_CLONE_LOCK_ASSERT(ifc) mtx_assert(&(ifc)->ifc_mtx, MA_OWNED)
75 #define IF_CLONE_LOCK(ifc) mtx_lock(&(ifc)
137 struct if_clone *ifc; local
168 if_clone_createif(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument
200 struct if_clone *ifc; local
239 if_clone_destroyif(struct if_clone *ifc, struct ifnet *ifp) argument
286 if_clone_attach(struct if_clone *ifc) argument
318 if_clone_detach(struct if_clone *ifc) argument
339 if_clone_free(struct if_clone *ifc) argument
360 struct if_clone *ifc; local
442 ifc_alloc_unit(struct if_clone *ifc, int *unit) argument
495 ifc_free_unit(struct if_clone *ifc, int unit) argument
514 ifc_simple_attach(struct if_clone *ifc) argument
536 ifc_simple_match(struct if_clone *ifc, const char *name) argument
557 ifc_simple_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument
600 ifc_simple_destroy(struct if_clone *ifc, struct ifnet *ifp) argument
[all...]
H A Dif_disc.c80 disc_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument
93 if_initname(ifp, ifc->ifc_name, unit);
H A Dif_edsc.c98 edsc_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument
119 if_initname(ifp, ifc->ifc_name, unit);
H A Dif_stf.c200 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);
244 ifp->if_dname = ifc->ifc_name;
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 Dif_epair.c681 epair_clone_match(struct if_clone *ifc, const char *name) argument
707 epair_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument
741 error = ifc_alloc_unit(ifc, &unit);
754 ifc_free_unit(ifc, unit);
761 ifc_free_unit(ifc, unit);
774 ifc_free_unit(ifc, unit);
785 ifc_free_unit(ifc, unit);
810 ifp->if_dname = ifc->ifc_name;
836 ifp->if_dname = ifc->ifc_name;
881 epair_clone_destroy(struct if_clone *ifc, struc argument
[all...]
H A Dif_faith.c146 faith_clone_create(ifc, unit, params)
147 struct if_clone *ifc;
162 if_initname(sc->sc_ifp, ifc->ifc_name, unit);
H A Dif_vlan.c795 vlan_clone_match_ethertag(struct if_clone *ifc, const char *name, int *tag) argument
833 vlan_clone_match(struct if_clone *ifc, const char *name) argument
837 if (vlan_clone_match_ethertag(ifc, name, NULL) != NULL)
851 vlan_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) argument
896 } else if ((p = vlan_clone_match_ethertag(ifc, name, &tag)) != NULL) {
917 error = ifc_alloc_unit(ifc, &unit);
933 ifc_free_unit(ifc, unit);
945 ifp->if_dname = ifc->ifc_name;
977 ifc_free_unit(ifc, unit);
991 vlan_clone_destroy(struct if_clone *ifc, struc argument
[all...]
H A Dif_enc.c134 enc_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument
146 if_initname(ifp, ifc->ifc_name, unit);
H A Dif_loop.c134 lo_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument
142 if_initname(ifp, ifc->ifc_name, unit);
/freebsd-9.3-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-9.3-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-9.3-release/libexec/rbootd/
H A Dbpf.c223 struct ifconf ifc; local
237 ifc.ifc_len = sizeof ibuf;
238 ifc.ifc_buf = (caddr_t)ibuf;
241 if (ioctl(fd, OSIOCGIFCONF, (char *)&ifc) < 0 ||
242 ifc.ifc_len < sizeof(struct ifreq)) {
247 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 ||
248 ifc.ifc_len < sizeof(struct ifreq)) {
254 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);
/freebsd-9.3-release/lib/libc/net/
H A Dgetifaddrs.c114 struct ifconf ifc; local
220 ifc.ifc_buf = buf;
221 ifc.ifc_len = sizeof(buf);
225 i = _ioctl(sock, SIOCGIFCONF, (char *)&ifc);
230 ifr = ifc.ifc_req;
231 lifr = (struct ifreq *)&ifc.ifc_buf[ifc.ifc_len];
382 ifr = ifc.ifc_req;
383 lifr = (struct ifreq *)&ifc.ifc_buf[ifc
[all...]
/freebsd-9.3-release/contrib/libpcap/
H A Dfad-gifc.c146 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 Dfad-glifc.c89 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-9.3-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-9.3-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-9.3-release/usr.sbin/sysinstall/
H A Ddevices.c293 struct ifconf ifc; local
301 memset(&ifc, 0, sizeof(ifc));
303 ifc.ifc_len = sizeof(buffer);
304 ifc.ifc_buf = buffer;
310 if (ioctl(s, SIOCGIFCONF, (char *) &ifc) < 0)
314 ifflags = ifc.ifc_req->ifr_flags;
315 end = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len);
316 for (ifptr = ifc
[all...]
/freebsd-9.3-release/contrib/bind9/lib/isc/unix/
H A Difiter_ioctl.c58 struct ifconf ifc; member in struct:isc_interfaceiter
121 memset(&iter->ifc.ifc_len, 0, sizeof(iter->ifc.ifc_len));
122 iter->ifc.ifc_len = iter->bufsize;
123 iter->ifc.ifc_buf = iter->buf;
129 if (ioctl(iter->socket, SIOCGIFCONF, (char *)&iter->ifc)
151 * ifc.lifc_len is too near to the end of the
155 if (iter->ifc.ifc_len + 2 * sizeof(struct ifreq)
252 * ifc.ifc_len is too near to the end of the
443 if (iter->ifc
[all...]
/freebsd-9.3-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-9.3-release/usr.sbin/route6d/
H A Droute6d.c107 struct ifc { /* Configuration of an interface */ struct
108 TAILQ_ENTRY(ifc) ifc_next;
122 TAILQ_HEAD(, ifc) ifc_head = TAILQ_HEAD_INITIALIZER(ifc_head);
127 struct ifc *ifac_ifc; /* back pointer */
142 struct ifc **index2ifc;
144 struct ifc *loopifcp = NULL; /* pointing to loopback */
227 void ripsend(struct ifc *, struct sockaddr_in6 *, int);
228 int out_filter(struct riprt *, struct ifc *);
230 void sockopt(struct ifc *);
232 int ifconfig1(const char *, const struct sockaddr *, struct ifc *, in
[all...]
/freebsd-9.3-release/usr.sbin/arp/
H A Darp.c788 struct ifconf ifc; local
797 ifc.ifc_len = sizeof(ifs);
798 ifc.ifc_req = ifs;
799 if (ioctl(sock, SIOCGIFCONF, &ifc) < 0) {
812 ifend = (struct ifreq *)(ifc.ifc_buf + ifc.ifc_len);
813 for (ifr = ifc.ifc_req; ifr < ifend; ifr = NEXTIFR(ifr) ) {
852 for (ifr = ifc.ifc_req; ifr < ifend; ifr = NEXTIFR(ifr))
/freebsd-9.3-release/sys/contrib/pf/net/
H A Dif_pflog.c155 pflog_clone_create(struct if_clone *ifc, int unit, caddr_t param) argument
158 pflog_clone_create(struct if_clone *ifc, int unit)
179 if_initname(ifp, ifc->ifc_name, unit);
/freebsd-9.3-release/usr.sbin/timed/timed/
H A Dtimed.c124 struct ifconf ifc; local
271 ifc.ifc_len = sizeof(buf);
272 ifc.ifc_buf = buf;
273 if (ioctl(sock, SIOCGIFCONF, (char *)&ifc) < 0)
277 cplim = buf + ifc.ifc_len; /*skip over if's with big ifr_addr's */
/freebsd-9.3-release/contrib/bind9/lib/lwres/
H A Dgetipnode.c675 struct ifconf ifc;
722 ifc.ifc_len = bufsiz;
723 ifc.ifc_buf = buf;
730 if (emul_ioctl(&ifc) >= 0)
733 if ((n = ioctl(s, SIOCGIFCONF, (char *)&ifc)) != -1) {
738 * ifc.ifc_len is too near to the end of the
742 if (ifc.ifc_len + 2 * sizeof(u.ifreq) < bufsiz)
759 cplim = buf + ifc.ifc_len; /* skip over if's with big ifr_addr's */

Completed in 230 milliseconds

123