Bug 590 - duplicate GetMtu() API in Ipv4Interface
duplicate GetMtu() API in Ipv4Interface
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: internet
ns-3-dev
All All
: P5 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-14 23:51 UTC by Tom Henderson
Modified: 2009-06-22 01:39 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2009-06-14 23:51:26 UTC
At the very least, this doxygen is wrong since the implementation just passes through to device->GetMtu().  But the XXX suggests to deprecate or delete it, since it is available on the device API.

class Ipv4Interface
  /**
   * This function a pass-through to NetDevice GetMtu, modulo
   * the  LLC/SNAP header i.e., ipv4MTU = NetDeviceMtu - LLCSNAPSIZE
   * \returns the Maximum Transmission Unit associated to this interface.
   *
   * XXX deprecated?  This is duplicate API to GetDevice ()->GetMtu ()
   */
  uint16_t GetMtu (void) const;
Comment 1 Mathieu Lacage 2009-06-15 02:39:14 UTC
+1
Comment 2 Tom Henderson 2009-06-22 01:39:00 UTC
changeset e5dcdf2868df