/freebsd-10.0-release/contrib/ipfilter/lib/ |
H A D | printpacket6.c | 32 plen = ntohs(*((u_short *)buf +2)); 44 ntohs(addrs[0]), ntohs(addrs[1]), ntohs(addrs[2]), 45 ntohs(addrs[3]), ntohs(addrs[4]), ntohs(addrs[5]), 46 ntohs(addrs[6]), ntohs(addrs[7])); 49 (void)PRINTF(",%d", ntohs(tc [all...] |
H A D | printiphdr.c | 17 ip->ip_v, ip->ip_hl, ntohs(ip->ip_len), ip->ip_tos, 18 ntohs(ip->ip_off), ntohs(ip->ip_sum), ntohl(ip->ip_src.s_addr),
|
H A D | printpacket.c | 31 len = ntohs(((ip6_t *)ip)->ip6_plen); 33 len = ntohs(((u_short *)ip)[2]); 37 len = ntohs(ip->ip_len); 73 off = ntohs(ip->ip_off); 75 PRINTF("ip #%d %d(%d) %d", ntohs(ip->ip_id), ntohs(ip->ip_len), 82 PRINTF(",%d", ntohs(tcp->th_sport)); 87 PRINTF(",%d", ntohs(tcp->th_dport));
|
H A D | printactivenat.c | 39 PRINTF(" %-5hu", ntohs(nat->nat_osport)); 46 PRINTF(" %-5hu", ntohs(nat->nat_odport)); 53 PRINTF(" %-5hu", ntohs(nat->nat_nsport)); 59 PRINTF(" %-5hu", ntohs(nat->nat_ndport)); 66 PRINTF(" %-5hu", ntohs(nat->nat_osport)); 73 PRINTF(" %-5hu", ntohs(nat->nat_nsport)); 80 PRINTF(" %hu", ntohs(nat->nat_odport)); 87 PRINTF(" %-5hu", ntohs(nat->nat_ndport)); 94 PRINTF(" %-5hu", ntohs(nat->nat_odport)); 101 PRINTF(" %hu", ntohs(na [all...] |
H A D | printnatfield.c | 198 PRINTF("%hu", ntohs(n->nat_odport)); 202 PRINTF("%hu", ntohs(n->nat_osport)); 206 PRINTF("%hu", ntohs(n->nat_ndport)); 210 PRINTF("%hu", ntohs(n->nat_nsport));
|
/freebsd-10.0-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-10.0-release/lib/libc/mips/net/ |
H A D | ntohs.S | 35 LEAF(ntohs) 46 END(ntohs)
|
/freebsd-10.0-release/cddl/lib/libdtrace/ |
H A D | udp.d | 56 udps_lport = p == NULL ? 0 : ntohs(p->inp_inc.inc_ie.ie_lport); 57 udps_rport = p == NULL ? 0 : ntohs(p->inp_inc.inc_ie.ie_fport); 70 udp_sport = p == NULL ? 0 : ntohs(p->uh_sport); 71 udp_dport = p == NULL ? 0 : ntohs(p->uh_dport); 72 udp_length = p == NULL ? 0 : ntohs(p->uh_ulen); 73 udp_checksum = p == NULL ? 0 : ntohs(p->uh_sum);
|
/freebsd-10.0-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-10.0-release/lib/libc/net/ |
H A D | ntoh.c | 54 ntohs(uint16_t ns) function
|
/freebsd-10.0-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-10.0-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-10.0-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-10.0-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-10.0-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-10.0-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-10.0-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-10.0-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-10.0-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-10.0-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...] |
/freebsd-10.0-release/contrib/unbound/iterator/ |
H A D | iter_resptype.c | 78 if(ntohs(s->rk.type) == request->qtype && 79 ntohs(s->rk.rrset_class) == request->qclass && 86 if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME && 125 if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME && 162 ntohs(s->rk.type) == LDNS_RR_TYPE_NS && 163 ntohs(s->rk.rrset_class) == request->qclass && 176 if(ntohs(s->rk.type) == request->qtype && 177 ntohs(s->rk.rrset_class) == request->qclass && 190 if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME && 213 if(ntohs( [all...] |
/freebsd-10.0-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...] |