Displaying 1 result from an estimated 1 matches for "sockaddr_rc".
Did you mean:
sockaddr_in
2009 Nov 23
0
[PATCH] Bluetooth support.
...uetooth.h>
+#include <bluetooth/rfcomm.h>
+#endif
+
#include <ctype.h>
#include <errno.h>
#include <netdb.h>
@@ -60,6 +65,16 @@ get_remote_hostname(int sock, int use_dn
cleanup_exit(255);
}
+#ifdef HAVE_BLUETOOTH
+ if (from.ss_family == AF_BLUETOOTH) {
+ struct sockaddr_rc *from_rc = (void *)&from;
+ char ba[28];
+
+ sprintf(ba, "Bluetooth:");
+ ba2str(&from_rc->rc_bdaddr, ba + 10);
+ return xstrdup(ba);
+ }
+#endif
if (from.ss_family == AF_INET)
check_ip_options(sock, ntop);
@@ -264,6 +279,16 @@ get_socket_address(int sock, int remote...