ns-allinone-2.35/olsr/OLSR_printer.cc
void
OLSR_printer::print_olsr_pkt(FILE* out, OLSR_pkt* pkt) {
	fprintf(out,
		"  OLSR PACKET\n\tlength = %d\n\tseq_num = %d\n\t------------\n",
		pkt->pkt_len(),
		pkt->pkt_seq_num());
	printf("OLSR PACKET\n\tlength = %d\n\tseq_num = %d\n\t------------\n",pkt->pkt_len(),pkt->pkt_seq_num());
	
	for (int i = 0; i < pkt->count; i++) {
		print_olsr_msg(out, pkt->msg(i));
		fprintf(out, "\t------------\n");
		printf("\t------------\n");
	}
	fprintf(out, "\n");
	printf("\n");
}
///
/// \brief Prints a given OLSR packet into a given file.
/// \warning This function is actually not used.
/// \param out	File where the %OLSR packet is going to be written.
/// \param pkt	%OLSR packet to be written.
///
\brief Prints a given OLSR packet into a given file.
\warning This function is actually not used.
\param out     File where the %OLSR packet is going to be written.
\param pkt     %OLSR packet to be written.
\ brief Prints a given OLSR packet into a given file . \ warning This function is actually not used . \ param out File where the %OLSR packet is going to be written . \ param pkt %OLSR packet to be written .
void
OLSR_printer::print_olsr_pkt(FILE* out, OLSR_pkt* pkt) {
	fprintf(out,
		"  OLSR PACKET\n\tlength = %d\n\tseq_num = %d\n\t------------\n",
		pkt->pkt_len(),
		pkt->pkt_seq_num());
	printf("OLSR PACKET\n\tlength = %d\n\tseq_num = %d\n\t------------\n",pkt->pkt_len(),pkt->pkt_seq_num());
	for (int i = 0; i < pkt->count; i++) {
		print_olsr_msg(out, pkt->msg(i));
		fprintf(out, "\t------------\n");
		printf("\t------------\n");
	}
	fprintf(out, "\n");
	printf("\n");
}
void OLSR_printer :: print_olsr_pkt ( FILE * out , OLSR_pkt * pkt ) { fprintf ( out , " \n \t \n \t \n \t \n " , pkt -> pkt_len ( ) , pkt -> pkt_seq_num ( ) ) ; printf ( " \n \t \n \t \n \t \n " , pkt -> pkt_len ( ) , pkt -> pkt_seq_num ( ) ) ; for ( int i = 0 ; i < pkt -> count ; i ++ ) { print_olsr_msg ( out , pkt -> msg ( i ) ) ; fprintf ( out , " \t \n " ) ; printf ( " \t \n " ) ; } fprintf ( out , " \n " ) ; printf ( " \n " ) ; }
\brief Prints a given OLSR packet into a given file.
\ brief Prints a given OLSR packet into a given file .