Home | History | Annotate | Download | only in routing

Lines Matching refs:fact

57      * @param fact      the currently established route, or
64 public int nextStep(RouteInfo plan, RouteInfo fact) {
72 if ((fact == null) || (fact.getHopCount() < 1))
75 step = proxiedStep(plan, fact);
77 step = directStep(plan, fact);
102 * @param fact the currently established route
107 protected int directStep(RouteInfo plan, RouteInfo fact) {
109 if (fact.getHopCount() > 1)
111 if (!plan.getTargetHost().equals(fact.getTargetHost()))
119 // (plan.isSecure() && !fact.isSecure())
120 if (plan.isSecure() != fact.isSecure())
125 !plan.getLocalAddress().equals(fact.getLocalAddress())
137 * @param fact the currently established route
142 protected int proxiedStep(RouteInfo plan, RouteInfo fact) {
144 if (fact.getHopCount() <= 1)
146 if (!plan.getTargetHost().equals(fact.getTargetHost()))
149 final int fhc = fact.getHopCount();
154 if (!plan.getHopTarget(i).equals(fact.getHopTarget(i)))
162 if ((fact.isTunnelled() && !plan.isTunnelled()) ||
163 (fact.isLayered() && !plan.isLayered()))
166 if (plan.isTunnelled() && !fact.isTunnelled())
168 if (plan.isLayered() && !fact.isLayered())
173 // (plan.isSecure() && !fact.isSecure())
174 if (plan.isSecure() != fact.isSecure())