Searched refs:l2sock (Results 1 - 1 of 1) sorted by relevance

/freebsd-9.3-release/usr.sbin/bluetooth/sdpd/
H A Dserver.c69 int32_t unsock, l2sock; local
119 l2sock = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BLUETOOTH_PROTO_L2CAP);
120 if (l2sock < 0) {
128 if (getsockopt(l2sock, SOL_L2CAP, SO_L2CAP_IMTU, &imtu, &size) < 0) {
132 close(l2sock);
142 if (bind(l2sock, (struct sockaddr *) &l2, sizeof(l2)) < 0) {
146 close(l2sock);
150 if (listen(l2sock, 10) < 0) {
154 close(l2sock);
164 close(l2sock);
[all...]

Completed in 48 milliseconds