Lines Matching refs:ctrl_sock
4729 if (hapd->ctrl_sock > -1) {
4748 hapd->ctrl_sock = -1;
4771 hapd->ctrl_sock = socket(res->ai_family, res->ai_socktype,
4773 if (hapd->ctrl_sock < 0) {
4778 if (bind(hapd->ctrl_sock, res->ai_addr, res->ai_addrlen) < 0) {
4797 if (eloop_register_read_sock(hapd->ctrl_sock,
4810 if (hapd->ctrl_sock >= 0)
4811 close(hapd->ctrl_sock);
4818 if (hapd->ctrl_sock > -1) {
4945 hapd->ctrl_sock = s;
4972 if (hapd->ctrl_sock > -1) {
4977 eloop_unregister_read_sock(hapd->ctrl_sock);
4978 close(hapd->ctrl_sock);
4979 hapd->ctrl_sock = -1;
5859 hapd->ctrl_sock, &hapd->ctrl_dst,