Searched refs:iffd (Results 1 - 6 of 6) sorted by relevance

/asus-wl-520gu-7.0.1.45/src/router/ppp/pppd/
H A Dsys-sunos4.c72 static int iffd; variable
142 iffd = open("/dev/ppp", O_RDWR, 0);
143 if (iffd < 0)
147 strioctl(iffd, PPPIO_DEBUG, &x, sizeof(int), 0);
149 if (strioctl(iffd, PPPIO_ATTACH, &ifunit, sizeof(int), 0) < 0)
151 if (ioctl(iffd, I_PUSH, "if_ppp") < 0)
155 strioctl(iffd, PPPIO_DEBUG, &x, sizeof(int), 0);
157 if (strioctl(iffd, PPPIO_NEWPPA, &ifunit, sizeof(int), 0) < 0)
160 if (strioctl(iffd, PPPIO_BIND, &x, sizeof(int), 0) < 0)
190 close(iffd);
[all...]
H A Dsys-solaris.c2097 int unit, iffd, adrlen; local
2119 iffd = open(ifdev, O_RDWR);
2120 if (iffd < 0) {
2124 if (dlpi_attach(iffd, unit) < 0
2125 || dlpi_get_reply(iffd, &reply.prim, DL_OK_ACK, sizeof(reply)) < 0
2126 || dlpi_info_req(iffd) < 0
2127 || dlpi_get_reply(iffd, &reply.prim, DL_INFO_ACK, sizeof(reply)) < 0) {
2128 close(iffd);
/asus-wl-520gu-7.0.1.45/src/router/pppd/pppd/
H A Dsys-sunos4.c120 static int iffd; variable
190 iffd = open("/dev/ppp", O_RDWR, 0);
191 if (iffd < 0)
195 strioctl(iffd, PPPIO_DEBUG, &x, sizeof(int), 0);
197 if (strioctl(iffd, PPPIO_ATTACH, &ifunit, sizeof(int), 0) < 0)
199 if (ioctl(iffd, I_PUSH, "if_ppp") < 0)
203 strioctl(iffd, PPPIO_DEBUG, &x, sizeof(int), 0);
205 if (strioctl(iffd, PPPIO_NEWPPA, &ifunit, sizeof(int), 0) < 0)
208 if (strioctl(iffd, PPPIO_BIND, &x, sizeof(int), 0) < 0)
238 close(iffd);
[all...]
H A Dsys-solaris.c2228 int unit, iffd, adrlen; local
2250 iffd = open(ifdev, O_RDWR);
2251 if (iffd < 0) {
2255 if (dlpi_attach(iffd, unit) < 0
2256 || dlpi_get_reply(iffd, &reply.prim, DL_OK_ACK, sizeof(reply)) < 0
2257 || dlpi_info_req(iffd) < 0
2258 || dlpi_get_reply(iffd, &reply.prim, DL_INFO_ACK, sizeof(reply)) < 0) {
2259 close(iffd);
/asus-wl-520gu-7.0.1.45/src/router/pppd.mppe/pppd/
H A Dsys-sunos4.c120 static int iffd; variable
190 iffd = open("/dev/ppp", O_RDWR, 0);
191 if (iffd < 0)
195 strioctl(iffd, PPPIO_DEBUG, &x, sizeof(int), 0);
197 if (strioctl(iffd, PPPIO_ATTACH, &ifunit, sizeof(int), 0) < 0)
199 if (ioctl(iffd, I_PUSH, "if_ppp") < 0)
203 strioctl(iffd, PPPIO_DEBUG, &x, sizeof(int), 0);
205 if (strioctl(iffd, PPPIO_NEWPPA, &ifunit, sizeof(int), 0) < 0)
208 if (strioctl(iffd, PPPIO_BIND, &x, sizeof(int), 0) < 0)
238 close(iffd);
[all...]
H A Dsys-solaris.c2228 int unit, iffd, adrlen; local
2250 iffd = open(ifdev, O_RDWR);
2251 if (iffd < 0) {
2255 if (dlpi_attach(iffd, unit) < 0
2256 || dlpi_get_reply(iffd, &reply.prim, DL_OK_ACK, sizeof(reply)) < 0
2257 || dlpi_info_req(iffd) < 0
2258 || dlpi_get_reply(iffd, &reply.prim, DL_INFO_ACK, sizeof(reply)) < 0) {
2259 close(iffd);

Completed in 155 milliseconds