Lines Matching refs:ctrl_sock
4163 if (hapd->ctrl_sock > -1) {
4182 hapd->ctrl_sock = -1;
4205 hapd->ctrl_sock = socket(res->ai_family, res->ai_socktype,
4207 if (hapd->ctrl_sock < 0) {
4212 if (bind(hapd->ctrl_sock, res->ai_addr, res->ai_addrlen) < 0) {
4231 if (eloop_register_read_sock(hapd->ctrl_sock,
4244 if (hapd->ctrl_sock >= 0)
4245 close(hapd->ctrl_sock);
4252 if (hapd->ctrl_sock > -1) {
4379 hapd->ctrl_sock = s;
4406 if (hapd->ctrl_sock > -1) {
4411 eloop_unregister_read_sock(hapd->ctrl_sock);
4412 close(hapd->ctrl_sock);
4413 hapd->ctrl_sock = -1;
5279 hapd->ctrl_sock, &hapd->ctrl_dst,