Home | History | Annotate | Download | only in net

Lines Matching defs:RouteInfo

39  * uses RouteInfo objects to store directly-connected routes without interfaces.
45 public class RouteInfo implements Parcelable {
66 * Constructs a RouteInfo object.
80 public RouteInfo(LinkAddress destination, InetAddress gateway, String iface) {
111 public RouteInfo(LinkAddress destination, InetAddress gateway) {
115 public RouteInfo(InetAddress gateway) {
119 public RouteInfo(LinkAddress host) {
123 public static RouteInfo makeHostRoute(InetAddress host, String iface) {
127 public static RouteInfo makeHostRoute(InetAddress host, InetAddress gateway, String iface) {
131 return new RouteInfo(new LinkAddress(host, 32), gateway, iface);
133 return new RouteInfo(new LinkAddress(host, 128), gateway, iface);
215 if (!(obj instanceof RouteInfo)) return false;
217 RouteInfo target = (RouteInfo) obj;
243 public static final Creator<RouteInfo> CREATOR =
244 new Creator<RouteInfo>() {
245 public RouteInfo createFromParcel(Parcel in) {
275 return new RouteInfo(dest, gateway, iface);
278 public RouteInfo[] newArray(int size) {
279 return new RouteInfo[size];
298 * @return the RouteInfo from the Collection that best fits the given address
300 public static RouteInfo selectBestRoute(Collection<RouteInfo> routes, InetAddress dest) {
303 RouteInfo bestRoute = null;
305 for (RouteInfo route : routes) {