Hi The Learner,
It is not a must. The header is just a place where you can store information. It's fine to create your own type. What you have to do is to tell the routing module to extract the address from "your" address variable. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On 3/25/2010, "The Learner" <[email protected]> wrote: > > >I want to know if using common header in packet is a must? >If I create my own packet header and do not include common header in my >packet, will it create any trouble? > >Since I am working on a routing protocol for wireless sensor networks, the >addresses can't be of the type u_int32_t, so I created my own type(typedef >u_int8_t msaddr_t) in the config.h file. Will it siuffice or I need to do >some other things to make ns2 work with this type of address? > >Thank You, >The Learner >-- >View this message in context: >http://old.nabble.com/Is-common-header-a-must-in-a-packet-and-address-type-defined-in-config.h-tp28024535p28024535.html >Sent from the ns-users mailing list archive at Nabble.com. >
