Lines Matching full:sa
46 struct sockaddr_l2cap sa; in sdp_open() local
63 sa.l2cap_len = sizeof(sa); in sdp_open()
64 sa.l2cap_family = AF_BLUETOOTH; in sdp_open()
65 sa.l2cap_psm = 0; in sdp_open()
66 sa.l2cap_cid = 0; in sdp_open()
67 sa.l2cap_bdaddr_type = BDADDR_BREDR; in sdp_open()
69 memcpy(&sa.l2cap_bdaddr, l, sizeof(sa.l2cap_bdaddr)); in sdp_open()
70 if (bind(ss->s, (struct sockaddr *) &sa, sizeof(sa)) < 0) { in sdp_open()
75 sa.l2cap_psm = htole16(NG_L2CAP_PSM_SDP); in sdp_open()
76 memcpy(&sa.l2cap_bdaddr, r, sizeof(sa.l2cap_bdaddr)); in sdp_open()
77 if (connect(ss->s, (struct sockaddr *) &sa, sizeof(sa)) < 0) { in sdp_open()
112 struct sockaddr_un sa; in sdp_open_local() local
126 sa.sun_len = sizeof(sa); in sdp_open_local()
127 sa.sun_family = AF_UNIX; in sdp_open_local()
128 strlcpy(sa.sun_path, control, sizeof(sa.sun_path)); in sdp_open_local()
130 if (connect(ss->s, (struct sockaddr *) &sa, sizeof(sa)) < 0) { in sdp_open_local()
187 struct sockaddr_l2cap sa; in sdp_get_lcaddr() local
195 size = sizeof(sa); in sdp_get_lcaddr()
196 if (getsockname(ss->s, (struct sockaddr *)&sa, &size) == 0) { in sdp_get_lcaddr()
197 bdaddr_copy(l, &sa.l2cap_bdaddr); in sdp_get_lcaddr()