hello 
i create a new packet for aodv protocol , i add it in cmutrace.cc
when i run a tcl script and i open the trace file i found my new packet but 
it's size is all the time equal to zero , idon't know why is this happen??
this is my declaration

##
struct hdr_aodv_hello1 {
        u_int8_t        hello1_type;                // Packet Type
        nsaddr_t        hello1_dst;                 // Destination IP Address
        nsaddr_t        hello1_src;                 // Source IP Address
  inline int size() {
  int sz = 0;
  /* sz = sizeof(u_int8_t)        // h_type      + sizeof(nsaddr_t)        // 
h_dst   + sizeof(nsaddr_t)        // h_src  */
      sz = 3*sizeof(u_int32_t);
      assert (sz >= 0);
    return sz;
  }


};
##
some suggestion ?? or help??
Best regards 

 

_________________________________________________________________
Sur Windows Live Ideas, découvrez en exclusivité de nouveaux services en 
ligne... si nouveaux qu'ils ne sont pas encore sortis officiellement sur le 
marché !
http://ideas.live.com

Reply via email to