Searched refs:nd_fd (Results 1 – 3 of 3) sorted by relevance
/external/dhcpcd-6.8.2/ |
D | ipv6nd.c | 165 if (ctx->nd_fd != -1) in ipv6nd_open() 166 return ctx->nd_fd; in ipv6nd_open() 168 ctx->nd_fd = socket(PF_INET6, SOCK_RAW | SOCK_CLOEXEC | SOCK_NONBLOCK, in ipv6nd_open() 170 if (ctx->nd_fd == -1) in ipv6nd_open() 173 if ((ctx->nd_fd = socket(PF_INET6, SOCK_RAW, IPPROTO_ICMPV6)) == -1) in ipv6nd_open() 175 if ((on = fcntl(ctx->nd_fd, F_GETFD, 0)) == -1 || in ipv6nd_open() 176 fcntl(ctx->nd_fd, F_SETFD, on | FD_CLOEXEC) == -1) in ipv6nd_open() 178 close(ctx->nd_fd); in ipv6nd_open() 179 ctx->nd_fd = -1; in ipv6nd_open() 182 if ((on = fcntl(ctx->nd_fd, F_GETFL, 0)) == -1 || in ipv6nd_open() [all …]
|
D | ipv6.h | 206 int nd_fd; member
|
D | ipv6.c | 170 ctx->nd_fd = -1; in ipv6_init()
|