Lines Matching refs:NeighborCache
54 OUT EFI_IP6_NEIGHBOR_CACHE **NeighborCache in Ip6BuildEfiNeighborCache() argument
65 ASSERT (NeighborCount != NULL && NeighborCache != NULL); in Ip6BuildEfiNeighborCache()
99 *NeighborCache = NeighborCacheTmp; in Ip6BuildEfiNeighborCache()
543 DefaultRouter->NeighborCache = Entry; in Ip6CreateNeighborEntry()
609 IN IP6_NEIGHBOR_ENTRY *NeighborCache, in Ip6FreeNeighborEntry() argument
630 NET_LIST_FOR_EACH_SAFE (Entry, Next, &NeighborCache->Frames) { in Ip6FreeNeighborEntry()
652 if (NeighborCache->ArpFree && IsListEmpty (&NeighborCache->Frames)) { in Ip6FreeNeighborEntry()
653 RemoveEntryList (&NeighborCache->ArpList); in Ip6FreeNeighborEntry()
654 NeighborCache->ArpFree = FALSE; in Ip6FreeNeighborEntry()
658 if (NeighborCache->IsRouter) { in Ip6FreeNeighborEntry()
659 DefaultRouter = Ip6FindDefaultRouter (IpSb, &NeighborCache->Neighbor); in Ip6FreeNeighborEntry()
665 RemoveEntryList (&NeighborCache->Link); in Ip6FreeNeighborEntry()
666 FreePool (NeighborCache); in Ip6FreeNeighborEntry()
704 Entry->NeighborCache = Ip6FindNeighborEntry (IpSb, Ip6Address); in Ip6CreateDefaultRouter()
1824 DefaultRouter->NeighborCache = Neighbor; in Ip6ProcessNeighborAdvertise()
1945 IP6_NEIGHBOR_ENTRY *NeighborCache; in Ip6ProcessRouterAdvertise() local
2032 if (DefaultRouter->NeighborCache == NULL) { in Ip6ProcessRouterAdvertise()
2033 DefaultRouter->NeighborCache = Ip6FindNeighborEntry (IpSb, &Head->SourceAddress); in Ip6ProcessRouterAdvertise()
2090 NeighborCache = Ip6FindNeighborEntry (IpSb, &Head->SourceAddress); in Ip6ProcessRouterAdvertise()
2091 if (NeighborCache != NULL) { in Ip6ProcessRouterAdvertise()
2092 NeighborCache->IsRouter = TRUE; in Ip6ProcessRouterAdvertise()
2121 if (NeighborCache == NULL) { in Ip6ProcessRouterAdvertise()
2122 NeighborCache = Ip6CreateNeighborEntry ( in Ip6ProcessRouterAdvertise()
2128 if (NeighborCache == NULL) { in Ip6ProcessRouterAdvertise()
2132 NeighborCache->IsRouter = TRUE; in Ip6ProcessRouterAdvertise()
2133 NeighborCache->State = EfiNeighborStale; in Ip6ProcessRouterAdvertise()
2134 NeighborCache->Ticks = (UINT32) IP6_INFINIT_LIFETIME; in Ip6ProcessRouterAdvertise()
2136 Result = CompareMem (&LinkLayerAddress, &NeighborCache->LinkAddress, 6); in Ip6ProcessRouterAdvertise()
2143 if ((NeighborCache->State == EfiNeighborInComplete) || (Result != 0)) { in Ip6ProcessRouterAdvertise()
2144 CopyMem (&NeighborCache->LinkAddress, &LinkLayerAddress, 6); in Ip6ProcessRouterAdvertise()
2146 NeighborCache->Ticks = (UINT32) IP6_INFINIT_LIFETIME; in Ip6ProcessRouterAdvertise()
2148 if (NeighborCache->State == EfiNeighborInComplete) { in Ip6ProcessRouterAdvertise()
2152 NeighborCache->State = EfiNeighborStale; in Ip6ProcessRouterAdvertise()
2153 NeighborCache->CallBack ((VOID *) NeighborCache); in Ip6ProcessRouterAdvertise()
2155 NeighborCache->State = EfiNeighborStale; in Ip6ProcessRouterAdvertise()
2393 IP6_NEIGHBOR_ENTRY *NeighborCache; in Ip6ProcessRedirect() local
2579 NeighborCache = Ip6FindNeighborEntry (IpSb, Target); in Ip6ProcessRedirect()
2582 if (NeighborCache == NULL) { in Ip6ProcessRedirect()
2588 NeighborCache = Ip6CreateNeighborEntry (IpSb, Ip6OnArpResolved, Target, &Mac); in Ip6ProcessRedirect()
2589 if (NeighborCache == NULL) { in Ip6ProcessRedirect()
2598 NeighborCache->State = EfiNeighborStale; in Ip6ProcessRedirect()
2599 NeighborCache->Ticks = (UINT32) IP6_INFINIT_LIFETIME; in Ip6ProcessRedirect()
2601 Result = CompareMem (LinkLayerOption->EtherAddr, &NeighborCache->LinkAddress, 6); in Ip6ProcessRedirect()
2608 if ((NeighborCache->State == EfiNeighborInComplete) || (Result != 0)) { in Ip6ProcessRedirect()
2609 CopyMem (&NeighborCache->LinkAddress, LinkLayerOption->EtherAddr, 6); in Ip6ProcessRedirect()
2611 NeighborCache->Ticks = (UINT32) IP6_INFINIT_LIFETIME; in Ip6ProcessRedirect()
2613 if (NeighborCache->State == EfiNeighborInComplete) { in Ip6ProcessRedirect()
2617 NeighborCache->State = EfiNeighborStale; in Ip6ProcessRedirect()
2618 NeighborCache->CallBack ((VOID *) NeighborCache); in Ip6ProcessRedirect()
2620 NeighborCache->State = EfiNeighborStale; in Ip6ProcessRedirect()
2626 if (NeighborCache != NULL && IsRouter) { in Ip6ProcessRedirect()
2630 NeighborCache->IsRouter = TRUE; in Ip6ProcessRedirect()
2772 IP6_NEIGHBOR_ENTRY *NeighborCache; in Ip6NdFasterTimerTicking() local
2877 NeighborCache = NET_LIST_USER_STRUCT (Entry, IP6_NEIGHBOR_ENTRY, Link); in Ip6NdFasterTimerTicking()
2879 switch (NeighborCache->State) { in Ip6NdFasterTimerTicking()
2881 if (NeighborCache->Ticks > 0) { in Ip6NdFasterTimerTicking()
2882 --NeighborCache->Ticks; in Ip6NdFasterTimerTicking()
2889 if (NeighborCache->Ticks == 0) { in Ip6NdFasterTimerTicking()
2890 if (NeighborCache->Transmit > 1) { in Ip6NdFasterTimerTicking()
2896 Ip6CreateSNMulticastAddr (&NeighborCache->Neighbor, &Destination); in Ip6NdFasterTimerTicking()
2897 Status = Ip6SelectSourceAddress (IpSb, &NeighborCache->Neighbor, &Source); in Ip6NdFasterTimerTicking()
2906 &NeighborCache->Neighbor, in Ip6NdFasterTimerTicking()
2917 if (NeighborCache->Transmit > 0) { in Ip6NdFasterTimerTicking()
2918 --NeighborCache->Transmit; in Ip6NdFasterTimerTicking()
2919 NeighborCache->Ticks = IP6_GET_TICKS (IpSb->RetransTimer); in Ip6NdFasterTimerTicking()
2923 if (NeighborCache->Transmit == 0) { in Ip6NdFasterTimerTicking()
2929 NeighborCache, in Ip6NdFasterTimerTicking()
2948 if (!NeighborCache->Dynamic && (NeighborCache->Ticks == IP6_INFINIT_LIFETIME)) { in Ip6NdFasterTimerTicking()
2952 if ((NeighborCache->Ticks == 0) || (--NeighborCache->Ticks == 0)) { in Ip6NdFasterTimerTicking()
2953 if (NeighborCache->Dynamic) { in Ip6NdFasterTimerTicking()
2960 NeighborCache, in Ip6NdFasterTimerTicking()
2971 NeighborCache->State = EfiNeighborStale; in Ip6NdFasterTimerTicking()
2972 NeighborCache->Ticks = (UINT32) IP6_INFINIT_LIFETIME; in Ip6NdFasterTimerTicking()
2979 if ((NeighborCache->Ticks == 0) || (--NeighborCache->Ticks == 0)) { in Ip6NdFasterTimerTicking()
2981 NeighborCache->State = EfiNeighborProbe; in Ip6NdFasterTimerTicking()
2982 NeighborCache->Ticks = IP6_GET_TICKS (IpSb->RetransTimer); in Ip6NdFasterTimerTicking()
2983 NeighborCache->Transmit = IP6_MAX_UNICAST_SOLICIT + 1; in Ip6NdFasterTimerTicking()
2987 Status = Ip6SelectSourceAddress (IpSb, &NeighborCache->Neighbor, &Source); in Ip6NdFasterTimerTicking()
2995 &NeighborCache->Neighbor, in Ip6NdFasterTimerTicking()
2996 &NeighborCache->Neighbor, in Ip6NdFasterTimerTicking()
3003 NeighborCache->Transmit--; in Ip6NdFasterTimerTicking()
3009 if (NeighborCache->Ticks > 0) { in Ip6NdFasterTimerTicking()
3010 --NeighborCache->Ticks; in Ip6NdFasterTimerTicking()
3017 if (NeighborCache->Ticks == 0) { in Ip6NdFasterTimerTicking()
3018 if (NeighborCache->Transmit > 1) { in Ip6NdFasterTimerTicking()
3024 Status = Ip6SelectSourceAddress (IpSb, &NeighborCache->Neighbor, &Source); in Ip6NdFasterTimerTicking()
3032 &NeighborCache->Neighbor, in Ip6NdFasterTimerTicking()
3033 &NeighborCache->Neighbor, in Ip6NdFasterTimerTicking()
3044 if (NeighborCache->Transmit > 0) { in Ip6NdFasterTimerTicking()
3045 --NeighborCache->Transmit; in Ip6NdFasterTimerTicking()
3046 NeighborCache->Ticks = IP6_GET_TICKS (IpSb->RetransTimer); in Ip6NdFasterTimerTicking()
3050 if (NeighborCache->Transmit == 0) { in Ip6NdFasterTimerTicking()
3056 NeighborCache, in Ip6NdFasterTimerTicking()