search for: rc_bdaddr

Displaying 1 result from an estimated 1 matches for "rc_bdaddr".

2009 Nov 23
0
[PATCH] Bluetooth support.
...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, return NULL; } +#ifdef HAVE_BLUETOOTH + if (addr.ss_family == AF_BLUETOOTH) { + struct sockaddr_rc *from_rc = (voi...