src/internet-stack/icmpv6-l4-protocol.cc
changeset 4764 e90e1ef585b0
parent 4761 8c0b3a413f4b
child 4767 7433d307ed51
equal deleted inserted replaced
4763:19573adf3665 4764:e90e1ef585b0
  1074 
  1074 
  1075 Ptr<NdiscCache> Icmpv6L4Protocol::CreateCache (Ptr<NetDevice> device, Ptr<Ipv6Interface> interface)
  1075 Ptr<NdiscCache> Icmpv6L4Protocol::CreateCache (Ptr<NetDevice> device, Ptr<Ipv6Interface> interface)
  1076 {
  1076 {
  1077   Ptr<Ipv6L3Protocol> ipv6 = m_node->GetObject<Ipv6L3Protocol> ();
  1077   Ptr<Ipv6L3Protocol> ipv6 = m_node->GetObject<Ipv6L3Protocol> ();
  1078   Ptr<NdiscCache> cache = CreateObject<NdiscCache> ();
  1078   Ptr<NdiscCache> cache = CreateObject<NdiscCache> ();
       
  1079   
  1079   cache->SetDevice (device, interface);
  1080   cache->SetDevice (device, interface);
  1080 
  1081   device->AddLinkChangeCallback (MakeCallback (&NdiscCache::Flush, cache));
  1081   /* XXX : make a list of callback in net-device.cc
       
  1082    * else we override IPv4 flushing ARP table...
       
  1083    */
       
  1084 /* device->SetLinkChangeCallback (MakeCallback (&NdiscCache::Flush, cache)); */
       
  1085   m_cacheList.push_back (cache);
  1082   m_cacheList.push_back (cache);
  1086   return cache;
  1083   return cache;
  1087 }
  1084 }
  1088 
  1085 
  1089 bool Icmpv6L4Protocol::Lookup (Ipv6Address dst, Ptr<NetDevice> device, Ptr<NdiscCache> cache, Address* hardwareDestination)
  1086 bool Icmpv6L4Protocol::Lookup (Ipv6Address dst, Ptr<NetDevice> device, Ptr<NdiscCache> cache, Address* hardwareDestination)