Use proper ethernet header

This commit is contained in:
Tim Schubert 2020-07-21 13:35:00 +02:00
parent 97de8c9d24
commit 1917223a5e
3 changed files with 61 additions and 41 deletions

View file

@ -246,9 +246,11 @@ private:
* Adds the necessary headers and trailers to a packet of data in order to
* respect the protocol implemented by the agent.
* \param p packet
* \param src source
* \param dst destination
* \param protocolNumber protocol number
*/
void AddHeader (Ptr<Packet> p, uint16_t protocolNumber);
void AddHeader (Ptr<Packet> p, Address src, Address dst, uint16_t protocolNumber);
/**
* Removes, from a packet of data, all headers and trailers that