aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-07-28 11:27:15 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-07-28 11:27:15 +0000
commite2340ba1f69f6110976aeaf22dad6f38b40b1be0 (patch)
tree2deff918711da49618e178dc15e0be9f4366beb6
parentafd30d88ae58c78b88518a09dff1fd92ee65e34c (diff)
downloadbluez-hcidump-e2340ba1f69f6110976aeaf22dad6f38b40b1be0.tar.gz
Force TCP as protocol
-rw-r--r--src/hcidump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hcidump.c b/src/hcidump.c
index 6d745e0..c133691 100644
--- a/src/hcidump.c
+++ b/src/hcidump.c
@@ -751,6 +751,7 @@ static int wait_connection(char *addr, char *port)
memset(&hints, 0, sizeof (hints));
hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG;
hints.ai_socktype = SOCK_STREAM;
+ hints.ai_protocol = IPPROTO_TCP;
err = getaddrinfo(dump_addr, dump_port, &hints, &ai);
if (err < 0) {