Lines Matching +full:close +full:- +full:range

3 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
62 if (fd == -1) { in client_init()
74 if (bind(fd, (struct sockaddr *)&sa, sizeof(sa)) == -1) { in client_init()
80 if (setsockopt(fd, SOL_L2CAP, SO_L2CAP_IMTU, &mru, sizeof(mru)) == -1) { in client_init()
90 if (connect(fd, (struct sockaddr *)&sa, sizeof(sa)) == -1) { in client_init()
96 if (getsockopt(fd, SOL_L2CAP, SO_L2CAP_IMTU, &mru, &len) == -1) { in client_init()
106 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &n, &len) == -1) { in client_init()
112 if (setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &n, sizeof(n)) == -1) in client_init()
117 if (getsockopt(fd, SOL_L2CAP, SO_L2CAP_OMTU, &mtu, &len) == -1) { in client_init()
127 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &n, &len) == -1) { in client_init()
129 close(fd); in client_init()
134 if (setsockopt(fd, SOL_SOCKET, SO_SNDBUF, &n, sizeof(n)) == -1) { in client_init()
136 close(fd); in client_init()
141 if (setsockopt(fd, SOL_SOCKET, SO_SNDLOWAT, &n, sizeof(n)) == -1) { in client_init()
143 close(fd); in client_init()
151 chan->send = bnep_send; in client_init()
152 chan->recv = bnep_recv; in client_init()
153 chan->mru = mru; in client_init()
154 chan->mtu = mtu; in client_init()
155 b2eaddr(chan->raddr, &remote_bdaddr); in client_init()
156 b2eaddr(chan->laddr, &local_bdaddr); in client_init()
157 chan->state = CHANNEL_WAIT_CONNECT_RSP; in client_init()
171 uint32_t range; in client_query() local
181 range = SDP_ATTR_RANGE(SDP_ATTR_PROTOCOL_DESCRIPTOR_LIST, in client_query()
193 rv = sdp_search(ss, 1, &service_class, 1, &range, 1, &attr); in client_query()