Home | History | Annotate | Download | only in net

Lines Matching refs:destination

32  * In order to be used, a route must have a destination prefix and:
47 * The IP destination address for this route.
68 * If destination is null, then gateway must be specified and the
74 * destination and gateway may not both be null.
76 * @param destination the destination prefix
80 public RouteInfo(LinkAddress destination, InetAddress gateway, String iface) {
81 if (destination == null) {
84 destination = new LinkAddress(Inet4Address.ANY, 0);
86 destination = new LinkAddress(Inet6Address.ANY, 0);
89 // no destination, no gateway. invalid.
91 destination);
95 if (destination.getAddress() instanceof Inet4Address) {
103 mDestination = new LinkAddress(NetworkUtils.getNetworkPart(destination.getAddress(),
104 destination.getNetworkPrefixLength()), destination.getNetworkPrefixLength());
111 public RouteInfo(LinkAddress destination, InetAddress gateway) {
112 this(destination, gateway, null);
283 protected boolean matches(InetAddress destination) {
284 if (destination == null) return false;
286 // match the route destination and destination with prefix length
287 InetAddress dstNet = NetworkUtils.getNetworkPart(destination,