Hi Jessica,

That's a misunderstanding: a WritablePacket is a type of Packet, so all the 
header changes you want can be made to the WritablePacket (which you get by 
calling uniqueify()).

Eddie


On 05/04/2011 04:50 AM, Jessica Shahper wrote:
> Hi all!
>
> I want to change the packet data and place some indication about that change 
> in
> the header data, but click does not allow simultaneous change in the packet 
> data
> and the packet header since it has to be either Packet or WritablePacket , 
> would
> it be a good way if I declare the packets as writable packets first and encode
> the contents and then change them to Packets before embedding the information 
> in
> the header?
>
> Regards,
> Jessica
> _______________________________________________
> click mailing list
> [email protected]
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
_______________________________________________
click mailing list
[email protected]
https://amsterdam.lcs.mit.edu/mailman/listinfo/click

Reply via email to