src/node/ipv4.h
changeset 1776 0d5be0c3d229
parent 1452 973c456d3684
child 1795 820cc1254290
--- a/src/node/ipv4.h	Fri Oct 12 13:41:24 2007 -0700
+++ b/src/node/ipv4.h	Sat Oct 06 21:21:07 2007 -0700
@@ -385,6 +385,20 @@
 
   /**
    * \param i index of ipv4 interface
+   * \param metric routing metric (cost) associated to the underlying 
+   *          ipv4 interface
+   */
+  virtual void SetMetric (uint32_t i, uint16_t metric) = 0;
+
+  /**
+   * \param i index of ipv4 interface
+   * \returns routing metric (cost) associated to the underlying 
+   *          ipv4 interface
+   */
+  virtual uint16_t GetMetric (uint32_t i) const = 0;
+
+  /**
+   * \param i index of ipv4 interface
    * \returns the address associated to the underlying ipv4 interface
    */
   virtual Ipv4Address GetAddress (uint32_t i) const = 0;