Re: [ns] How to modify the packet content at intermediate nodes

2007-05-22 Thread Daniel Dekst
maybe you can extract the info from packet and encapsulate again try: struct msg_struct msg_name memcpy(msg_name, Pkt-accessdate(), sizeof(struct msg_struct)); [EMAIL PROTECTED] 写道: -- Message: 10 Date: 21 May 2007 14:23:49 - From: SB Subject: [ns] How to

[ns] How to modify the packet content at intermediate nodes

2007-05-21 Thread SB
Dear NS users, Consider the following network n1--n2--n3---n4  . In this network the node n1 is source node and n4 is destination node. node n1 is sending packets to node n4.Now what I want is to modify the packet contents at node n2 and n3.How to do this one?i.e how to access and