Lines Matching refs:ntohs
77 switch (ntohs(sap_msg->sap_cmd)) {
89 n->hops = htons(ntohs(n->hops) + 1);
90 if (ntohs(n->hops) >= HOPCNT_INFINITY)
97 ntohs(n->ServType),
101 ntohs(sap->sap.ServType),
104 ntohs(sap->sap.ipx.x_port),
105 ntohs(sap->sap.hops));
145 if (ntohs(n->hops) > HOPCNT_INFINITY)
149 if (ntohs(n->hops) == HOPCNT_INFINITY)
171 (ntohs(n->hops) != HOPCNT_INFINITY)) {
189 (ntohs(n->hops) == ntohs(sap->sap.hops)))
194 (ntohs(n->hops) < ntohs(sap->sap.hops)) ||
196 ntohs(sap->sap.hops) == ntohs(n->hops) &&
197 ntohs(n->hops) != HOPCNT_INFINITY)) {