| /dragonfly/sys/net/ |
| HD | if_clone.c | 61 struct if_clone *ifc; in if_clone_create() local 67 if ((ifc = if_clone_lookup(name)) == NULL) in if_clone_create() 75 if ((err = if_clone_alloc_unit(ifc, &unit)) != 0) { in if_clone_create() 80 ksnprintf(ifname, IFNAMSIZ, "%s%d", ifc->ifc_name, unit); in if_clone_create() 87 if_clone_free_unit(ifc, unit); in if_clone_create() 92 err = if_clone_createif(ifc, unit, params, data); in if_clone_create() 94 if_clone_free_unit(ifc, unit); in if_clone_create() 106 struct if_clone *ifc; in if_clone_destroy() local 116 if ((ifc = if_clone_lookup(ifp->if_dname)) == NULL) in if_clone_destroy() 120 if (unit < ifc->ifc_minifs) in if_clone_destroy() [all …]
|
| HD | if_clone.h | 78 int if_clone_attach(struct if_clone *ifc); 79 void if_clone_detach(struct if_clone *ifc);
|
| HD | if_loop.c | 106 lo_clone_create(struct if_clone *ifc, int unit, in lo_clone_create() argument 112 if_initname(ifp, ifc->ifc_name, unit); in lo_clone_create()
|
| /dragonfly/test/ifconf/ |
| HD | ifconf.c | 34 struct ifconf ifc; in main() local 57 memset(&ifc, 0, sizeof(ifc)); in main() 58 ifc.ifc_len = sizeof(struct sockaddr_storage) * naddrs; in main() 59 ifc.ifc_buf = malloc(ifc.ifc_len); in main() 60 if (ifc.ifc_buf == NULL) in main() 63 if (ioctl(s, SIOCGIFCONF, &ifc, sizeof(ifc)) < 0) in main() 66 pos = ifc.ifc_buf; in main() 67 while (ifc.ifc_len >= (int)sizeof(*ifr)) { in main() 72 if (ifc.ifc_len < len) in main() 110 ifc.ifc_len -= len; in main() [all …]
|
| /dragonfly/contrib/smbfs/lib/smb/ |
| HD | nb_net.c | 104 struct ifconf ifc; in nb_enum_if() local 122 ifc.ifc_len = rdlen; in nb_enum_if() 123 ifc.ifc_buf = ifrdata; in nb_enum_if() 124 if (ioctl(s, SIOCGIFCONF, &ifc) != 0) { in nb_enum_if() 128 ifrqp = ifc.ifc_req; in nb_enum_if() 129 ifcnt = ifc.ifc_len / sizeof(struct ifreq); in nb_enum_if()
|
| /dragonfly/usr.sbin/route6d/ |
| HD | route6d.c | 93 struct ifc { /* Configuration of an interface */ struct 95 struct ifc *ifc_next; argument 109 struct ifc *ifa_conf; /* back pointer */ 123 static struct ifc *ifc; variable 125 static struct ifc **index2ifc; 127 static struct ifc *loopifcp = NULL; /* pointing to loopback */ 201 static void ripsend(struct ifc *, struct sockaddr_in6 *, int); 202 static int out_filter(struct riprt *, struct ifc *); 205 static void ifconfig1(const char *, const struct sockaddr *, struct ifc *, int); 209 static int rt_deladdr(struct ifc *, const struct sockaddr_in6 *, [all …]
|
| /dragonfly/games/hunt/hunt/ |
| HD | list.c | 218 struct ifconf ifc; in probe_drivers() local 265 ifc.ifc_len = inlen; in probe_drivers() 268 ifc.ifc_buf = inbuf = ninbuf; in probe_drivers() 269 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0) in probe_drivers() 271 if (ifc.ifc_len + (int)sizeof(*ifr) < inlen) in probe_drivers() 277 ifr = ifc.ifc_req; in probe_drivers() 278 for (i = 0; i < ifc.ifc_len; in probe_drivers()
|
| /dragonfly/libexec/rbootd/ |
| HD | bpf.c | 209 struct ifconf ifc; in BpfGetIntfName() local 223 ifc.ifc_len = sizeof ibuf; in BpfGetIntfName() 224 ifc.ifc_buf = (caddr_t)ibuf; in BpfGetIntfName() 226 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 || in BpfGetIntfName() 227 ifc.ifc_len < sizeof(struct ifreq)) { in BpfGetIntfName() 232 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len); in BpfGetIntfName()
|
| /dragonfly/libexec/bootpd/ |
| HD | getether.c | 131 struct ifconf ifc; in getether() local 140 ifc.ifc_len = sizeof(ibuf); in getether() 141 ifc.ifc_buf = (caddr_t) ibuf; in getether() 142 if (ioctl(fd, SIOCGIFCONF, (char *) &ifc) < 0 || in getether() 143 ifc.ifc_len < sizeof(struct ifreq)) { in getether() 149 ifend = (struct ifreq *) ((char *) ibuf + ifc.ifc_len); in getether()
|
| /dragonfly/usr.sbin/arp/ |
| HD | arp.c | 699 struct ifconf ifc; in get_ether_addr() local 707 ifc.ifc_len = sizeof(ifs); in get_ether_addr() 708 ifc.ifc_req = ifs; in get_ether_addr() 709 if (ioctl(sock, SIOCGIFCONF, &ifc) < 0) { in get_ether_addr() 719 ifend = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len); in get_ether_addr() 720 for (ifr = ifc.ifc_req; ifr < ifend; ) { in get_ether_addr() 764 for (ifr = ifc.ifc_req; ifr < ifend; ) { in get_ether_addr()
|
| /dragonfly/initrd/rescue/ |
| HD | dowpa | 8 ifc=$1 26 ifconfig wlan0 create wlandev $ifc
|
| /dragonfly/share/examples/rconfig/ |
| HD | hammer.sh | 164 set ifc = `route -n get default | fgrep interface | awk '{ print $2; }'` 165 set ip = `ifconfig $ifc | fgrep inet | fgrep -v inet6 | awk '{ print $2; }'` 168 echo -n "ifconfig_$ifc=" >> /mnt/etc/rc.conf
|
| HD | encrypted_root.sh | 186 set ifc = `route -n get default | fgrep interface | awk '{ print $2; }'` 187 set ip = `ifconfig $ifc | fgrep inet | fgrep -v inet6 | awk '{ print $2; }'` 190 echo -n "ifconfig_$ifc=" >> /mnt/etc/rc.conf
|
| HD | hammer_uefi.sh | 166 set ifc = `route -n get default | fgrep interface | awk '{ print $2; }'` 167 set ip = `ifconfig $ifc | fgrep inet | fgrep -v inet6 | awk '{ print $2; }'` 170 echo -n "ifconfig_$ifc=" >> /mnt/etc/rc.conf
|
| HD | hammer_lvm_stripe.sh | 464 ifc=`route -n get default | fgrep interface | awk '{ print $2; }'` 465 ip=`ifconfig $ifc | fgrep inet | fgrep -v inet6 | awk '{ print $2; }'` 468 echo -n "ifconfig_$ifc=" >> /mnt/etc/rc.conf
|
| HD | hammer_ccd_mirror.sh | 395 ifc=`route -n get default | fgrep interface | awk '{ print $2; }'` 396 ip=`ifconfig $ifc | fgrep inet | fgrep -v inet6 | awk '{ print $2; }'` 399 echo -n "ifconfig_$ifc=" >> /mnt/etc/rc.conf
|
| /dragonfly/sys/net/pf/ |
| HD | if_pflog.c | 113 pflog_clone_create(struct if_clone *ifc, int unit, in pflog_clone_create() argument 131 if_initname(ifp, ifc->ifc_name, unit); in pflog_clone_create()
|
| /dragonfly/contrib/dhcpcd/src/ |
| HD | dhcpcd.h | 129 int ifc; /* listed interfaces */ member
|
| HD | if.c | 537 for (i = 0; i < ctx->ifc; i++) in if_discover() 540 if (ctx->ifc && i == ctx->ifc) in if_discover()
|
| HD | dhcpcd.c | 1229 ifaces = if_discover(ctx, &ifaddrs, ctx->ifc, ctx->ifv); in dhcpcd_linkoverflow() 1474 ctx->argc - ctx->ifc); in dhcpcd_signal_cb() 2109 ctx.ifc = argc - optind; in main() 2554 if (ctx.ifc == 1 && !(ctx.options & DHCPCD_BACKGROUND)) in main() 2557 ctx.ifaces = if_discover(&ctx, &ifaddrs, ctx.ifc, ctx.ifv); in main() 2562 for (i = 0; i < ctx.ifc; i++) { in main() 2576 if (ctx.ifc == 0) { in main()
|
| HD | privsep-inet.c | 130 ctx->ifc != 0 ? ctx->ifv[0] : "", in ps_inet_startcb()
|
| /dragonfly/sys/net/ipfw3_basic/ |
| HD | ip_fw3_log.c | 144 ip_fw3_log_clone_create(struct if_clone *ifc, int unit, in ip_fw3_log_clone_create() argument
|
| /dragonfly/sys/dev/raid/dpt/ |
| HD | dpt_scsi.c | 120 u_int ifc, u_int code, 149 u_int ifc, u_int code, 279 u_int ifc, u_int code, u_int code2) in dpt_send_immediate() argument 282 EATA_CMD_IMMEDIATE, retries, ifc, in dpt_send_immediate() 1098 u_int ifc, u_int code, u_int code2) in dpt_send_eata_command() argument 1156 dpt_outb(dpt, HA_WIFC, ifc); in dpt_send_eata_command()
|
| /dragonfly/sys/bus/u4b/ |
| HD | usb_pf.c | 146 usbpf_clone_create(struct if_clone *ifc, int unit, caddr_t params, in usbpf_clone_create() argument
|
| /dragonfly/sys/netproto/802_11/wlan/ |
| HD | ieee80211_dragonfly.c | 80 wlan_clone_create(struct if_clone *ifc, int unit, caddr_t params, in wlan_clone_create() argument 115 vap = ic->ic_vap_create(ic, ifc->ifc_name, unit, in wlan_clone_create()
|