Searched defs:ipfd (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dtable.c1343 int ipfd, nroutes, flags, r; local
1362 ipfd = open(IP_DEV_NAME, O_RDWR);
1363 if (ipfd == -1) {
1380 if (putmsg(ipfd, &cbuf, NULL, 0) == -1) {
1391 r = getmsg(ipfd, &cbuf, &dbuf, &flags);
1413 r = getmsg(ipfd, NULL, &dbuf, &flags);
1534 r = getmsg(ipfd, NULL, &dbuf, &flags);
1538 if (ipfd != -1)
1539 (void) close(ipfd);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dsys-solaris.c142 static int ipfd = -1; /* IPv4 fd */ variable
302 ipfd = open(IP_DEV_NAME, O_RDWR | O_NONBLOCK, 0);
303 if (ipfd < 0) {
306 return (ipfd);
315 if (ipfd == -1 && open_ipfd() == -1)
322 if (myioctl(ipfd, SIOCGIFMTU, &ifr) < 0) {
335 if (myioctl(ipfd, SIOCGIFADDR, &ifr) < 0) {
348 if (myioctl(ipfd, SIOCGIFDSTADDR, &ifr) < 0) {
568 if (ipfd == -1 && open_ipfd() == -1)
615 ipmuxid = myioctl(ipfd, I_LIN
[all...]

Completed in 63 milliseconds