Print

Print


How to define the packet headers?please anyone help

On Tue, May 17, 2016 at 9:25 PM, Lina Pu <[log in to unmask]> wrote:

> Hi Sana,
>
>
>
> Yes, you can do it in Aqua-Sim. What you need is to modify the
> corresponding .cc source file and recompile the package. As long as the
> information is included in the packet header, you will be able to read it,
> save it to the file or do any operation you like. If the information you
> need is not included in the header of any layers, you can add it to the
> appropriate layer (MAC, Routing or TCP) by modifying the .h file.
>
>
>
> Hope it helps.
>
>
>
> Thanks,
>
> Lina
>
>
>
> *From:* Mailing list of Aqua-Sim, an Underwater Sensor Network Simulator
> [mailto:[log in to unmask]] *On Behalf Of *Sana Shaikh
> *Sent:* Tuesday, May 17, 2016 7:15 AM
> *To:* [log in to unmask]
> *Subject:* UnderwaterSink methods
>
>
>
> Is there any way to perform a specific function on the packet received by
> the sink
>
> while simulating not from trace file.
>
> For example, Sink receives a TCP packet , now I want it(sink) to extract
> the node id from the packet and save it and perform some function on it.
>
> So, is it possible with Aqua-Sim ??
>
>
>