struct npioctl npi;
sifup(u)    int u;{    struct ifreq ifr;    struct npioctl npi;    strncpy(ifr.ifr_name, ifname, sizeof (ifr.ifr_name));    if (ioctl(sockfd, SIOCGIFFLAGS, (caddr_t) &ifr) < 0) {	syslog(LOG_ERR, "ioctl (SIOCGIFFLAGS): %m");	return 0;    }    ifr.ifr_flags |= IFF_UP;    if (ioctl(sockfd, SIOCSIFFLAGS, (caddr_t) &ifr) < 0) {	syslog(LOG_ERR, "ioctl(SIOCSIFFLAGS): %m");	return 0;    }    if_is_up = 1;    npi.protocol = PPP_IP;    npi.mode = NPMODE_PASS;    if (ioctl(ppp_fd, PPPIOCSNPMODE, &npi) < 0) {	syslog(LOG_ERR, "ioctl(set IP mode to PASS): %m");	return 0;    }    return 1;}