HomeSort by relevance Sort by last modified time
    Searched full:netlinkfd (Results 1 - 7 of 7) sorted by null

  /external/tlsdate/src/
routeup.c 46 rtc->netlinkfd = socket (AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
47 if (rtc->netlinkfd < 0)
52 if (bind (rtc->netlinkfd, (struct sockaddr *) &sa, sizeof (sa)) < 0)
55 close (rtc->netlinkfd);
58 if (fcntl (rtc->netlinkfd, F_SETFL, O_NONBLOCK) < 0)
61 close (rtc->netlinkfd);
79 if ( (ret = read (rtc->netlinkfd, buf, sizeof (buf))) < 0)
99 while (read (rtc->netlinkfd, buf, sizeof (buf)) > 0)
123 FD_SET (rtc->netlinkfd, &fds);
124 while (select (rtc->netlinkfd + 1, &fds, NULL, NULL, rp) >= 0
    [all...]
routeup.h 18 int netlinkfd; /* AF_NETLINK event socket */ member in struct:routeup
  /external/dnsmasq/src/
netlink.c 54 if ((daemon->netlinkfd = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE)) != -1)
56 if (bind(daemon->netlinkfd, (struct sockaddr *)&addr, sizeof(addr)) == -1)
59 if (errno != EPERM || bind(daemon->netlinkfd, (struct sockaddr *)&addr, sizeof(addr)) == -1)
60 daemon->netlinkfd = -1;
64 if (daemon->netlinkfd == -1 ||
65 getsockname(daemon->netlinkfd, (struct sockaddr *)&addr, &slen) == 1)
91 while ((rc = recvmsg(daemon->netlinkfd, &msg, MSG_PEEK | MSG_TRUNC)) == -1 && errno == EINTR);
108 while ((rc = recvmsg(daemon->netlinkfd, &msg, 0)) == -1 && errno == EINTR);
152 while((len = sendto(daemon->netlinkfd, (void *)&req, sizeof(req), 0,
243 if ((flags = fcntl(daemon->netlinkfd, F_GETFL)) == -1 |
    [all...]
dnsmasq.c 620 FD_SET(daemon->netlinkfd, &rset);
621 bump_maxfd(daemon->netlinkfd, &maxfd);
672 if (FD_ISSET(daemon->netlinkfd, &rset))
    [all...]
dnsmasq.h 669 int netlinkfd; member in struct:daemon
  /external/tlsdate/src/events/
route_up.c 43 routeup_cfg.netlinkfd = fd;
67 fd = routeup_cfg.netlinkfd;
  /external/dnsmasq/contrib/lease-access/
lease.access.patch 74 if (FD_ISSET(daemon->netlinkfd, &rset))

Completed in 202 milliseconds