FreeBSD/usr.sbin/bluetooth/hccontrol/node.c
static int
hci_read_node_bd_addr(int s, int argc, char **argv)
{
	struct ng_btsocket_hci_raw_node_bdaddr	r;

	memset(&r, 0, sizeof(r));
	if (ioctl(s, SIOC_HCI_RAW_NODE_GET_BDADDR, &r, sizeof(r)) < 0)
		return (ERROR);

	fprintf(stdout, "BD_ADDR: %s\n", bt_ntoa(&r.bdaddr, NULL));

	return (OK);
}
/* Send Read_Node_BD_ADDR command to the node */
Send Read_Node_BD_ADDR command to the node
Send Read_Node_BD_ADDR command to the node
static int
hci_read_node_bd_addr(int s, int argc, char **argv)
{
	struct ng_btsocket_hci_raw_node_bdaddr	r;
	memset(&r, 0, sizeof(r));
	if (ioctl(s, SIOC_HCI_RAW_NODE_GET_BDADDR, &r, sizeof(r)) < 0)
		return (ERROR);
	fprintf(stdout, "BD_ADDR: %s\n", bt_ntoa(&r.bdaddr, NULL));
	return (OK);
}
static int hci_read_node_bd_addr ( int s , int argc , char * * argv ) { struct ng_btsocket_hci_raw_node_bdaddr r ; memset ( & r , 0 , sizeof ( r ) ) ; if ( ioctl ( s , SIOC_HCI_RAW_NODE_GET_BDADDR , & r , sizeof ( r ) ) < 0 ) return ( ERROR ) ; fprintf ( stdout , " \n " , bt_ntoa ( & r . bdaddr , NULL ) ) ; return ( OK ) ; }
Send Read_Node_BD_ADDR command to the node
Send Read_Node_BD_ADDR command to the node