Lines Matching refs:control_fd
194 control_handle1(ctx, ctx->control_fd, 0); in control_handle()
282 ctx->control_fd = fd; in control_start()
292 return ctx->control_fd; in control_start()
304 if (ctx->control_fd == -1) in control_stop()
306 eloop_event_delete(ctx->eloop, ctx->control_fd, 0); in control_stop()
307 close(ctx->control_fd); in control_stop()
308 ctx->control_fd = -1; in control_stop()
338 if ((ctx->control_fd = make_sock(&sa, ifname, 0)) == -1) in control_open()
341 if (connect(ctx->control_fd, (struct sockaddr *)&sa, len) == -1) { in control_open()
342 close(ctx->control_fd); in control_open()
343 ctx->control_fd = -1; in control_open()
370 return write(ctx->control_fd, buffer, len); in control_send()
439 if (ctx->control_fd != -1) { in control_close()
440 close(ctx->control_fd); in control_close()
441 ctx->control_fd = -1; in control_close()