Lines Matching refs:address

200      * Returns all the addresses on this link.  We often think of a link having a single address,
203 * prefix lengths for each address. This is a simplified utility alternative to
232 private int findLinkAddressIndex(LinkAddress address) {
234 if (mLinkAddresses.get(i).isSameAddressAs(address)) {
243 * same address/prefix does not already exist. If it does exist it is replaced.
244 * @param address The {@code LinkAddress} to add.
245 * @return true if {@code address} was added or updated, false otherwise.
248 public boolean addLinkAddress(LinkAddress address) {
249 if (address == null) {
252 int i = findLinkAddressIndex(address);
255 mLinkAddresses.add(address);
257 } else if (mLinkAddresses.get(i).equals(address)) {
262 mLinkAddresses.set(i, address);
269 * and {@link LinkAddress} with the same address and prefix.
271 * @param toRemove A {@link LinkAddress} specifying the address to remove.
272 * @return true if the address was removed, false if it did not exist.
286 * one IPv4 address and one or more IPv6 addresses.
317 for (LinkAddress address: addresses) {
318 addLinkAddress(address);
650 * Returns true if this link has an IPv4 address.
652 * @return {@code true} if there is an IPv4 address, {@code false} otherwise.
656 for (LinkAddress address : mLinkAddresses) {
657 if (address.getAddress() instanceof Inet4Address) {
665 * Returns true if this link or any of its stacked interfaces has an IPv4 address.
667 * @return {@code true} if there is an IPv4 address, {@code false} otherwise.
676 * Returns true if this link has a global preferred IPv6 address.
678 * @return {@code true} if there is a global preferred IPv6 address, {@code false} otherwise.
682 for (LinkAddress address : mLinkAddresses) {
683 if (address.getAddress() instanceof Inet6Address && address.isGlobalPreferred()) {
752 * This requires an IP address, default route, and DNS server.
765 * This requires an IP address, default route, and DNS server.
796 // If we don't have a route to this IP address, it's not reachable.
802 // TODO: better source address evaluation for destination addresses.
805 // For IPv4, it suffices for now to simply have any address.
815 // is directly connected or that some global preferred address exists.
983 * address which are common between mLinkAddresses and target
984 * leaving the addresses that are different. And address which
1012 * dns address which are common between mDnses and target
1013 * leaving the addresses that are different. And dns address which
1043 * leaving the routes that are different. And route address which