ifconf
struct ifconf ifc;
IOCTL_STRUCT_CONV_TO(OOSIOCGIFCONF, ifconf);
IOCTL_STRUCT_CONV_TO(OSIOCGIFCONF, ifconf);
IOCTL_STRUCT_CONV_TO(SIOCGIFCONF, ifconf);
netbsd32_to_ifconf(struct netbsd32_ifconf *s32p, struct ifconf *p, u_long cmd)
netbsd32_from_ifconf(struct ifconf *p,
#define OOSIOCGIFCONF _IOWR('i', 20, struct ifconf) /* get ifnet list */
#define OSIOCGIFCONF _IOWR('i', 36, struct ifconf) /* get ifnet list */
case _IOWR('i', 20, struct ifconf): /* SIOCGIFCONF */
struct ifconf ifconfarg;
static int ifconf(u_long, void *);
return ifconf(cmd, data);
struct ifconf *ifc = (struct ifconf *)data;
#define SIOCGIFCONF _IOWR('i', 38, struct ifconf) /* get ifnet list */
struct ifconf ifc;
struct ifconf ifc;
struct ifconf ifc;
static struct ifconf ifconf; /* points to ifreq */
if (ifconf.ifc_len == 0) {
ifconf.ifc_len = ioc.ic_len;
ifconf.ifc_req = ifreq;
ifconf.ifc_len = sizeof(ifreq);
ifconf.ifc_req = ifreq;
m = ioctl(s, SIOCGIFCONF, (caddr_t) & ifconf);
if ((m < 0) || (ifconf.ifc_len <= 0)) {
len = ifconf.ifc_len;
FILE *ifconf = NULL;
ifconf = target_fopen(ifconfig_fn, "w");
if (ifconf != NULL) {
scripting_fprintf(ifconf, "up\n");
scripting_fprintf(ifconf, "media %s\n", net_media);
if (ifconf != NULL) {
scripting_fprintf(ifconf,
scripting_fprintf(ifconf, "%s netmask %s\n",
if (ifconf)
fclose(ifconf);