[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Packet size problem/question



Okay, here's the deal, hopefully someone can help me. I've read the notes
and Docs, and the tutorial, and scanned the archive.

I am trying to get a new agent implemented that sends a packet to another
node, and this other node looks at it and sends an acknowledgement bck.
Both nodes are running the same agent, so I have a recv that checks if it
should be an acknowledged packet or not. Upon seeing that ti should ack
the packet, it does a Packet *pktret = allocpkt();. The agent who then
sends this packet shows that the hdr_cmn->size_ of this packet is
correctly 0, i.e., only the header is necessary? Or should that be
including the size of the header? But at any rate, the agent who receives
this packet sees it's size as the size of the packet that generated the
ack, not as 0 or whatever it should be.

Any help would be appreciated, especially if this stems from some gross
misunderstanding of how ns uses packets/agents. Thanks.


	- Christopher Smith, Graduate Student at University of Mich.
	http://www-personal.engin.umich.edu/~clsmith/