Searched refs:HOPCNT_INFINITY (Results 1 - 19 of 19) sorted by relevance

/freebsd-9.3-release/usr.sbin/IPXrouted/
H A Dprotocol.h71 #define HOPCNT_INFINITY 16 /* per IPX */ macro
H A Dinput.c118 ntohs(n->rip_metric) == HOPCNT_INFINITY &&
147 if (rt->rt_metric == (HOPCNT_INFINITY-1))
149 n->rip_metric = htons( rt == 0 ? HOPCNT_INFINITY :
150 min(rt->rt_metric+1, HOPCNT_INFINITY));
222 if ((unsigned) ntohs(n->rip_metric) > HOPCNT_INFINITY)
226 if (ntohs(n->rip_metric) == HOPCNT_INFINITY)
250 ntohs(n->rip_metric) != HOPCNT_INFINITY) {
275 ntohs(n->rip_metric) != HOPCNT_INFINITY)) {
278 if (ntohs(n->rip_metric) == HOPCNT_INFINITY)
286 (ntohs(n->rip_metric) != HOPCNT_INFINITY)) {
[all...]
H A Dtimer.c114 rt->rt_metric = HOPCNT_INFINITY;
128 if ((rt->rt_metric + 1) == HOPCNT_INFINITY)
134 htons(min(rt->rt_metric+1, HOPCNT_INFINITY));
173 sap->sap.hops = htons(HOPCNT_INFINITY);
191 if ((ntohs(sap->sap.hops) + 1) == HOPCNT_INFINITY)
196 htons(min(sap->sap.hops+1, HOPCNT_INFINITY));
223 rt->rt_metric = HOPCNT_INFINITY;
233 sap->sap.hops = htons(HOPCNT_INFINITY);
H A Dsap_input.c90 if (ntohs(n->hops) >= HOPCNT_INFINITY)
145 if (ntohs(n->hops) > HOPCNT_INFINITY)
149 if (ntohs(n->hops) == HOPCNT_INFINITY)
171 (ntohs(n->hops) != HOPCNT_INFINITY)) {
197 ntohs(n->hops) != HOPCNT_INFINITY)) {
H A Dsap_tables.c129 register int besthops = HOPCNT_INFINITY;
157 if (ntohs(si->hops) == HOPCNT_INFINITY)
194 * If the hopcount (metric) is HOPCNT_INFINITY (16) it means that
199 if (sap->clone && (ntohs(si->hops) != HOPCNT_INFINITY)) {
249 if (ntohs(si->hops) == HOPCNT_INFINITY)
276 if (ntohs(clone->hops) == HOPCNT_INFINITY)
H A Doutput.c188 if (rt->rt_metric == HOPCNT_INFINITY)
189 metric = HOPCNT_INFINITY;
195 if (metric >= HOPCNT_INFINITY)
H A Dsap_output.c182 if (ntohs(sap->sap.hops) == (HOPCNT_INFINITY - 1))
184 metric = min(ntohs(sap->sap.hops) + 1, HOPCNT_INFINITY);
H A Dmain.c214 msg->rip_nets[0].rip_metric = htons(HOPCNT_INFINITY);
/freebsd-9.3-release/sbin/routed/
H A Dinput.c287 * metric HOPCNT_INFINITY means "all routes".
293 && n->n_metric == HOPCNT_INFINITY) {
405 v12buf.n->n_metric = HOPCNT_INFINITY;
418 if (j < HOPCNT_INFINITY)
421 v12buf.n->n_metric = HOPCNT_INFINITY;
623 || n->n_metric > HOPCNT_INFINITY) {
676 if (n->n_metric > HOPCNT_INFINITY)
677 n->n_metric = HOPCNT_INFINITY;
804 if (new->rts_metric == HOPCNT_INFINITY)
867 if (rts->rts_metric == HOPCNT_INFINITY
[all...]
H A Dtable.c44 static struct rt_spare rts_empty = {0,0,0,HOPCNT_INFINITY,0,0,0};
907 k->k_metric = HOPCNT_INFINITY;
912 k->k_metric = HOPCNT_INFINITY;
918 else if (k->k_metric > HOPCNT_INFINITY-1)
919 k->k_metric = HOPCNT_INFINITY-1;
1339 if (ag->ag_metric == HOPCNT_INFINITY) {
1364 if (k->k_metric == HOPCNT_INFINITY)
1395 if (k->k_metric == HOPCNT_INFINITY
1467 if (metric == HOPCNT_INFINITY) {
1469 pref = HOPCNT_INFINITY;
[all...]
H A Doutput.c410 ? HOPCNT_INFINITY
620 metric = HOPCNT_INFINITY;
646 if (metric >= HOPCNT_INFINITY) {
648 && (pref >= HOPCNT_INFINITY
652 metric = HOPCNT_INFINITY;
930 buf.rip_nets[0].n_metric = htonl(HOPCNT_INFINITY);
H A Dparms.c228 if (metric >= HOPCNT_INFINITY) {
591 || intnetp->intnet_metric >= HOPCNT_INFINITY)
775 || i > HOPCNT_INFINITY-1)
782 || i > HOPCNT_INFINITY-1)
789 || i > HOPCNT_INFINITY-1)
H A Ddefs.h144 #define FAKE_METRIC (HOPCNT_INFINITY-2)
249 #define BETTER_LINK(rt,A,B) ((A)->rts_metric < HOPCNT_INFINITY \
H A Drdisc.c519 new.rts_metric = HOPCNT_INFINITY;
547 new.rts_metric = HOPCNT_INFINITY-1;
H A Dmain.c194 && n <= HOPCNT_INFINITY-1
H A Dif.c891 if (ifs.int_metric > HOPCNT_INFINITY) {
H A Dtrace.c919 && ntohl(n->n_metric) == HOPCNT_INFINITY
/freebsd-9.3-release/include/protocols/
H A Drouted.h140 #define HOPCNT_INFINITY 16 macro
/freebsd-9.3-release/sbin/routed/rtquery/
H A Drtquery.c145 OMSG.rip_nets[0].n_metric = htonl(HOPCNT_INFINITY);

Completed in 96 milliseconds