/freebsd-9.3-release/contrib/ipfilter/lib/ |
H A D | printpacket6.c | 30 plen = ntohs(*((u_short *)buf +2)); 35 ntohs(addrs[0]), ntohs(addrs[1]), ntohs(addrs[2]), 36 ntohs(addrs[3]), ntohs(addrs[4]), ntohs(addrs[5]), 37 ntohs(addrs[6]), ntohs(addrs[7])); 40 (void)printf(",%d", ntohs(tc [all...] |
H A D | printpacket.c | 27 len = ntohs(((u_short *)ip)[2]) + 40; 29 off = ntohs(ip->ip_off); 30 len = ntohs(ip->ip_len); 56 printf("ip #%d %d(%d) %d", ntohs(ip->ip_id), ntohs(ip->ip_len), 63 printf(",%d", ntohs(tcp->th_sport)); 68 printf(",%d", ntohs(tcp->th_dport));
|
H A D | printnat.c | 101 printf(" port %d", ntohs(np->in_pmin)); 103 printf("-%d", ntohs(np->in_pmax)); 113 printf(" port = %d", ntohs(np->in_pnext)); 115 printf(" port %d", ntohs(np->in_pnext)); 168 s = portname(np->in_p, ntohs(np->in_dport)); 198 ntohs(np->in_pmin), 199 ntohs(np->in_pmax), 202 printf(" %d:%d", ntohs(np->in_pmin), 203 ntohs(np->in_pmax));
|
/freebsd-9.3-release/usr.sbin/IPXrouted/ |
H A D | sap_input.c | 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( [all...] |
H A D | input.c | 98 switch (ntohs(msg->rip_cmd)) { 118 ntohs(n->rip_metric) == HOPCNT_INFINITY && 222 if ((unsigned) ntohs(n->rip_metric) > HOPCNT_INFINITY) 226 if (ntohs(n->rip_metric) == HOPCNT_INFINITY) 228 rtadd(sa, from, ntohs(n->rip_metric), 229 ntohs(n->rip_ticks), 0); 248 ntohs(n->rip_ticks) == rt->rt_ticks && 249 ntohs(n->rip_metric) == rt->rt_metric && 250 ntohs(n->rip_metric) != HOPCNT_INFINITY) { 262 ntohs( [all...] |
H A D | trace.c | 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( [all...] |
H A D | sap_tables.c | 138 if (ntohs(sap->sap.hops) < besthops) { 140 besthops = ntohs(best->sap.hops); 157 if (ntohs(si->hops) == HOPCNT_INFINITY) 199 if (sap->clone && (ntohs(si->hops) != HOPCNT_INFINITY)) { 214 if (ntohs(osap->sap.hops) > ntohs(si->hops)) { 224 } else if (ntohs(osap->sap.hops) == ntohs(si->hops)) { 249 if (ntohs(si->hops) == HOPCNT_INFINITY) 276 if (ntohs(clon [all...] |
/freebsd-9.3-release/lib/libc/mips/net/ |
H A D | ntohs.S | 42 LEAF(ntohs) 53 END(ntohs)
|
/freebsd-9.3-release/sbin/ifconfig/ |
H A D | af_atalk.c | 96 ntohs(sat->sat_addr.s_net), sat->sat_addr.s_node, 97 ntohs(nr->nr_firstnet), ntohs(nr->nr_lastnet), nr->nr_phase); 103 ntohs(sat->sat_addr.s_net), sat->sat_addr.s_node); 109 ntohs(sat->sat_addr.s_net), 144 ntohs(sat->sat_addr.s_net), sat->sat_addr.s_node, 145 ntohs(at_nr.nr_firstnet), ntohs(at_nr.nr_lastnet), 147 if ((u_short) ntohs(at_nr.nr_firstnet) > 148 (u_short) ntohs(sa [all...] |
/freebsd-9.3-release/lib/libc/net/ |
H A D | ntoh.c | 54 ntohs(uint16_t ns) function
|
/freebsd-9.3-release/contrib/tcp_wrappers/ |
H A D | rfc931.c | 189 ntohs(((struct sockaddr_in *)rmt_sin)->sin_port), 190 ntohs(((struct sockaddr_in *)our_sin)->sin_port)); 192 ntohs(rmt_sin->sin_port), 193 ntohs(our_sin->sin_port)); 210 && ntohs(((struct sockaddr_in *)rmt_sin)->sin_port) == rmt_port 211 && ntohs(((struct sockaddr_in *)our_sin)->sin_port) == our_port) { 213 && ntohs(rmt_sin->sin_port) == rmt_port 214 && ntohs(our_sin->sin_port) == our_port) {
|
/freebsd-9.3-release/sys/amd64/include/ |
H A D | in_cksum.h | 59 __tmpsum = (int)ntohs(ip->ip_sum) + 256; 68 __tmpsum = (int)ntohs(ip->ip_sum) + 256; \
|
/freebsd-9.3-release/sys/ia64/include/ |
H A D | in_cksum.h | 55 __tmpsum = (int)ntohs(ip->ip_sum) + 256; 64 __tmpsum = (int)ntohs(ip->ip_sum) + 256; \
|
/freebsd-9.3-release/sys/mips/include/ |
H A D | in_cksum.h | 56 __tmpsum = (int)ntohs(ip->ip_sum) + 256; 65 __tmpsum = (int)ntohs(ip->ip_sum) + 256; \
|
/freebsd-9.3-release/sys/netinet6/ |
H A D | mld6.h | 55 #define MLD_MRC_EXP(x) ((ntohs((x)) >> 12) & 0x0007) 56 #define MLD_MRC_MANT(x) (ntohs((x)) & 0x0fff)
|
/freebsd-9.3-release/sys/powerpc/include/ |
H A D | in_cksum.h | 55 __tmpsum = (int)ntohs(ip->ip_sum) + 256; 64 __tmpsum = (int)ntohs(ip->ip_sum) + 256; \
|
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.hton.d | 62 /after[0] != ntohs(before[0])/ 64 printf("%x rather than %x", ntohs(before[0]), after[0]);
|
/freebsd-9.3-release/libexec/rbootd/ |
H A D | utils.c | 119 rmp->hp_llc.dsap, rmp->hp_llc.ssap, ntohs(rmp->hp_llc.cntrl)); 123 ntohs(rmp->hp_llc.dxsap), ntohs(rmp->hp_llc.sxsap)); 133 if (ntohs(rmp->r_brq.rmp_session) == RMP_PROBESID) { 141 t, ntohs(rmp->r_brq.rmp_session), 142 ntohs(rmp->r_brq.rmp_version)); 152 t, ntohs(rmp->r_brpl.rmp_session), 153 ntohs(rmp->r_brpl.rmp_version)); 160 t, ntohs(rmp->r_rrq.rmp_session)); 162 ntohs(rm [all...] |
/freebsd-9.3-release/sys/netatalk/ |
H A D | ddp_output.c | 86 ntohs(deh->deh_snet), deh->deh_snode, deh->deh_sport, 87 ntohs(deh->deh_dnet), deh->deh_dnode, deh->deh_dport); 144 net = ntohs(satosat(ro->ro_rt->rt_gateway)->sat_addr.s_net); 148 net >= ntohs(aa->aa_firstnet) && 149 net <= ntohs(aa->aa_lastnet)) 181 if (ntohs(satosat(&ro->ro_dst)->sat_addr.s_net) >= 182 ntohs(aa->aa_firstnet) && 183 ntohs(satosat(&ro->ro_dst)->sat_addr.s_net) <= 184 ntohs(aa->aa_lastnet)) 228 ntohs(satosa [all...] |
/freebsd-9.3-release/sys/netinet/libalias/ |
H A D | alias_nbt.c | 86 if (ntohs(*ah->dport) == NETBIOS_DGM_PORT_NUMBER 87 || ntohs(*ah->sport) == NETBIOS_DGM_PORT_NUMBER) 106 if (ntohs(*ah->dport) == NETBIOS_NS_PORT_NUMBER 107 || ntohs(*ah->sport) == NETBIOS_NS_PORT_NUMBER) 353 pmax = (char *)uh + ntohs(uh->uh_ulen); 382 printf("%s:%d-->", inet_ntoa(ndh->source_ip), ntohs(ndh->source_port)); 402 printf("%s:%d\n", inet_ntoa(ndh->source_ip), ntohs(ndh->source_port)); 436 switch (ntohs(q->type)) { 443 printf("\nUnknown Type on Question %0x\n", ntohs(q->type)); 487 bcount = ntohs( [all...] |
H A D | alias_smedia.c | 139 ntohs(*ah->dport) == TFTP_PORT_NUMBER) 144 if (ntohs(*ah->dport) == RTSP_CONTROL_PORT_NUMBER_1 145 || ntohs(*ah->sport) == RTSP_CONTROL_PORT_NUMBER_1 146 || ntohs(*ah->dport) == RTSP_CONTROL_PORT_NUMBER_2 147 || ntohs(*ah->sport) == RTSP_CONTROL_PORT_NUMBER_2) 156 if (ntohs(*ah->dport) == TFTP_PORT_NUMBER) 255 tlen = ntohs(pip->ip_len); 333 base_alias = ntohs(salias); 368 sprintf(stemp, "%d", ntohs(salias)); 377 sprintf(stemp, "%d", ntohs(ealia [all...] |
/freebsd-9.3-release/lib/libstand/ |
H A D | udp.c | 77 inet_ntoa(d->myip), ntohs(d->myport)); 79 inet_ntoa(d->destip), ntohs(d->destport)); 200 if (n < ntohs(ip->ip_len)) { 204 (int)n, ntohs(ip->ip_len)); 228 d->myport, ntohs(uh->uh_dport)); 238 n = ntohs(uh->uh_ulen) + sizeof(*ip); 260 if (ntohs(uh->uh_ulen) < sizeof(*uh)) { 264 ntohs(uh->uh_ulen), (int)sizeof(*uh)); 269 n = (n > (ntohs(uh->uh_ulen) - sizeof(*uh))) ? 270 ntohs(u [all...] |
/freebsd-9.3-release/contrib/pf/tftp-proxy/ |
H A D | tftp-proxy.c | 205 if (!(ntohs(tp->th_opcode) == RRQ || ntohs(tp->th_opcode) == WRQ)) { 262 ntohs(((struct sockaddr_in *)&from)->sin_port), 264 ntohs(((struct sockaddr_in *)&proxy)->sin_port), 266 ntohs(((struct sockaddr_in *)&proxy_to_server)->sin_port), 268 ntohs(((struct sockaddr_in *)&server)->sin_port), 269 opcode(ntohs(tp->th_opcode)), 280 (struct sockaddr *)&proxy_to_server, ntohs(sock_out.sin_port), 282 ntohs(((struct sockaddr_in *)&from)->sin_port), 292 ntohs(((struc [all...] |
/freebsd-9.3-release/tools/regression/netatalk/simple_send/ |
H A D | simple_send.c | 78 ntohs(from->sat_addr.s_net), from->sat_addr.s_node, 85 ntohs(to->sat_addr.s_net), to->sat_addr.s_node, 125 ntohs(sat_from.sat_addr.s_net), sat_from.sat_addr.s_node, 127 ntohs(sat_to.sat_addr.s_net), sat_to.sat_addr.s_node,
|
/freebsd-9.3-release/usr.sbin/bluetooth/sdpcontrol/ |
H A D | search.c | 125 ntohs(*(uint16_t *)&uuid.b[4]), 126 ntohs(*(uint16_t *)&uuid.b[6]), 127 ntohs(*(uint16_t *)&uuid.b[8]), 128 ntohs(*(uint16_t *)&uuid.b[10]), 186 ntohs(*(uint16_t *)&value.int128.b[4]), 187 ntohs(*(uint16_t *)&value.int128.b[6]), 188 ntohs(*(uint16_t *)&value.int128.b[8]), 189 ntohs(*(uint16_t *)&value.int128.b[10]), 251 ntohs(*(uint16_t *)&value.int128.b[4]), 252 ntohs(*(uint16_ [all...] |