Lines Matching defs:link

37  * Describes the properties of a network link.
39 * A link represents a connection to a network.
49 // The interface described by the network link.
67 // Stores the properties of links that are "stacked" above this link.
189 * Sets the interface name for this link. All {@link RouteInfo} already set for this
192 * @param iface The name of the network interface used for this link.
205 * Gets the interface name for this link. May be {@code null} if not set.
207 * @return The interface name set for this link or {@code null}.
226 * Returns all the addresses on this link. We often think of a link having a single address,
228 * {@code LinkProperties} actually contains {@link LinkAddress} objects which also include
230 * {@link LinkProperties#getLinkAddresses}.
232 * @return An umodifiable {@link List} of {@link InetAddress} for this link.
244 * Returns all the addresses on this link and all the links stacked above it.
268 * Adds a {@link LinkAddress} to this {@code LinkProperties} if a {@link LinkAddress} of the
294 * Removes a {@link LinkAddress} from this {@code LinkProperties}. Specifically, matches
295 * and {@link LinkAddress} with the same address and prefix.
297 * @param toRemove A {@link LinkAddress} specifying the address to remove.
311 * Returns all the {@link LinkAddress} on this link. Typically a link will have
314 * @return An unmodifiable {@link List} of {@link LinkAddress} for this link.
321 * Returns all the addresses on this link and all the links stacked above it.
334 * Replaces the {@link LinkAddress} in this {@code LinkProperties} with
335 * the given {@link Collection} of {@link LinkAddress}.
337 * @param addresses The {@link Collection} of {@link LinkAddress} to set in this
349 * Adds the given {@link InetAddress} to the list of DNS servers, if not present.
351 * @param dnsServer The {@link InetAddress} to add to the list of DNS servers.
364 * Removes the given {@link InetAddress} from the list of DNS servers.
366 * @param dnsServer The {@link InetAddress} to remove from the list of DNS servers.
379 * the given {@link Collection} of {@link InetAddress} objects.
381 * @param dnsServers The {@link Collection} of DNS servers to set in this object.
392 * Returns all the {@link InetAddress} for DNS servers on this link.
394 * @return An umodifiable {@link List} of {@link InetAddress} for DNS servers on
395 * this link.
415 * if private DNS is in use and {@link #getPrivateDnsServerName} is not
441 * {@code null} and {@link #isPrivateDnsActive} is {@code true}, private
444 * {@link #getDnsServers}. System DNS will handle each of these cases
455 * Adds the given {@link InetAddress} to the list of validated private DNS servers,
459 * @param dnsServer The {@link InetAddress} to add to the list of validated private DNS servers.
472 * Removes the given {@link InetAddress} from the list of validated private DNS servers.
474 * @param dnsServer The {@link InetAddress} to remove from the list of validated private DNS
488 * the given {@link Collection} of {@link InetAddress} objects.
490 * @param dnsServers The {@link Collection} of validated private DNS servers to set in this
502 * Returns all the {@link InetAddress} for validated private DNS servers on this link.
505 * @return An umodifiable {@link List} of {@link InetAddress} for validated private
506 * DNS servers on this link.
514 * Sets the DNS domain search path used on this link.
516 * @param domains A {@link String} listing in priority order the comma separated
517 * domains to search when resolving host names on this link.
525 * Get the DNS domains search path set for this link.
527 * @return A {@link String} containing the comma separated domains to search when resolving
528 * host names on this link.
535 * Sets the Maximum Transmission Unit size to use on this link. This should not be used
539 * @param mtu The MTU to use for this link.
547 * Gets any non-default MTU size set for this link. Note that if the default is being used
550 * @return The mtu value set for this link.
558 * Sets the tcp buffers sizes to be used when this link is the system default.
572 * @return the tcp buffer sizes to use when this link is the system default.
589 * Adds a {@link RouteInfo} to this {@code LinkProperties}, if not present. If the
590 * {@link RouteInfo} had an interface name set and that differs from the interface set for this
591 * {@code LinkProperties} an {@link IllegalArgumentException} will be thrown. The proper
592 * course is to add either un-named or properly named {@link RouteInfo}.
594 * @param route A {@link RouteInfo} to add to this object.
617 * Removes a {@link RouteInfo} from this {@code LinkProperties}, if present. The route must
632 * Returns all the {@link RouteInfo} set on this link.
634 * @return An unmodifiable {@link List} of {@link RouteInfo} for this link.
642 * of its link addresses. Add any route that is missing.
652 * Returns all the routes on this link and all the links stacked above it.
665 * Sets the recommended {@link ProxyInfo} to use on this link, or {@code null} for none.
669 * @param proxy A {@link ProxyInfo} defining the HTTP Proxy to use on this link.
677 * Gets the recommended {@link ProxyInfo} (or {@code null}) set on this link.
679 * @return The {@link ProxyInfo} set on this link
686 * Adds a stacked link.
688 * If there is already a stacked link with the same interfacename as link,
689 * that link is replaced with link. Otherwise, link is added to the list
690 * of stacked links. If link is null, nothing changes.
692 * @param link The link to add.
693 * @return true if the link was stacked, false otherwise.
696 public boolean addStackedLink(LinkProperties link) {
697 if (link != null && link.getInterfaceName() != null) {
698 mStackedLinks.put(link.getInterfaceName(), link);
705 * Removes a stacked link.
707 * If there is a stacked link with the given interface name, it is
710 * @param iface The interface name of the link to remove.
711 * @return true if the link was removed, false otherwise.
723 * Returns all the links stacked on top of this link.
731 for (LinkProperties link : mStackedLinks.values()) {
732 stacked.add(new LinkProperties(link));
807 for (LinkProperties link: mStackedLinks.values()) {
808 stacked += " [" + link.toString() + " ],";
818 * Returns true if this link has an IPv4 address.
833 * Returns true if this link or any of its stacked interfaces has an IPv4 address.
845 * Returns true if this link has a global preferred IPv6 address.
860 * Returns true if this link has an IPv4 default route.
875 * Returns true if this link has an IPv6 default route.
890 * Returns true if this link has an IPv4 DNS server.
905 * Returns true if this link has an IPv6 DNS server.
920 * Returns true if this link is provisioned for global IPv4 connectivity.
923 * @return {@code true} if the link is provisioned, {@code false} otherwise.
933 * Returns true if this link is provisioned for global IPv6 connectivity.
936 * @return {@code true} if the link is provisioned, {@code false} otherwise.
946 * Returns true if this link is provisioned for global connectivity,
949 * @return {@code true} if the link is provisioned, {@code false} otherwise.
957 * Evaluate whether the {@link InetAddress} is considered reachable.
959 * @return {@code true} if the given {@link InetAddress} is considered reachable,
978 // For now, just make sure link-local destinations have
983 // For non-link-local destinations check that either the best route
1156 * stacked interfaces are not so much a property of the link as a
1173 * LinkProperties, examining only addresses on the base link.
1193 * LinkProperties, examining only DNS addresses on the base link.
1225 * examining both the the base link and all stacked links.
1243 * LinkProperties, examining both the the base link and all stacked links.