Home
last modified time | relevance | path

Searched refs:nd_fd (Results 1 – 3 of 3) sorted by relevance

/external/dhcpcd-6.8.2/
Dipv6nd.c165 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 …]
Dipv6.h206 int nd_fd; member
Dipv6.c170 ctx->nd_fd = -1; in ipv6_init()