The C++ Agent../ns-2/agent.h includes enough internal state to assign various fields to a simulated packet before it is sent. This state includes the following:
These variables may be modified by any class derived from Agent, although not all of them may be needed by any particular agent.