Symbol: ifc
crypto/krb5/src/lib/krb5/os/localaddr.c
279
struct ifconf ifc;
crypto/krb5/src/lib/krb5/os/localaddr.c
282
ifc.ifc_len = *lenp;
crypto/krb5/src/lib/krb5/os/localaddr.c
284
ifc.ifc_buf = buf;
crypto/krb5/src/lib/krb5/os/localaddr.c
287
ret = ioctl (s, SIOCGIFCONF, (char *)&ifc);
crypto/krb5/src/lib/krb5/os/localaddr.c
290
*lenp = ifc.ifc_len;
crypto/krb5/src/lib/krb5/os/t_gifconf.c
127
if (olen != ifc.ifc_len || omod != i) {
crypto/krb5/src/lib/krb5/os/t_gifconf.c
129
t, ifc.ifc_len, i);
crypto/krb5/src/lib/krb5/os/t_gifconf.c
130
olen = ifc.ifc_len;
crypto/krb5/src/lib/krb5/os/t_gifconf.c
85
struct ifconf ifc;
crypto/krb5/src/lib/krb5/os/t_gifconf.c
95
ifc.ifc_len = t;
crypto/krb5/src/lib/krb5/os/t_gifconf.c
96
ifc.ifc_buf = buffer;
crypto/krb5/src/lib/krb5/os/t_gifconf.c
98
i = ioctl (sock, SIOCGIFCONF, (char *) &ifc);
crypto/krb5/src/lib/rpc/get_myaddress.c
103
ifr = ifc.ifc_req;
crypto/krb5/src/lib/rpc/get_myaddress.c
104
for (len = ifc.ifc_len; len; len -= sizeof ifreq) {
crypto/krb5/src/lib/rpc/get_myaddress.c
88
struct ifconf ifc;
crypto/krb5/src/lib/rpc/get_myaddress.c
97
ifc.ifc_len = sizeof (buf);
crypto/krb5/src/lib/rpc/get_myaddress.c
98
ifc.ifc_buf = buf;
crypto/krb5/src/lib/rpc/get_myaddress.c
99
if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) {
crypto/krb5/src/lib/rpc/pmap_rmt.c
189
struct ifconf ifc;
crypto/krb5/src/lib/rpc/pmap_rmt.c
193
ifc.ifc_len = GIFCONF_BUFSIZE;
crypto/krb5/src/lib/rpc/pmap_rmt.c
194
ifc.ifc_buf = buf;
crypto/krb5/src/lib/rpc/pmap_rmt.c
196
if (ioctl(sock, SIOCGIFCONF, (char *)&ifc) < 0) {
crypto/krb5/src/lib/rpc/pmap_rmt.c
200
ifr = ifc.ifc_req;
crypto/krb5/src/lib/rpc/pmap_rmt.c
201
for (i = 0, n = ifc.ifc_len/sizeof (struct ifreq); n > 0; n--, ifr++) {
libexec/bootpd/getether.c
125
struct ifconf ifc;
libexec/bootpd/getether.c
134
ifc.ifc_len = sizeof(ibuf);
libexec/bootpd/getether.c
135
ifc.ifc_buf = (caddr_t) ibuf;
libexec/bootpd/getether.c
136
if (ioctl(fd, SIOCGIFCONF, (char *) &ifc) < 0 ||
libexec/bootpd/getether.c
137
ifc.ifc_len < sizeof(struct ifreq)) {
libexec/bootpd/getether.c
143
ifend = (struct ifreq *) ((char *) ibuf + ifc.ifc_len);
libexec/rbootd/bpf.c
211
struct ifconf ifc;
libexec/rbootd/bpf.c
225
ifc.ifc_len = sizeof ibuf;
libexec/rbootd/bpf.c
226
ifc.ifc_buf = (caddr_t)ibuf;
libexec/rbootd/bpf.c
228
if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 ||
libexec/rbootd/bpf.c
229
ifc.ifc_len < sizeof(struct ifreq)) {
libexec/rbootd/bpf.c
234
ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);
sys/compat/linux/linux_ioctl.c
2210
struct l_ifconf *ifc;
sys/compat/linux/linux_ioctl.c
2212
struct ifconf *ifc;
sys/compat/linux/linux_ioctl.c
2215
ifc = arg;
sys/compat/linux/linux_ioctl.c
2216
ifc->ifc_len += sizeof(struct l_ifreq);
sys/compat/linux/linux_ioctl.c
2272
struct l_ifconf ifc;
sys/compat/linux/linux_ioctl.c
2274
struct ifconf ifc;
sys/compat/linux/linux_ioctl.c
2279
error = copyin(uifc, &ifc, sizeof(ifc));
sys/compat/linux/linux_ioctl.c
2284
if (PTRIN(ifc.ifc_buf) == NULL) {
sys/compat/linux/linux_ioctl.c
2285
ifc.ifc_len = 0;
sys/compat/linux/linux_ioctl.c
2287
if_foreach(linux_ifconf_ifnet_cb, &ifc);
sys/compat/linux/linux_ioctl.c
2289
return (copyout(&ifc, uifc, sizeof(ifc)));
sys/compat/linux/linux_ioctl.c
2291
if (ifc.ifc_len <= 0)
sys/compat/linux/linux_ioctl.c
2298
if (ifc.ifc_len <= cbs.max_len) {
sys/compat/linux/linux_ioctl.c
2299
cbs.max_len = ifc.ifc_len;
sys/compat/linux/linux_ioctl.c
2316
ifc.ifc_len = cbs.valid_len;
sys/compat/linux/linux_ioctl.c
2318
error = copyout(sbuf_data(sb), PTRIN(ifc.ifc_buf), ifc.ifc_len);
sys/compat/linux/linux_ioctl.c
2320
error = copyout(&ifc, uifc, sizeof(ifc));
sys/dev/cxgbe/t4_tracer.c
123
t4_cloner_match(struct if_clone *ifc, const char *name)
sys/dev/cxgbe/t4_tracer.c
135
t4_cloner_create(struct if_clone *ifc, char *name, size_t len, caddr_t params)
sys/dev/cxgbe/t4_tracer.c
197
t4_cloner_destroy(struct if_clone *ifc, if_t ifp)
sys/dev/isp/isp_freebsd.c
453
struct isp_fc_device *ifc = (struct isp_fc_device *) addr;
sys/dev/isp/isp_freebsd.c
456
if (ifc->loopid >= MAX_FC_TARG) {
sys/dev/isp/isp_freebsd.c
460
lp = &FCPARAM(isp, ifc->chan)->portdb[ifc->loopid];
sys/dev/isp/isp_freebsd.c
462
ifc->role = (lp->prli_word3 & SVC3_ROLE_MASK) >> SVC3_ROLE_SHIFT;
sys/dev/isp/isp_freebsd.c
463
ifc->loopid = lp->handle;
sys/dev/isp/isp_freebsd.c
464
ifc->portid = lp->portid;
sys/dev/isp/isp_freebsd.c
465
ifc->node_wwn = lp->node_wwn;
sys/dev/isp/isp_freebsd.c
466
ifc->port_wwn = lp->port_wwn;
sys/dev/wg/if_wg.c
2964
wg_clone_create(struct if_clone *ifc, char *name, size_t len,
sys/dev/wg/if_wg.c
3065
wg_clone_destroy(struct if_clone *ifc, if_t ifp, uint32_t flags)
sys/dev/wg/if_wg.c
361
static int wg_clone_create(struct if_clone *ifc, char *name, size_t len,
sys/dev/wg/if_wg.c
368
static int wg_clone_destroy(struct if_clone *ifc, if_t ifp,
sys/net/if.c
2787
struct ifconf ifc;
sys/net/if.c
2821
thunk.ifc.ifc_len = ifc32->ifc_len;
sys/net/if.c
2822
thunk.ifc.ifc_buf = PTRIN(ifc32->ifc_buf);
sys/net/if.c
2823
data = (caddr_t)&thunk.ifc;
sys/net/if.c
2973
ifc32->ifc_len = thunk.ifc.ifc_len;
sys/net/if.c
3158
struct ifconf *ifc = (struct ifconf *)data;
sys/net/if.c
3169
if (ifc->ifc_len <= 0)
sys/net/if.c
3173
if (ifc->ifc_len <= max_len) {
sys/net/if.c
3174
max_len = ifc->ifc_len;
sys/net/if.c
3249
ifc->ifc_len = valid_len;
sys/net/if.c
3251
error = copyout(sbuf_data(sb), ifc->ifc_req, ifc->ifc_len);
sys/net/if_bridge.c
850
bridge_clone_create(struct if_clone *ifc, char *name, size_t len,
sys/net/if_bridge.c
933
bridge_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
sys/net/if_clone.c
112
static void if_clone_free(struct if_clone *ifc);
sys/net/if_clone.c
113
static int if_clone_createif_nl(struct if_clone *ifc, const char *name,
sys/net/if_clone.c
116
static int ifc_simple_match(struct if_clone *ifc, const char *name);
sys/net/if_clone.c
117
static int ifc_handle_unit(struct if_clone *ifc, char *name, size_t len, int *punit);
sys/net/if_clone.c
122
static int ifc_simple_create_wrapper(struct if_clone *ifc, char *name, size_t maxlen,
sys/net/if_clone.c
124
static int ifc_advanced_create_wrapper(struct if_clone *ifc, char *name, size_t maxlen,
sys/net/if_clone.c
140
#define IF_CLONE_LOCK_INIT(ifc) \
sys/net/if_clone.c
141
mtx_init(&(ifc)->ifc_mtx, "if_clone lock", NULL, MTX_DEF)
sys/net/if_clone.c
142
#define IF_CLONE_LOCK_DESTROY(ifc) mtx_destroy(&(ifc)->ifc_mtx)
sys/net/if_clone.c
143
#define IF_CLONE_LOCK_ASSERT(ifc) mtx_assert(&(ifc)->ifc_mtx, MA_OWNED)
sys/net/if_clone.c
144
#define IF_CLONE_LOCK(ifc) mtx_lock(&(ifc)->ifc_mtx)
sys/net/if_clone.c
145
#define IF_CLONE_UNLOCK(ifc) mtx_unlock(&(ifc)->ifc_mtx)
sys/net/if_clone.c
147
#define IF_CLONE_ADDREF(ifc) \
sys/net/if_clone.c
149
IF_CLONE_LOCK(ifc); \
sys/net/if_clone.c
150
IF_CLONE_ADDREF_LOCKED(ifc); \
sys/net/if_clone.c
151
IF_CLONE_UNLOCK(ifc); \
sys/net/if_clone.c
153
#define IF_CLONE_ADDREF_LOCKED(ifc) \
sys/net/if_clone.c
155
IF_CLONE_LOCK_ASSERT(ifc); \
sys/net/if_clone.c
156
KASSERT((ifc)->ifc_refcnt >= 0, \
sys/net/if_clone.c
157
("negative refcnt %ld", (ifc)->ifc_refcnt)); \
sys/net/if_clone.c
158
(ifc)->ifc_refcnt++; \
sys/net/if_clone.c
160
#define IF_CLONE_REMREF(ifc) \
sys/net/if_clone.c
162
IF_CLONE_LOCK(ifc); \
sys/net/if_clone.c
163
IF_CLONE_REMREF_LOCKED(ifc); \
sys/net/if_clone.c
165
#define IF_CLONE_REMREF_LOCKED(ifc) \
sys/net/if_clone.c
167
IF_CLONE_LOCK_ASSERT(ifc); \
sys/net/if_clone.c
168
KASSERT((ifc)->ifc_refcnt > 0, \
sys/net/if_clone.c
169
("bogus refcnt %ld", (ifc)->ifc_refcnt)); \
sys/net/if_clone.c
170
if (--(ifc)->ifc_refcnt == 0) { \
sys/net/if_clone.c
171
IF_CLONE_UNLOCK(ifc); \
sys/net/if_clone.c
172
if_clone_free(ifc); \
sys/net/if_clone.c
175
IF_CLONE_UNLOCK(ifc); \
sys/net/if_clone.c
192
struct if_clone *ifc = ifc_find_cloner_match(name);
sys/net/if_clone.c
194
if (ifc == NULL)
sys/net/if_clone.c
203
int error = if_clone_createif_nl(ifc, name, &ifd_new);
sys/net/if_clone.c
214
struct if_clone *ifc = ifc_find_cloner_match(name);
sys/net/if_clone.c
215
if (ifc == NULL) {
sys/net/if_clone.c
220
ifd->error = if_clone_createif_nl(ifc, name, ifd);
sys/net/if_clone.c
242
struct if_clone *ifc = ifc_find_cloner(ifp->if_dname);
sys/net/if_clone.c
243
if (ifc == NULL) {
sys/net/if_clone.c
248
ifd->error = (*ifc->modify_nl)(ifp, ifd);
sys/net/if_clone.c
255
struct if_clone *ifc = ifc_find_cloner(ifp->if_dname);
sys/net/if_clone.c
256
if (ifc == NULL)
sys/net/if_clone.c
259
(*ifc->dump_nl)(ifp, nw);
sys/net/if_clone.c
264
ifc_create_ifp_nl_default(struct if_clone *ifc, char *name, size_t len,
sys/net/if_clone.c
273
return ((*ifc->ifc_create)(ifc, name, len, &ifd_new, &ifd->ifp));
sys/net/if_clone.c
296
ifc_link_ifp(struct if_clone *ifc, struct ifnet *ifp)
sys/net/if_clone.c
299
if_addgroup(ifp, ifc->ifc_name);
sys/net/if_clone.c
301
IF_CLONE_LOCK(ifc);
sys/net/if_clone.c
302
IFC_IFLIST_INSERT(ifc, ifp);
sys/net/if_clone.c
303
IF_CLONE_UNLOCK(ifc);
sys/net/if_clone.c
307
if_clone_addif(struct if_clone *ifc, struct ifnet *ifp)
sys/net/if_clone.c
309
ifc_link_ifp(ifc, ifp);
sys/net/if_clone.c
313
ifc_unlink_ifp(struct if_clone *ifc, struct ifnet *ifp)
sys/net/if_clone.c
317
IF_CLONE_LOCK(ifc);
sys/net/if_clone.c
318
LIST_FOREACH(ifcifp, &ifc->ifc_iflist, if_clones) {
sys/net/if_clone.c
320
IFC_IFLIST_REMOVE(ifc, ifp);
sys/net/if_clone.c
324
IF_CLONE_UNLOCK(ifc);
sys/net/if_clone.c
327
if_delgroup(ifp, ifc->ifc_name);
sys/net/if_clone.c
335
struct if_clone *ifc;
sys/net/if_clone.c
338
LIST_FOREACH(ifc, &V_if_cloners, ifc_list) {
sys/net/if_clone.c
339
if (ifc->ifc_match(ifc, name))
sys/net/if_clone.c
344
return (ifc);
sys/net/if_clone.c
350
struct if_clone *ifc;
sys/net/if_clone.c
353
LIST_FOREACH(ifc, &V_if_cloners, ifc_list) {
sys/net/if_clone.c
354
if (strcmp(ifc->ifc_name, name) == 0) {
sys/net/if_clone.c
360
return (ifc);
sys/net/if_clone.c
367
struct if_clone *ifc = ifc_find_cloner(name);
sys/net/if_clone.c
370
return (ifc);
sys/net/if_clone.c
377
if_clone_createif_nl(struct if_clone *ifc, const char *ifname, struct ifc_data_nl *ifd)
sys/net/if_clone.c
387
if (ifc->ifc_flags & IFC_F_AUTOUNIT) {
sys/net/if_clone.c
388
if ((error = ifc_handle_unit(ifc, name, sizeof(name), &ifd->unit)) != 0)
sys/net/if_clone.c
393
error = (*ifc->create_nl)(ifc, name, sizeof(name), ifd);
sys/net/if_clone.c
395
error = ifc_create_ifp_nl_default(ifc, name, sizeof(name), ifd);
sys/net/if_clone.c
397
if (ifc->ifc_flags & IFC_F_AUTOUNIT)
sys/net/if_clone.c
398
ifc_free_unit(ifc, ifd->unit);
sys/net/if_clone.c
403
if_clone_addif(ifc, ifd->ifp);
sys/net/if_clone.c
406
error = (*ifc->modify_nl)(ifd->ifp, ifd);
sys/net/if_clone.c
418
struct if_clone *ifc;
sys/net/if_clone.c
425
ifc = ifc_find_cloner_in_vnet(ifp->if_dname, ifp->if_home_vnet);
sys/net/if_clone.c
426
if (ifc == NULL) {
sys/net/if_clone.c
431
err = if_clone_destroyif(ifc, ifp);
sys/net/if_clone.c
440
if_clone_destroyif_flags(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
sys/net/if_clone.c
459
if (!ifc_unlink_ifp(ifc, ifp)) {
sys/net/if_clone.c
465
err = (*ifc->ifc_destroy)(ifc, ifp, flags);
sys/net/if_clone.c
468
ifc_link_ifp(ifc, ifp);
sys/net/if_clone.c
469
else if (ifc->ifc_flags & IFC_F_AUTOUNIT)
sys/net/if_clone.c
470
ifc_free_unit(ifc, unit);
sys/net/if_clone.c
476
if_clone_destroyif(struct if_clone *ifc, struct ifnet *ifp)
sys/net/if_clone.c
481
err = if_clone_destroyif_flags(ifc, ifp, 0);
sys/net/if_clone.c
489
struct if_clone *ifc;
sys/net/if_clone.c
494
ifc = malloc(sizeof(struct if_clone), M_CLONE, M_WAITOK | M_ZERO);
sys/net/if_clone.c
495
strncpy(ifc->ifc_name, name, IFCLOSIZ-1);
sys/net/if_clone.c
496
IF_CLONE_LOCK_INIT(ifc);
sys/net/if_clone.c
497
IF_CLONE_ADDREF(ifc);
sys/net/if_clone.c
498
ifc->ifc_maxunit = maxunit;
sys/net/if_clone.c
499
ifc->ifc_unrhdr = new_unrhdr(0, ifc->ifc_maxunit, &ifc->ifc_mtx);
sys/net/if_clone.c
500
LIST_INIT(&ifc->ifc_iflist);
sys/net/if_clone.c
502
ifc->create_nl = ifc_create_ifp_nl_default;
sys/net/if_clone.c
503
ifc->modify_nl = ifc_modify_ifp_nl_default;
sys/net/if_clone.c
504
ifc->dump_nl = ifc_dump_ifp_nl_default;
sys/net/if_clone.c
506
return (ifc);
sys/net/if_clone.c
510
if_clone_attach(struct if_clone *ifc)
sys/net/if_clone.c
516
if (strcmp(ifc->ifc_name, ifc1->ifc_name) == 0) {
sys/net/if_clone.c
518
IF_CLONE_REMREF(ifc);
sys/net/if_clone.c
521
LIST_INSERT_HEAD(&V_if_cloners, ifc, ifc_list);
sys/net/if_clone.c
532
struct if_clone *ifc;
sys/net/if_clone.c
540
ifc = if_clone_alloc(name, maxunit);
sys/net/if_clone.c
541
ifc->ifc_match = req->match_f != NULL ? req->match_f : ifc_simple_match;
sys/net/if_clone.c
542
ifc->ifc_create = req->create_f;
sys/net/if_clone.c
543
ifc->ifc_destroy = req->destroy_f;
sys/net/if_clone.c
544
ifc->ifc_flags = (req->flags & IFC_F_AUTOUNIT);
sys/net/if_clone.c
549
ifc->create_nl = req2->create_nl_f;
sys/net/if_clone.c
550
ifc->modify_nl = req2->modify_nl_f;
sys/net/if_clone.c
552
ifc->dump_nl = req2->dump_nl_f;
sys/net/if_clone.c
554
ifc->dump_nl = ifc_dump_ifp_nl_default;
sys/net/if_clone.c
557
if (if_clone_attach(ifc) != 0)
sys/net/if_clone.c
560
EVENTHANDLER_INVOKE(if_clone_event, ifc);
sys/net/if_clone.c
562
return (ifc);
sys/net/if_clone.c
566
ifc_detach_cloner(struct if_clone *ifc)
sys/net/if_clone.c
568
if_clone_detach(ifc);
sys/net/if_clone.c
575
ifc_advanced_create_wrapper(struct if_clone *ifc, char *name, size_t maxlen,
sys/net/if_clone.c
578
int error = ifc->ifca_create(ifc, name, maxlen, ifc_data->params);
sys/net/if_clone.c
586
ifc_advanced_destroy_wrapper(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
sys/net/if_clone.c
588
if (ifc->ifca_destroy == NULL)
sys/net/if_clone.c
590
return (ifc->ifca_destroy(ifc, ifp));
sys/net/if_clone.c
597
struct if_clone *ifc;
sys/net/if_clone.c
599
ifc = if_clone_alloc(name, maxunit ? maxunit : IF_MAXUNIT);
sys/net/if_clone.c
600
ifc->ifc_match = match;
sys/net/if_clone.c
601
ifc->ifc_create = ifc_advanced_create_wrapper;
sys/net/if_clone.c
602
ifc->ifc_destroy = ifc_advanced_destroy_wrapper;
sys/net/if_clone.c
603
ifc->ifca_destroy = destroy;
sys/net/if_clone.c
604
ifc->ifca_create = create;
sys/net/if_clone.c
606
if (if_clone_attach(ifc) != 0)
sys/net/if_clone.c
609
EVENTHANDLER_INVOKE(if_clone_event, ifc);
sys/net/if_clone.c
611
return (ifc);
sys/net/if_clone.c
615
ifc_simple_create_wrapper(struct if_clone *ifc, char *name, size_t maxlen,
sys/net/if_clone.c
621
int error = ifc->ifcs_create(ifc, unit, ifc_data->params);
sys/net/if_clone.c
628
ifc_simple_destroy_wrapper(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
sys/net/if_clone.c
630
if (ifp->if_dunit < ifc->ifcs_minifs && (flags & IFC_F_FORCE) == 0)
sys/net/if_clone.c
633
ifc->ifcs_destroy(ifp);
sys/net/if_clone.c
641
struct if_clone *ifc;
sys/net/if_clone.c
644
ifc = if_clone_alloc(name, IF_MAXUNIT);
sys/net/if_clone.c
645
ifc->ifc_match = ifc_simple_match;
sys/net/if_clone.c
646
ifc->ifc_create = ifc_simple_create_wrapper;
sys/net/if_clone.c
647
ifc->ifc_destroy = ifc_simple_destroy_wrapper;
sys/net/if_clone.c
648
ifc->ifcs_create = create;
sys/net/if_clone.c
649
ifc->ifcs_destroy = destroy;
sys/net/if_clone.c
650
ifc->ifcs_minifs = minifs;
sys/net/if_clone.c
651
ifc->ifc_flags = IFC_F_AUTOUNIT;
sys/net/if_clone.c
653
if (if_clone_attach(ifc) != 0)
sys/net/if_clone.c
661
snprintf(name, IFNAMSIZ, "%s%d", ifc->ifc_name, unit);
sys/net/if_clone.c
662
error = if_clone_createif_nl(ifc, name, &ifd);
sys/net/if_clone.c
668
EVENTHANDLER_INVOKE(if_clone_event, ifc);
sys/net/if_clone.c
670
return (ifc);
sys/net/if_clone.c
678
if_clone_detach(struct if_clone *ifc)
sys/net/if_clone.c
682
LIST_REMOVE(ifc, ifc_list);
sys/net/if_clone.c
688
while (!LIST_EMPTY(&ifc->ifc_iflist))
sys/net/if_clone.c
689
if_clone_destroyif_flags(ifc, LIST_FIRST(&ifc->ifc_iflist), IFC_F_FORCE);
sys/net/if_clone.c
692
IF_CLONE_REMREF(ifc);
sys/net/if_clone.c
696
if_clone_free(struct if_clone *ifc)
sys/net/if_clone.c
699
KASSERT(LIST_EMPTY(&ifc->ifc_iflist),
sys/net/if_clone.c
702
IF_CLONE_LOCK_DESTROY(ifc);
sys/net/if_clone.c
703
delete_unrhdr(ifc->ifc_unrhdr);
sys/net/if_clone.c
704
free(ifc, M_CLONE);
sys/net/if_clone.c
714
struct if_clone *ifc;
sys/net/if_clone.c
745
for (ifc = LIST_FIRST(&V_if_cloners), buf = outbuf;
sys/net/if_clone.c
746
ifc != NULL && count != 0;
sys/net/if_clone.c
747
ifc = LIST_NEXT(ifc, ifc_list), count--, buf += IFNAMSIZ) {
sys/net/if_clone.c
748
strlcpy(buf, ifc->ifc_name, IFNAMSIZ);
sys/net/if_clone.c
773
struct if_clone *ifc;
sys/net/if_clone.c
779
LIST_FOREACH(ifc, &V_if_cloners, ifc_list) {
sys/net/if_clone.c
780
IF_CLONE_LOCK(ifc);
sys/net/if_clone.c
781
LIST_FOREACH(ifcifp, &ifc->ifc_iflist, if_clones) {
sys/net/if_clone.c
783
strncpy(ifc_name, ifc->ifc_name, IFCLOSIZ-1);
sys/net/if_clone.c
787
IF_CLONE_UNLOCK(ifc);
sys/net/if_clone.c
792
LIST_FOREACH(ifc, &V_if_cloners, ifc_list)
sys/net/if_clone.c
793
if (strcmp(ifc->ifc_name, ifc_name) == 0)
sys/net/if_clone.c
797
if (ifc != NULL)
sys/net/if_clone.c
839
ifc_alloc_unit_specific(struct if_clone *ifc, int *unit)
sys/net/if_clone.c
843
if (*unit > ifc->ifc_maxunit)
sys/net/if_clone.c
846
if (alloc_unr_specific(ifc->ifc_unrhdr, *unit) == -1)
sys/net/if_clone.c
849
snprintf(name, IFNAMSIZ, "%s%d", ifc->ifc_name, *unit);
sys/net/if_clone.c
851
free_unr(ifc->ifc_unrhdr, *unit);
sys/net/if_clone.c
855
IF_CLONE_ADDREF(ifc);
sys/net/if_clone.c
861
ifc_alloc_unit_next(struct if_clone *ifc, int *unit)
sys/net/if_clone.c
865
*unit = alloc_unr(ifc->ifc_unrhdr);
sys/net/if_clone.c
869
free_unr(ifc->ifc_unrhdr, *unit);
sys/net/if_clone.c
871
error = ifc_alloc_unit_specific(ifc, unit);
sys/net/if_clone.c
882
ifc_alloc_unit(struct if_clone *ifc, int *unit)
sys/net/if_clone.c
885
return (ifc_alloc_unit_next(ifc, unit));
sys/net/if_clone.c
887
return (ifc_alloc_unit_specific(ifc, unit));
sys/net/if_clone.c
891
ifc_free_unit(struct if_clone *ifc, int unit)
sys/net/if_clone.c
894
free_unr(ifc->ifc_unrhdr, unit);
sys/net/if_clone.c
895
IF_CLONE_REMREF(ifc);
sys/net/if_clone.c
899
ifc_simple_match(struct if_clone *ifc, const char *name)
sys/net/if_clone.c
905
for (cp = name, i = 0; i < strlen(ifc->ifc_name); i++, cp++) {
sys/net/if_clone.c
906
if (ifc->ifc_name[i] != *cp)
sys/net/if_clone.c
920
ifc_handle_unit(struct if_clone *ifc, char *name, size_t len, int *punit)
sys/net/if_clone.c
933
err = ifc_alloc_unit(ifc, &unit);
sys/net/if_clone.h
111
void ifc_detach_cloner(struct if_clone *ifc);
sys/net/if_clone.h
118
void ifc_link_ifp(struct if_clone *ifc, struct ifnet *ifp);
sys/net/if_clone.h
119
bool ifc_unlink_ifp(struct if_clone *ifc, struct ifnet *ifp);
sys/net/if_clone.h
51
typedef int ifc_match_f(struct if_clone *ifc, const char *name);
sys/net/if_clone.h
52
typedef int ifc_create_f(struct if_clone *ifc, char *name, size_t maxlen,
sys/net/if_clone.h
54
typedef int ifc_destroy_f(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags);
sys/net/if_clone.h
71
typedef int ifc_create_nl_f(struct if_clone *ifc, char *name, size_t maxlen,
sys/net/if_disc.c
81
disc_clone_create(struct if_clone *ifc, int unit, caddr_t params)
sys/net/if_edsc.c
94
edsc_clone_create(struct if_clone *ifc, int unit, caddr_t params)
sys/net/if_enc.c
144
enc_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
sys/net/if_enc.c
162
enc_clone_create(struct if_clone *ifc, char *name, size_t len,
sys/net/if_epair.c
541
epair_clone_match(struct if_clone *ifc, const char *name)
sys/net/if_epair.c
576
epair_clone_add(struct if_clone *ifc, struct epair_softc *scb)
sys/net/if_epair.c
590
if_clone_addif(ifc, ifp);
sys/net/if_epair.c
594
epair_alloc_sc(struct if_clone *ifc)
sys/net/if_epair.c
722
epair_handle_unit(struct if_clone *ifc, char *name, size_t len, int *punit)
sys/net/if_epair.c
733
error = ifc_alloc_unit(ifc, &unit);
sys/net/if_epair.c
774
ifc_free_unit(ifc, unit);
sys/net/if_epair.c
780
epair_clone_create(struct if_clone *ifc, char *name, size_t len,
sys/net/if_epair.c
789
error = epair_handle_unit(ifc, name, len, &unit);
sys/net/if_epair.c
794
sca = epair_alloc_sc(ifc);
sys/net/if_epair.c
795
scb = epair_alloc_sc(ifc);
sys/net/if_epair.c
825
epair_clone_add(ifc, scb);
sys/net/if_epair.c
862
epair_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
sys/net/if_epair.c
892
error = if_clone_destroyif(ifc, oifp);
sys/net/if_epair.c
903
ifc_free_unit(ifc, unit);
sys/net/if_geneve.c
3338
geneve_clone_create_nl(struct if_clone *ifc, char *name, size_t len,
sys/net/if_geneve.c
3367
return (geneve_clone_create(ifc, name, len, &ifd_new, &ifd->ifp));
sys/net/if_geneve.c
3523
geneve_clone_create(struct if_clone *ifc, char *name, size_t len,
sys/net/if_geneve.c
3601
geneve_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
sys/net/if_gif.c
138
gif_clone_create(struct if_clone *ifc, int unit, caddr_t params)
sys/net/if_gre.c
231
gre_clone_create_nl(struct if_clone *ifc, char *name, size_t len,
sys/net/if_gre.c
239
return (gre_clone_create(ifc, name, len, &ifd_new, &ifd->ifp));
sys/net/if_gre.c
352
gre_clone_create(struct if_clone *ifc, char *name, size_t len,
sys/net/if_gre.c
397
gre_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
sys/net/if_ipsec.c
188
ipsec_clone_create(struct if_clone *ifc, int unit, caddr_t params)
sys/net/if_lagg.c
508
lagg_clone_create(struct if_clone *ifc, char *name, size_t len,
sys/net/if_lagg.c
619
lagg_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
sys/net/if_loop.c
102
lo_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
sys/net/if_loop.c
120
lo_clone_create(struct if_clone *ifc, char *name, size_t len,
sys/net/if_me.c
188
me_clone_create(struct if_clone *ifc, int unit, caddr_t params)
sys/net/if_ovpn.c
2689
ovpn_clone_match(struct if_clone *ifc, const char *name)
sys/net/if_ovpn.c
2699
ovpn_clone_create(struct if_clone *ifc, char *name, size_t len,
sys/net/if_ovpn.c
2713
error = ifc_alloc_unit(ifc, &unit);
sys/net/if_ovpn.c
2725
ifc_free_unit(ifc, unit);
sys/net/if_ovpn.c
2797
ovpn_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
sys/net/if_ovpn.c
2832
ifc_free_unit(ifc, unit);
sys/net/if_stf.c
228
stf_clone_match(struct if_clone *ifc, const char *name)
sys/net/if_stf.c
241
stf_clone_create(struct if_clone *ifc, char *name, size_t len,
sys/net/if_stf.c
260
err = ifc_alloc_unit(ifc, &unit);
sys/net/if_stf.c
304
stf_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
sys/net/if_stf.c
316
ifc_free_unit(ifc, STFUNIT);
sys/net/if_tuntap.c
241
static int tun_clone_match(struct if_clone *ifc, const char *name);
sys/net/if_tuntap.c
242
static int tap_clone_match(struct if_clone *ifc, const char *name);
sys/net/if_tuntap.c
243
static int vmnet_clone_match(struct if_clone *ifc, const char *name);
sys/net/if_tuntap.c
480
tun_clone_match(struct if_clone *ifc, const char *name)
sys/net/if_tuntap.c
493
tap_clone_match(struct if_clone *ifc, const char *name)
sys/net/if_tuntap.c
506
vmnet_clone_match(struct if_clone *ifc, const char *name)
sys/net/if_tuntap.c
523
tun_clone_create(struct if_clone *ifc, char *name, size_t len,
sys/net/if_tuntap.c
713
tun_clone_destroy(struct if_clone *ifc __unused, struct ifnet *ifp, uint32_t flags)
sys/net/if_vlan.c
1032
vlan_clone_match(struct if_clone *ifc, const char *name)
sys/net/if_vlan.c
1054
vlan_clone_create(struct if_clone *ifc, char *name, size_t len,
sys/net/if_vlan.c
1131
error = ifc_alloc_unit(ifc, &unit);
sys/net/if_vlan.c
1199
ifc_free_unit(ifc, unit);
sys/net/if_vlan.c
1237
vlan_clone_create_nl(struct if_clone *ifc, char *name, size_t len,
sys/net/if_vlan.c
1290
error = vlan_clone_create(ifc, name, len, &ifd_new, &ifd->ifp);
sys/net/if_vlan.c
1378
vlan_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
sys/net/if_vlan.c
1402
ifc_free_unit(ifc, unit);
sys/net/if_vlan.c
327
static int vlan_clone_create_nl(struct if_clone *ifc, char *name, size_t len,
sys/net/if_vxlan.c
3209
vxlan_clone_create(struct if_clone *ifc, char *name, size_t len,
sys/net/if_vxlan.c
3276
vxlan_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
sys/net80211/ieee80211_freebsd.c
116
wlan_clone_create(struct if_clone *ifc, char *name, size_t len,
sys/net80211/ieee80211_freebsd.c
172
wlan_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
sys/netpfil/pf/if_pflog.c
150
pflog_clone_create(struct if_clone *ifc, char *name, size_t maxlen,
sys/netpfil/pf/if_pflog.c
169
pflog_clone_destroy(ifc, ifp, IFC_F_FORCE);
sys/netpfil/pf/if_pflog.c
179
pflog_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags)
sys/netpfil/pf/if_pfsync.c
389
pfsync_clone_create(struct if_clone *ifc, int unit, caddr_t param)
usr.sbin/bluetooth/rtlbtfw/main.c
175
const struct libusb_interface *ifc;
usr.sbin/bluetooth/rtlbtfw/main.c
188
ifc = &cfg->interface[0];
usr.sbin/bluetooth/rtlbtfw/main.c
189
if (ifc->num_altsetting != 0) {
usr.sbin/bluetooth/rtlbtfw/main.c
191
d = &ifc->altsetting[0];
usr.sbin/route6d/route6d.c
1020
tobeadv(struct riprt *rrt, struct ifc *ifcp)
usr.sbin/route6d/route6d.c
103
struct ifc *ifac_ifc; /* back pointer */
usr.sbin/route6d/route6d.c
1104
struct ifc *ifcp, *ic;
usr.sbin/route6d/route6d.c
118
static struct ifc **index2ifc;
usr.sbin/route6d/route6d.c
120
static struct ifc *loopifcp = NULL; /* pointing to loopback */
usr.sbin/route6d/route6d.c
1450
sendrequest(struct ifc *ifcp)
usr.sbin/route6d/route6d.c
1478
riprequest(struct ifc *ifcp,
usr.sbin/route6d/route6d.c
1512
struct ifc *ifcp;
usr.sbin/route6d/route6d.c
1535
if ((ifcp = MALLOC(struct ifc)) == NULL) {
usr.sbin/route6d/route6d.c
1586
struct ifc *ifcp,
usr.sbin/route6d/route6d.c
1666
struct ifc *ifcp;
usr.sbin/route6d/route6d.c
1701
struct ifc *ifcp, *ic;
usr.sbin/route6d/route6d.c
204
static void ripsend(struct ifc *, struct sockaddr_in6 *, int);
usr.sbin/route6d/route6d.c
2049
rt_deladdr(struct ifc *ifcp,
usr.sbin/route6d/route6d.c
205
static int out_filter(struct riprt *, struct ifc *);
usr.sbin/route6d/route6d.c
208
static int ifconfig1(const char *, const struct sockaddr *, struct ifc *, int);
usr.sbin/route6d/route6d.c
212
static int rt_deladdr(struct ifc *, const struct sockaddr_in6 *,
usr.sbin/route6d/route6d.c
2150
ifrt(struct ifc *ifcp, int again)
usr.sbin/route6d/route6d.c
219
static int ifrt(struct ifc *, int);
usr.sbin/route6d/route6d.c
220
static void ifrt_p2p(struct ifc *, int);
usr.sbin/route6d/route6d.c
224
static void ifdump0(FILE *, const struct ifc *);
usr.sbin/route6d/route6d.c
2263
ifrt_p2p(struct ifc *ifcp, int again)
usr.sbin/route6d/route6d.c
229
static void riprequest(struct ifc *, struct netinfo6 *, int,
usr.sbin/route6d/route6d.c
231
static void ripflush(struct ifc *, struct sockaddr_in6 *, int, struct netinfo6 *np);
usr.sbin/route6d/route6d.c
232
static void sendrequest(struct ifc *);
usr.sbin/route6d/route6d.c
236
static int addroute(struct riprt *, const struct in6_addr *, struct ifc *);
usr.sbin/route6d/route6d.c
242
static int tobeadv(struct riprt *, struct ifc *);
usr.sbin/route6d/route6d.c
246
static struct ifac *ifa_match(const struct ifc *, const struct in6_addr *, int);
usr.sbin/route6d/route6d.c
259
static struct ifc *ifc_find(char *);
usr.sbin/route6d/route6d.c
260
static struct iff *iff_find(struct ifc *, int);
usr.sbin/route6d/route6d.c
261
static void setindex2ifc(int, struct ifc *);
usr.sbin/route6d/route6d.c
278
struct ifc *ifcp;
usr.sbin/route6d/route6d.c
2813
struct ifc *ifcp)
usr.sbin/route6d/route6d.c
3020
struct ifc *ifcp;
usr.sbin/route6d/route6d.c
3057
ifdump0(FILE *dump, const struct ifc *ifcp)
usr.sbin/route6d/route6d.c
3167
struct ifc *ifcp;
usr.sbin/route6d/route6d.c
3293
ifa_match(const struct ifc *ifcp,
usr.sbin/route6d/route6d.c
3523
static struct ifc *
usr.sbin/route6d/route6d.c
3526
struct ifc *ifcp;
usr.sbin/route6d/route6d.c
3536
iff_find(struct ifc *ifcp, int type)
usr.sbin/route6d/route6d.c
3550
setindex2ifc(int idx, struct ifc *ifcp)
usr.sbin/route6d/route6d.c
3553
struct ifc **p;
usr.sbin/route6d/route6d.c
3557
index2ifc = (struct ifc **)
usr.sbin/route6d/route6d.c
3569
p = (struct ifc **)realloc(index2ifc,
usr.sbin/route6d/route6d.c
577
struct ifc *ifcp;
usr.sbin/route6d/route6d.c
753
ripflush(struct ifc *ifcp, struct sockaddr_in6 *sin6, int nrt, struct netinfo6 *np)
usr.sbin/route6d/route6d.c
808
ripsend(struct ifc *ifcp, struct sockaddr_in6 *sin6, int flag)
usr.sbin/route6d/route6d.c
84
TAILQ_ENTRY(ifc) ifc_next;
usr.sbin/route6d/route6d.c
949
out_filter(struct riprt *rrt, struct ifc *ifcp)
usr.sbin/route6d/route6d.c
98
static TAILQ_HEAD(, ifc) ifc_head = TAILQ_HEAD_INITIALIZER(ifc_head);
usr.sbin/traceroute/ifaddrlist.c
70
struct ifconf ifc;
usr.sbin/traceroute/ifaddrlist.c
81
ifc.ifc_len = sizeof(ibuf);
usr.sbin/traceroute/ifaddrlist.c
82
ifc.ifc_buf = (caddr_t)ibuf;
usr.sbin/traceroute/ifaddrlist.c
84
if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 ||
usr.sbin/traceroute/ifaddrlist.c
85
ifc.ifc_len < (int)sizeof(struct ifreq)) {
usr.sbin/traceroute/ifaddrlist.c
97
ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);