Home | History | Annotate | Download | only in Ip6Dxe

Lines Matching refs:Prefix

106   of prefix entries is also returned.

109 @param[out] PrefixCount The number of returned prefix entries.
112 @retval EFI_SUCCESS The prefix table successfully built.
113 @retval EFI_OUT_OF_RESOURCES Failed to allocate the memory for the prefix table.
155 IP6_COPY_ADDRESS (&EfiPrefix->Address, &PrefixList->Prefix);
168 Allocate and initialize a IP6 prefix list entry.
171 @param[in] OnLinkOrAuto If TRUE, the entry is created for the on link prefix list.
172 Otherwise, it is created for the autoconfiguration prefix list.
173 @param[in] ValidLifetime The length of time in seconds that the prefix
176 generated from the prefix via stateless address
178 @param[in] PrefixLength The prefix length of the Prefix.
179 @param[in] Prefix The prefix address.
181 @return NULL if it failed to allocate memory for the prefix node. Otherwise, point
182 to the created or existing prefix list entry.
192 IN EFI_IPv6_ADDRESS *Prefix
201 if (Prefix == NULL || PreferredLifetime > ValidLifetime || PrefixLength > IP6_PREFIX_MAX) {
211 Prefix
227 IP6_COPY_ADDRESS (&PrefixEntry->Prefix, Prefix);
232 // Create a direct route entry for on-link prefix and insert to route area.
235 RtEntry = Ip6CreateRouteEntry (Prefix, PrefixLength, NULL);
247 // Insert the prefix entry in the order that a prefix with longer prefix length
264 Destroy a IP6 prefix list entry.
267 @param[in] PrefixEntry The to be destroyed prefix list entry.
268 @param[in] OnLinkOrAuto If TRUE, the entry is removed from on link prefix list.
269 Otherwise remove from autoconfiguration prefix list.
293 // Remove the direct route for onlink prefix from route table.
298 &PrefixEntry->Prefix,
305 // Remove the corresponding addresses generated from this autonomous prefix.
310 Ip6RemoveAddr (IpSb, &IpIf->AddressList, &IpIf->AddressCount, &PrefixEntry->Prefix, PrefixEntry->PrefixLength);
319 Search the list array to find an IP6 prefix list entry.
322 @param[in] OnLinkOrAuto If TRUE, the search the link prefix list,
323 Otherwise search the autoconfiguration prefix list.
324 @param[in] PrefixLength The prefix length of the Prefix
325 @param[in] Prefix The prefix address.
327 @return NULL if cannot find the IP6 prefix list entry. Otherwise, return the
328 pointer to the IP6 prefix list entry.
336 IN EFI_IPv6_ADDRESS *Prefix
344 ASSERT (Prefix != NULL);
356 // Perform exactly prefix match.
359 NetIp6IsNetEqual (&PrefixList->Prefix, Prefix, PrefixLength)) {
364 // Perform the longest prefix match. The list is already sorted with
365 // the longest length prefix put at the head of the list.
367 if (NetIp6IsNetEqual (&PrefixList->Prefix, Prefix, PrefixList->PrefixLength)) {
377 Release the resource in the prefix list table, and destroy the list entry and
381 @param[in] ListHead The list entry head of the prefix list table.
879 // Add an on-link prefix for link-local address.
897 // Add an on-link prefix for this address.
2102 // Link-Layer Address, Prefix information and MTU options.
2183 // If the prefix is the link-local prefix, silently ignore the prefix option.
2186 NetIp6IsLinkLocalAddr (&PrefixOption.Prefix)
2199 &PrefixOption.Prefix
2202 // Create a new entry for the prefix, if the ValidLifetime is zero,
2203 // silently ignore the prefix option.
2212 &PrefixOption.Prefix
2223 // If the prefix exists and incoming ValidLifetime is zero, immediately
2224 // remove the prefix.
2238 &PrefixOption.Prefix
2241 // Create a new entry for the prefix, and form an address by prefix + interface id
2242 // If the sum of the prefix length and interface identifier length
2243 // does not equal 128 bits, the Prefix Information option MUST be ignored.
2252 CopyMem (&StatelessAddress, &PrefixOption.Prefix, sizeof (UINT64));
2280 // Adds the prefix option to stateless prefix option list.
2288 &PrefixOption.Prefix
2297 // Reset the preferred lifetime of the address if the advertised prefix exists.
2313 // Prefix Information option with regards to the valid lifetime.
3078 things: 1) maitain default router list; 2) maintain prefix options;
3109 // Decrease Valid lifetime and Preferred lifetime of Prefix options and corresponding addresses.