00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00025
00026 #ifndef __OLSR_printer_h__
00027 #define __OLSR_printer_h__
00028
00029 #include <olsr/OLSR.h>
00030 #include <olsr/OLSR_pkt.h>
00031 #include <olsr/OLSR_repositories.h>
00032 #include <packet.h>
00033 #include <ip.h>
00034 #include <trace.h>
00035
00037 class OLSR_printer {
00038 friend class OLSR;
00039
00040 protected:
00041 static void print_linkset(Trace*, linkset_t&);
00042 static void print_nbset(Trace*, nbset_t&);
00043 static void print_nb2hopset(Trace*, nb2hopset_t&);
00044 static void print_mprset(Trace*, mprset_t&);
00045 static void print_mprselset(Trace*, mprselset_t&);
00046 static void print_topologyset(Trace*, topologyset_t&);
00047
00048 static void print_olsr_pkt(FILE*, OLSR_pkt*);
00049 static void print_olsr_msg(FILE*, OLSR_msg&);
00050 static void print_olsr_hello(FILE*, OLSR_hello&);
00051 static void print_olsr_tc(FILE*, OLSR_tc&);
00052 static void print_olsr_mid(FILE*, OLSR_mid&);
00053
00054 public:
00055 static void print_cmn_hdr(FILE*, struct hdr_cmn*);
00056 static void print_ip_hdr(FILE*, struct hdr_ip*);
00057 };
00058
00059 #endif