src/internet-stack/icmpv6-l4-protocol.h
changeset 5195 8a0544f70c21
parent 4761 8c0b3a413f4b
child 5217 8a9dbc333e76
equal deleted inserted replaced
5194:897043bcb108 5195:8a0544f70c21
    26 #include <list>
    26 #include <list>
    27 #include "ns3/ipv6-address.h"
    27 #include "ns3/ipv6-address.h"
    28 #include "ns3/ptr.h"
    28 #include "ns3/ptr.h"
    29 #include "ns3/socket.h"
    29 #include "ns3/socket.h"
    30 #include "ns3/buffer.h"
    30 #include "ns3/buffer.h"
       
    31 #include "ns3/boolean.h"
    31 #include "icmpv6-header.h"
    32 #include "icmpv6-header.h"
    32 #include "ipv6-l4-protocol.h"
    33 #include "ipv6-l4-protocol.h"
    33 #include "ndisc-cache.h"
    34 #include "ndisc-cache.h"
    34 #include "ipv6-l3-protocol.h"
    35 #include "ipv6-l3-protocol.h"
    35 
    36 
   385      * \param interface the IPv6 interface
   386      * \param interface the IPv6 interface
   386      * \return a smart pointer of NdCache or 0 if problem
   387      * \return a smart pointer of NdCache or 0 if problem
   387      */
   388      */
   388     Ptr<NdiscCache> CreateCache (Ptr<NetDevice> device, Ptr<Ipv6Interface> interface);
   389     Ptr<NdiscCache> CreateCache (Ptr<NetDevice> device, Ptr<Ipv6Interface> interface);
   389 
   390 
       
   391     /**
       
   392      * \brief Is the node must do DAD.
       
   393      * \return true if node has to do DAD.
       
   394      */
       
   395     bool IsAlwaysDad () const;
       
   396 
   390   protected:
   397   protected:
   391     /**
   398     /**
   392      * \brief Dispose this object.
   399      * \brief Dispose this object.
   393      */
   400      */
   394     virtual void DoDispose ();
   401     virtual void DoDispose ();
   404 
   411 
   405     /**
   412     /**
   406      * \brief A list of cache by device.
   413      * \brief A list of cache by device.
   407      */
   414      */
   408     CacheList m_cacheList;
   415     CacheList m_cacheList;
       
   416 
       
   417     /**
       
   418      * \brief Always do DAD ?
       
   419      */
       
   420     bool m_alwaysDad;
   409 
   421 
   410     /**
   422     /**
   411      * \brief Receive Neighbor Solicitation method.
   423      * \brief Receive Neighbor Solicitation method.
   412      * \param p the packet
   424      * \param p the packet
   413      * \param src source address
   425      * \param src source address