dsniff/daemon_tmpl.c
void proc_inorder(node * tree)
{
    
    if (tree)
    {
        proc_inorder(tree->left);
        
		fprintf (logfile , "\n   |-Source IP: %20s | %-10d  Packets Recieved" , inet_ntoa(tree->data), tree->transactions );
		
		fflush(logfile);
        proc_inorder(tree->right);
    }
}
//Displaying ip tree content in ascending order
Displaying ip tree content in ascending order
Displaying ip tree content in ascending order
void proc_inorder(node * tree)
{
    if (tree)
    {
        proc_inorder(tree->left);
		fprintf (logfile , "\n   |-Source IP: %20s | %-10d  Packets Recieved" , inet_ntoa(tree->data), tree->transactions );
		fflush(logfile);
        proc_inorder(tree->right);
    }
}
void proc_inorder ( node * tree ) { if ( tree ) { proc_inorder ( tree -> left ) ; fprintf ( logfile , " \n " , inet_ntoa ( tree -> data ) , tree -> transactions ) ; fflush ( logfile ) ; proc_inorder ( tree -> right ) ; } }
Displaying ip tree content in ascending order
Displaying ip tree content in ascending order