src/internet/model/ipv6-l3-protocol.h
changeset 7793 1c81a8a91b1e
parent 7717 cfa1741013dd
child 9145 5752b425cdf5
--- a/src/internet/model/ipv6-l3-protocol.h	Sun Mar 25 13:45:55 2012 +0200
+++ b/src/internet/model/ipv6-l3-protocol.h	Sun Mar 25 14:26:45 2012 +0200
@@ -469,6 +469,18 @@
   virtual bool GetIpForward () const;
 
   /**
+   * \brief Set the ICMPv6 Redirect sending state.
+   * \param sendIcmpv6Redirect ICMPv6 Redirect sending enabled or not
+   */
+  virtual void SetSendIcmpv6Redirect (bool sendIcmpv6Redirect);
+
+  /**
+   * \brief Get the ICMPv6 Redirect sending state.
+   * \return ICMPv6 Redirect sending state (enabled or not)
+   */
+  virtual bool GetSendIcmpv6Redirect () const;
+
+  /**
    * \brief Node attached to stack.
    */
   Ptr<Node> m_node;
@@ -512,6 +524,11 @@
    * \brief List of IPv6 prefix received from RA.
    */
   Ipv6AutoconfiguredPrefixList m_prefixes;
+
+  /**
+   * \brief Allow ICMPv6 Redirect sending state
+   */
+  bool m_sendIcmpv6Redirect;
 };
 
 } /* namespace ns3 */