construction of two different packet for a protocol / a simulation in NS2
问题 I am implementing a new protocol in NS2. I stucked at a point. kindly help me. Is it possible to make two different type of packets(containing different headers) in the same simulation In my protocol there are two types of struct header { } . At few instances i want to use one and at other instances want to use another.One of the structure has very less fields compared to other so this would reduce the size of packet i'm sending. Is it possible ? and if yes then how to implement that? 回答1: