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

123

/freebsd-current/sys/net/
H A Dif_clone.c112 static void if_clone_free(struct if_clone *ifc);
113 static int if_clone_createif_nl(struct if_clone *ifc, const char *name,
116 static int ifc_simple_match(struct if_clone *ifc, const char *name);
117 static int ifc_handle_unit(struct if_clone *ifc, char *name, size_t len, int *punit);
122 static int ifc_simple_create_wrapper(struct if_clone *ifc, char *name, size_t maxlen,
124 static int ifc_advanced_create_wrapper(struct if_clone *ifc, char *name, size_t maxlen,
140 #define IF_CLONE_LOCK_INIT(ifc) \
141 mtx_init(&(ifc)->ifc_mtx, "if_clone lock", NULL, MTX_DEF)
142 #define IF_CLONE_LOCK_DESTROY(ifc) mtx_destroy(&(ifc)
199 struct if_clone *ifc = ifc_find_cloner_match(name); local
221 struct if_clone *ifc = ifc_find_cloner_match(name); local
249 struct if_clone *ifc = ifc_find_cloner(ifp->if_dname); local
262 struct if_clone *ifc = ifc_find_cloner(ifp->if_dname); local
271 ifc_create_ifp_nl_default(struct if_clone *ifc, char *name, size_t len, struct ifc_data_nl *ifd) argument
303 ifc_link_ifp(struct if_clone *ifc, struct ifnet *ifp) argument
314 if_clone_addif(struct if_clone *ifc, struct ifnet *ifp) argument
320 ifc_unlink_ifp(struct if_clone *ifc, struct ifnet *ifp) argument
342 struct if_clone *ifc; local
357 struct if_clone *ifc; local
374 struct if_clone *ifc = ifc_find_cloner(name); local
384 if_clone_createif_nl(struct if_clone *ifc, const char *ifname, struct ifc_data_nl *ifd) argument
425 struct if_clone *ifc; local
447 if_clone_destroyif_flags(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) argument
475 if_clone_destroyif(struct if_clone *ifc, struct ifnet *ifp) argument
483 struct if_clone *ifc; local
503 if_clone_attach(struct if_clone *ifc) argument
529 struct if_clone *ifc = if_clone_alloc(name, req->maxunit); local
554 ifc_detach_cloner(struct if_clone *ifc) argument
563 ifc_advanced_create_wrapper(struct if_clone *ifc, char *name, size_t maxlen, struct ifc_data *ifc_data, struct ifnet **ifpp) argument
574 ifc_advanced_destroy_wrapper(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) argument
585 struct if_clone *ifc; local
603 ifc_simple_create_wrapper(struct if_clone *ifc, char *name, size_t maxlen, struct ifc_data *ifc_data, struct ifnet **ifpp) argument
616 ifc_simple_destroy_wrapper(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) argument
629 struct if_clone *ifc; local
666 if_clone_detach(struct if_clone *ifc) argument
682 if_clone_free(struct if_clone *ifc) argument
700 struct if_clone *ifc; local
759 struct if_clone *ifc; local
825 ifc_alloc_unit_specific(struct if_clone *ifc, int *unit) argument
847 ifc_alloc_unit_next(struct if_clone *ifc, int *unit) argument
868 ifc_alloc_unit(struct if_clone *ifc, int *unit) argument
877 ifc_free_unit(struct if_clone *ifc, int unit) argument
885 ifc_simple_match(struct if_clone *ifc, const char *name) argument
906 ifc_handle_unit(struct if_clone *ifc, char *name, size_t len, int *punit) argument
[all...]
H A Dif_clone.h51 typedef int ifc_match_f(struct if_clone *ifc, const char *name);
52 typedef int ifc_create_f(struct if_clone *ifc, char *name, size_t maxlen,
54 typedef int ifc_destroy_f(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags);
71 typedef int ifc_create_nl_f(struct if_clone *ifc, char *name, size_t maxlen,
106 void ifc_detach_cloner(struct if_clone *ifc);
113 void ifc_link_ifp(struct if_clone *ifc, struct ifnet *ifp);
114 bool ifc_unlink_ifp(struct if_clone *ifc, struct ifnet *ifp);
H A Dif_epair.c475 epair_clone_match(struct if_clone *ifc, const char *name) argument
499 epair_clone_add(struct if_clone *ifc, struct epair_softc *scb) argument
510 if_clone_addif(ifc, ifp);
514 epair_alloc_sc(struct if_clone *ifc) argument
643 epair_handle_unit(struct if_clone *ifc, char *name, size_t len, int *punit) argument
654 error = ifc_alloc_unit(ifc, &unit);
695 ifc_free_unit(ifc, unit);
701 epair_clone_create(struct if_clone *ifc, char *name, size_t len, argument
710 error = epair_handle_unit(ifc, name, len, &unit);
715 sca = epair_alloc_sc(ifc);
786 epair_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) argument
[all...]
H A Dif_edsc.c94 edsc_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument
H A Dif_disc.c81 disc_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument
H A Dif_loop.c106 lo_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) argument
124 lo_clone_create(struct if_clone *ifc, char *name, size_t len, argument
H A Dif_stf.c229 stf_clone_match(struct if_clone *ifc, const char *name) argument
242 stf_clone_create(struct if_clone *ifc, char *name, size_t len, argument
261 err = ifc_alloc_unit(ifc, &unit);
269 ifc_free_unit(ifc, unit);
310 stf_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) argument
322 ifc_free_unit(ifc, STFUNIT);
H A Dif_tuntap.c237 static int tun_clone_match(struct if_clone *ifc, const char *name);
238 static int tap_clone_match(struct if_clone *ifc, const char *name);
239 static int vmnet_clone_match(struct if_clone *ifc, const char *name);
462 tun_clone_match(struct if_clone *ifc, const char *name) argument
475 tap_clone_match(struct if_clone *ifc, const char *name) argument
488 vmnet_clone_match(struct if_clone *ifc, const char *name) argument
501 tun_clone_create(struct if_clone *ifc, char *name, size_t len, argument
643 tun_clone_destroy(struct if_clone *ifc __unused, struct ifnet *ifp, uint32_t flags)
H A Dif_vlan.c326 static int vlan_clone_create_nl(struct if_clone *ifc, char *name, size_t len,
1048 vlan_clone_match(struct if_clone *ifc, const char *name) argument
1070 vlan_clone_create(struct if_clone *ifc, char *name, size_t len, argument
1147 error = ifc_alloc_unit(ifc, &unit);
1168 ifc_free_unit(ifc, unit);
1223 ifc_free_unit(ifc, unit);
1261 vlan_clone_create_nl(struct if_clone *ifc, char *name, size_t len, argument
1314 error = vlan_clone_create(ifc, name, len, &ifd_new, &ifd->ifp);
1394 vlan_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) argument
1417 ifc_free_unit(ifc, uni
[all...]
/freebsd-current/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-current/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-current/usr.sbin/traceroute/
H A Difaddrlist.c70 struct ifconf ifc; local
81 ifc.ifc_len = sizeof(ibuf);
82 ifc.ifc_buf = (caddr_t)ibuf;
84 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 ||
85 ifc.ifc_len < (int)sizeof(struct ifreq)) {
97 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);
/freebsd-current/contrib/libpcap/
H A Dfad-gifc.c141 struct ifconf ifc; local
189 ifc.ifc_len = buf_size;
190 ifc.ifc_buf = buf;
192 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0
200 if (ifc.ifc_len < (int)buf_size &&
201 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN)
208 ifend = (struct ifreq *)(buf + ifc.ifc_len);
231 * doesn't update ifc.ifc_len, leaving it larger than the
H A Dfad-glifc.c83 struct lifconf ifc; local
145 ifc.lifc_len = buf_size;
146 ifc.lifc_buf = buf;
147 ifc.lifc_family = AF_UNSPEC;
148 ifc.lifc_flags = 0;
150 if (ioctl(fd4, SIOCGLIFCONF, (char *)&ifc) < 0) {
163 ifend = (struct lifreq *)(buf + ifc.lifc_len);
/freebsd-current/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-current/libexec/bootpd/
H A Dgetether.c127 struct ifconf ifc;
136 ifc.ifc_len = sizeof(ibuf);
137 ifc.ifc_buf = (caddr_t) ibuf;
138 if (ioctl(fd, SIOCGIFCONF, (char *) &ifc) < 0 ||
139 ifc.ifc_len < sizeof(struct ifreq)) {
145 ifend = (struct ifreq *) ((char *) ibuf + ifc.ifc_len);
125 struct ifconf ifc; local
/freebsd-current/libexec/rbootd/
H A Dbpf.c211 struct ifconf ifc; local
225 ifc.ifc_len = sizeof ibuf;
226 ifc.ifc_buf = (caddr_t)ibuf;
228 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 ||
229 ifc.ifc_len < sizeof(struct ifreq)) {
234 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);
/freebsd-current/contrib/ntp/libntp/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-current/sys/dev/usb/
H A Dusb_pf.c157 usbpf_clone_match(struct if_clone *ifc, const char *name) argument
171 usbpf_clone_create(struct if_clone *ifc, char *name, size_t len, argument
191 error = ifc_alloc_unit(ifc, &unit);
199 ifc_free_unit(ifc, unit);
223 usbpf_clone_destroy(struct if_clone *ifc, if_t ifp, uint32_t flags) argument
241 ifc_free_unit(ifc, unit);
/freebsd-current/usr.sbin/route6d/
H A Droute6d.c83 struct ifc { /* Configuration of an interface */ struct
84 TAILQ_ENTRY(ifc) ifc_next;
98 static TAILQ_HEAD(, ifc) ifc_head = TAILQ_HEAD_INITIALIZER(ifc_head);
103 struct ifc *ifac_ifc; /* back pointer */
118 static struct ifc **index2ifc;
120 static struct ifc *loopifcp = NULL; /* pointing to loopback */
204 static void ripsend(struct ifc *, struct sockaddr_in6 *, int);
205 static int out_filter(struct riprt *, struct ifc *);
208 static int ifconfig1(const char *, const struct sockaddr *, struct ifc *, int);
212 static int rt_deladdr(struct ifc *, cons
[all...]
/freebsd-current/sys/netpfil/ipfw/
H A Dip_fw_bpf.c93 ipfw_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument
119 ipfwlog_clone_create(struct if_clone *ifc, int unit, caddr_t params) argument
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors_ioctl.inc591 struct __sanitizer_ifconf *ifc = (__sanitizer_ifconf *)arg;
592 COMMON_INTERCEPTOR_READ_RANGE(ctx, (char*)&ifc->ifc_len,
593 sizeof(ifc->ifc_len));
607 struct __sanitizer_ifconf *ifc = (__sanitizer_ifconf *)arg;
608 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ifc->ifc_ifcu.ifcu_req, ifc->ifc_len);
/freebsd-current/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
203 t4_cloner_destroy(struct if_clone *ifc, if_t ifp) argument
/freebsd-current/sys/netpfil/pf/
H A Dif_pflog.c123 pflog_clone_create(struct if_clone *ifc, char *name, size_t maxlen, argument
153 pflog_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) argument
/freebsd-current/sys/compat/linux/
H A Dlinux_ioctl.c2117 struct l_ifconf *ifc; local
2119 struct ifconf *ifc;
2122 ifc = arg;
2123 ifc->ifc_len += sizeof(struct l_ifreq);
2179 struct l_ifconf ifc; local
2181 struct ifconf ifc; local
2186 error = copyin(uifc, &ifc, sizeof(ifc));
2191 if (PTRIN(ifc.ifc_buf) == NULL) {
2192 ifc
[all...]

Completed in 203 milliseconds

123