Lines Matching refs:ntohs
295 ntohs(sap->sap.ServType),
298 ntohs(sap->sap.ipx.x_port),
300 ntohs(sap->sap.hops));
358 if (msg->rip_cmd && ntohs(msg->rip_cmd) < RIPCMD_MAX)
359 fprintf(fd, "%s %s %s#%x", ripcmds[ntohs(msg->rip_cmd)],
361 ntohs(who->sipx_addr.x_port));
363 fprintf(fd, "Bad cmd 0x%x %s %s#%x\n", ntohs(msg->rip_cmd),
365 ntohs(who->sipx_addr.x_port));
370 switch (ntohs(msg->rip_cmd)) {
382 ntohs(n->rip_metric),
383 ntohs(n->rip_ticks));
402 if (msg->sap_cmd && ntohs(msg->sap_cmd) < SAPCMD_MAX)
403 fprintf(fd, "%s %s %s#%x", sapcmds[ntohs(msg->sap_cmd)],
405 ntohs(who->sipx_addr.x_port));
407 fprintf(fd, "Bad cmd 0x%x %s %s#%x\n", ntohs(msg->sap_cmd),
409 ntohs(who->sipx_addr.x_port));
414 switch (ntohs(msg->sap_cmd)) {
428 ntohs(n->ServType),
431 ntohs(n->ipx.x_port),
432 ntohs(n->hops));
455 ntohs(sap->sap.ServType),
458 ntohs(sap->sap.ipx.x_port),
460 ntohs(sap->sap.hops));