Diff between ebfc59f8685e6cc23a5f916452fe877d4c59305a and 458951454a8942c92af528bea47568a297c3569c
Changed Files
| File | Additions | Deletions | Status |
| tools/hcidump.c | +1 | -6 | modified |
Full Patch
diff --git a/tools/hcidump.c b/tools/hcidump.c
index 8ed7ff7..eb77f4b 100644
--- a/tools/hcidump.c
+++ b/tools/hcidump.c
@@ -699,15 +699,10 @@ static int create_datagram(unsigned short port)
return -1;
}
- if (setsockopt(sk, SOL_SOCKET, SO_BROADCAST, &opt, sizeof(opt)) < 0) {
- close(sk);
- return -1;
- }
-
memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_port = htons(port);
- addr.sin_addr.s_addr = INADDR_ANY;
+ addr.sin_addr.s_addr = htonl(INADDR_BROADCAST);
if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
close(sk);