ns-allinone-2.35/olsr/OLSR_printer.cc
void
OLSR_printer::print_ip_hdr(FILE* out, struct hdr_ip* ih) {
	fprintf(out,
		"  IP HEADER\n\tsrc_addr = %d\n\tsrc_port = %d\n\tdest_addr = %d\n\tdest_port = %d\n\tttl = %d\n\n",
		ih->saddr(),
		ih->sport(),
		ih->daddr(),
		ih->dport(),
		ih->ttl());
	printf("IP HEADER\n\tsrc_addr = %d\n\tsrc_port = %d\n\tdest_addr = %d\n\tdest_port = %d\n\tttl = %d\n\n",ih->saddr(),ih->sport(),ih->daddr(),ih->dport(),ih->ttl());
}
///
/// \brief Prints a given IP header into a given file.
/// \warning This function is actually not used.
/// \param out	File where the IP header is going to be written.
/// \param ih	IP header to be written.
///
\brief Prints a given IP header into a given file.
\warning This function is actually not used.
\param out     File where the IP header is going to be written.
\param ih      IP header to be written.
\ brief Prints a given IP header into a given file . \ warning This function is actually not used . \ param out File where the IP header is going to be written . \ param ih IP header to be written .
void
OLSR_printer::print_ip_hdr(FILE* out, struct hdr_ip* ih) {
	fprintf(out,
		"  IP HEADER\n\tsrc_addr = %d\n\tsrc_port = %d\n\tdest_addr = %d\n\tdest_port = %d\n\tttl = %d\n\n",
		ih->saddr(),
		ih->sport(),
		ih->daddr(),
		ih->dport(),
		ih->ttl());
	printf("IP HEADER\n\tsrc_addr = %d\n\tsrc_port = %d\n\tdest_addr = %d\n\tdest_port = %d\n\tttl = %d\n\n",ih->saddr(),ih->sport(),ih->daddr(),ih->dport(),ih->ttl());
}
void OLSR_printer :: print_ip_hdr ( FILE * out , struct hdr_ip * ih ) { fprintf ( out , " \n \t \n \t \n \t \n \t \n \t \n \n " , ih -> saddr ( ) , ih -> sport ( ) , ih -> daddr ( ) , ih -> dport ( ) , ih -> ttl ( ) ) ; printf ( " \n \t \n \t \n \t \n \t \n \t \n \n " , ih -> saddr ( ) , ih -> sport ( ) , ih -> daddr ( ) , ih -> dport ( ) , ih -> ttl ( ) ) ; }
\brief Prints a given IP header into a given file.
\ brief Prints a given IP header into a given file .