diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libbluetooth/bluetooth.c | 2 | ||||
-rw-r--r-- | lib/libbluetooth/dev.c | 1 | ||||
-rw-r--r-- | lib/libbluetooth/hci.c | 1 | ||||
-rw-r--r-- | lib/libsdp/search.c | 1 | ||||
-rw-r--r-- | lib/libsdp/service.c | 1 | ||||
-rw-r--r-- | lib/libsdp/session.c | 5 | ||||
-rw-r--r-- | lib/libsdp/util.c | 1 |
7 files changed, 10 insertions, 2 deletions
diff --git a/lib/libbluetooth/bluetooth.c b/lib/libbluetooth/bluetooth.c index 23b7df0da9701..bbcf0071cfe04 100644 --- a/lib/libbluetooth/bluetooth.c +++ b/lib/libbluetooth/bluetooth.c @@ -30,7 +30,7 @@ * $Id: bluetooth.c,v 1.3 2003/05/20 23:04:30 max Exp $ * $FreeBSD$ */ - +#define L2CAP_SOCKET_CHECKED #include <bluetooth.h> #include <stdio.h> #include <stdlib.h> diff --git a/lib/libbluetooth/dev.c b/lib/libbluetooth/dev.c index 1f9e745dd46a0..a6295dd2b1f08 100644 --- a/lib/libbluetooth/dev.c +++ b/lib/libbluetooth/dev.c @@ -30,6 +30,7 @@ * $FreeBSD$ */ +#define L2CAP_SOCKET_CHECKED #include <bluetooth.h> #include <stdio.h> #include <string.h> diff --git a/lib/libbluetooth/hci.c b/lib/libbluetooth/hci.c index 1ae6ff963d7b2..651c0dda1fe7e 100644 --- a/lib/libbluetooth/hci.c +++ b/lib/libbluetooth/hci.c @@ -31,6 +31,7 @@ */ #include <assert.h> +#define L2CAP_SOCKET_CHECKED #include <bluetooth.h> #include <inttypes.h> #include <stdio.h> diff --git a/lib/libsdp/search.c b/lib/libsdp/search.c index 868fbe562ffeb..fa2a92d05a612 100644 --- a/lib/libsdp/search.c +++ b/lib/libsdp/search.c @@ -32,6 +32,7 @@ #include <sys/uio.h> #include <netinet/in.h> #include <arpa/inet.h> +#define L2CAP_SOCKET_CHECKED #include <bluetooth.h> #include <errno.h> #include <stdio.h> diff --git a/lib/libsdp/service.c b/lib/libsdp/service.c index 2667966c78228..53c8909bb2f33 100644 --- a/lib/libsdp/service.c +++ b/lib/libsdp/service.c @@ -32,6 +32,7 @@ #include <sys/uio.h> #include <netinet/in.h> #include <arpa/inet.h> +#define L2CAP_SOCKET_CHECKED #include <bluetooth.h> #include <errno.h> #include <string.h> diff --git a/lib/libsdp/session.c b/lib/libsdp/session.c index a31f3278dc0fa..a74ce5fea359f 100644 --- a/lib/libsdp/session.c +++ b/lib/libsdp/session.c @@ -28,7 +28,7 @@ * $Id: session.c,v 1.2 2003/09/04 22:12:13 max Exp $ * $FreeBSD$ */ - +#define L2CAP_SOCKET_CHECKED #include <bluetooth.h> #include <errno.h> #include <stdlib.h> @@ -62,6 +62,9 @@ sdp_open(bdaddr_t const *l, bdaddr_t const *r) sa.l2cap_len = sizeof(sa); sa.l2cap_family = AF_BLUETOOTH; sa.l2cap_psm = 0; + sa.l2cap_cid = 0; + sa.l2cap_bdaddr_type = BDADDR_BREDR; + memcpy(&sa.l2cap_bdaddr, l, sizeof(sa.l2cap_bdaddr)); if (bind(ss->s, (struct sockaddr *) &sa, sizeof(sa)) < 0) { ss->error = errno; diff --git a/lib/libsdp/util.c b/lib/libsdp/util.c index b996bd22160dc..5ef4a1dfd3769 100644 --- a/lib/libsdp/util.c +++ b/lib/libsdp/util.c @@ -30,6 +30,7 @@ */ #include <netinet/in.h> +#define L2CAP_SOCKET_CHECKED #include <bluetooth.h> #include <stdio.h> #include <sdp.h> |