/freebsd-10.0-release/libexec/rbootd/ |
H A D | rmpproto.c | 117 if (ntohs(rmp->r_brq.rmp_session) == RMP_PROBESID) { 427 if (ntohs(req->r_rrq.rmp_session) != 428 ((rpl->r_type == RMP_BOOT_REPL)? ntohs(rpl->r_brpl.rmp_session): 429 ntohs(rpl->r_rrpl.rmp_session))) { 445 if (ntohs(req->r_rrq.rmp_size) > RMPREADDATA) 464 (int) ntohs(req->r_rrq.rmp_size))) <= 0) { 531 if (ntohs(rconn->rmp.r_rrq.rmp_session) != 532 ((rpl->r_type == RMP_BOOT_REPL)? ntohs(rpl->r_brpl.rmp_session): 533 ntohs(rpl->r_rrpl.rmp_session))) {
|
/freebsd-10.0-release/contrib/tcpdump/ |
H A D | print-isakmp.c | 845 ND_PRINT((ndo," key len=%d", ntohs(e.len) - 4)); 846 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) { 848 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4)) 851 return (u_char *)ext + ntohs(e.len); 930 ND_PRINT((ndo," port=%d", ntohs(id.port))); 1113 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4)); 1114 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) { 1116 if (!rawprint(ndo, (caddr_t)(ext + 1), ntohs(e.len) - 4)) 1119 return (u_char *)ext + ntohs(e.len); 1137 ND_PRINT((ndo," len=%d", ntohs( [all...] |
H A D | extract.h | 41 * better code to do an unaligned load and pass stuff to "ntohs()" or 44 * where "ntohs()" and "ntohl()" might not be done inline.) 55 ((u_int16_t)ntohs(((const unaligned_u_int16_t *)(p))->val)) 92 ((u_int16_t)ntohs(*(const u_int16_t *)(p)))
|
/freebsd-10.0-release/sys/netinet/libalias/ |
H A D | alias_cuseeme.c | 72 if (ntohs(*ah->dport) == CUSEEME_PORT_NUMBER) 180 if (ntohs(ud->uh_ulen) - sizeof(struct udphdr) >= sizeof(struct cu_header)) { 215 end = (char *)ud + ntohs(ud->uh_ulen); 220 if (ntohs(cu->data_type) == 101)
|
H A D | alias_dummy.c | 77 if (ntohs(*ah->dport) == 123 78 || ntohs(*ah->sport) == 456)
|
H A D | alias_skinny.c | 65 if (la->skinnyPort != 0 && (ntohs(*ah->sport) == la->skinnyPort || 66 ntohs(*ah->dport) == la->skinnyPort)) 259 port_msg->stationIpPort = (u_int32_t) ntohs(GetAliasPort(lnk)); 291 opnrcvch_ack->port = (u_int32_t) ntohs(GetAliasPort(opnrcv_lnk)); 315 tlen = ntohs(pip->ip_len); 325 if (ntohs(tc->th_dport) == la->skinnyPort) { 327 } else if (ntohs(tc->th_sport) == la->skinnyPort) {
|
/freebsd-10.0-release/sys/netipx/ |
H A D | spx_debug.c | 145 seq = ntohs(seq); 146 ack = ntohs(ack); 147 alo = ntohs(alo); 148 len = ntohs(len);
|
/freebsd-10.0-release/usr.sbin/IPXrouted/ |
H A D | output.c | 145 msg->rip_cmd = ntohs(RIPCMD_RESPONSE); 209 if (ticks < ntohs(nn->rip_ticks)) { 212 } else if ((ticks == ntohs(nn->rip_ticks)) && 213 (metric < ntohs(nn->rip_metric))) {
|
H A D | sap_output.c | 129 sap_msg->sap_cmd = ntohs(SAP_RESP); 182 if (ntohs(sap->sap.hops) == (HOPCNT_INFINITY - 1)) 184 metric = min(ntohs(sap->sap.hops) + 1, HOPCNT_INFINITY);
|
/freebsd-10.0-release/usr.sbin/timed/timed/ |
H A D | byteorder.c | 66 ptr->tsp_seq = ntohs((u_short)ptr->tsp_seq);
|
/freebsd-10.0-release/crypto/heimdal/lib/roken/ |
H A D | getnameinfo.c | 71 snprintf (serv, servlen, "%u", ntohs(port)); 81 snprintf (serv, servlen, "%u", ntohs(port));
|
/freebsd-10.0-release/include/arpa/ |
H A D | inet.h | 142 uint16_t ntohs(uint16_t); 173 #define ntohs(x) __ntohs(x) macro
|
/freebsd-10.0-release/lib/libc/sparc64/ |
H A D | Symbol.map | 34 ntohs;
|
/freebsd-10.0-release/share/examples/find_interface/ |
H A D | find_interface.c | 90 local.sin_port = htons(ntohs(local.sin_port) + 1); 98 remote.sin_port = htons(ntohs(remote.sin_port) + 1);
|
/freebsd-10.0-release/sys/contrib/ipfilter/netinet/ |
H A D | ip_dns_pxy.c | 50 #define DNS_QR(x) ((ntohs(x) & 0x8000) >> 15) 51 #define DNS_OPCODE(x) ((ntohs(x) & 0x7800) >> 11) 52 #define DNS_AA(x) ((ntohs(x) & 0x0400) >> 10) 53 #define DNS_TC(x) ((ntohs(x) & 0x0200) >> 9) 54 #define DNS_RD(x) ((ntohs(x) & 0x0100) >> 8) 55 #define DNS_RA(x) ((ntohs(x) & 0x0080) >> 7) 56 #define DNS_Z(x) ((ntohs(x) & 0x0070) >> 4) 57 #define DNS_RCODE(x) ((ntohs(x) & 0x000f) >> 0)
|
/freebsd-10.0-release/sys/i386/include/ |
H A D | in_cksum.h | 89 __tmpsum = (int)ntohs(ip->ip_sum) + 256; 130 __tmpsum = (int)ntohs(ip->ip_sum) + 256; \
|
/freebsd-10.0-release/usr.sbin/flowctl/ |
H A D | flowctl.c | 292 ntohs(fle->r.r_sport), 293 ntohs(fle->r.r_dport), 326 ntohs(fle6->r.r_sport), 327 ntohs(fle6->r.r_dport), 363 ntohs(fle->r.r_sport), 366 ntohs(fle->r.r_dport), 406 ntohs(fle6->r.r_sport), 409 ntohs(fle6->r.r_dport),
|
/freebsd-10.0-release/contrib/ofed/management/infiniband-diags/src/ |
H A D | vendstat.c | 256 printf("hw_dev_rev: 0x%04x\n", ntohs(gi->hw_info.hw_revision)); 257 printf("hw_dev_id: 0x%04x\n", ntohs(gi->hw_info.device_id)); 263 gi->fw_info.month, gi->fw_info.day, ntohs(gi->fw_info.year)); 271 if (ntohs(gi->hw_info.device_id) != IS3_DEVICE_ID) 272 IBERROR("Unsupported device ID 0x%x", ntohs(gi->hw_info.device_id));
|
H A D | smpquery.c | 216 ntohs(p[0]), ntohs(p[1]), 217 ntohs(p[2]), ntohs(p[3]), 218 ntohs(p[4]), ntohs(p[5]), 219 ntohs(p[6]), ntohs(p[7]));
|
/freebsd-10.0-release/sys/netinet/ |
H A D | ip_gre.c | 153 flags = ntohs(gip->gi_flags); 166 switch (ntohs(gip->gi_ptype)) { /* ethertypes */ 253 if (ntohs(mip->mh.proto) & MOB_H_SBIT) { 268 mip->mi.ip_p = (ntohs(mip->mh.proto) >> 8); 285 ip->ip_len = htons(ntohs(ip->ip_len) + sizeof(struct ip) - msiz);
|
H A D | ip_input.c | 406 ip_len = ntohs(ip->ip_len); 472 ip_len = ntohs(ip->ip_len); 914 ip->ip_len = htons(ntohs(ip->ip_len) - hlen); 920 if (ip->ip_len == htons(0) || (ntohs(ip->ip_len) & 0x7) != 0) { 927 ip->ip_off = htons(ntohs(ip->ip_off) << 3); 999 if (ntohs(GETIP(q)->ip_off) > ntohs(ip->ip_off)) 1012 i = ntohs(GETIP(p)->ip_off) + ntohs(GETIP(p)->ip_len) - 1013 ntohs(i [all...] |
/freebsd-10.0-release/usr.sbin/ypserv/ |
H A D | yp_access.c | 244 ntohs(rqhost->sin_port)); 255 ntohs(rqhost->sin_port)); 267 ntohs(rqhost->sin_port) >= IPPORT_RESERVED) { 269 not privileged", map, inet_ntoa(rqhost->sin_addr), ntohs(rqhost->sin_port)); 306 ntohs(rqhost->sin_port),
|
/freebsd-10.0-release/cddl/lib/libdtrace/ |
H A D | ip.d | 229 ntohs(((struct ip *)p)->ip_len) - (((struct ip *)p)->ip_hl << 2): 230 ntohs(((struct ip6_hdr *)p)->ip6_ctlun.ip6_un1.ip6_un1_plen); 256 ipv4_length = p == NULL ? 0 : ntohs(p->ip_len); 257 ipv4_ident = p == NULL ? 0 : ntohs(p->ip_id); 263 ipv4_checksum = p == NULL ? 0 : ntohs(p->ip_sum); 276 ipv6_plen = p == NULL ? 0 : ntohs(p->ip6_ctlun.ip6_un1.ip6_un1_plen);
|
/freebsd-10.0-release/contrib/ipfilter/samples/ |
H A D | proxy.c | 118 inet_ntoa(natlook.nl_realip), ntohs(natlook.nl_realport)); 120 inet_ntoa(natlook.nl_realip), ntohs(natlook.nl_realport)); 180 printf("local port# to use: %d\n", ntohs(usin.sin_port)); 186 sum1 = LONG_SUM(ntohl(usin.sin_addr.s_addr)) + ntohs(usin.sin_port); 187 sum2 = LONG_SUM(ntohl(nat->nat_outip.s_addr)) + ntohs(nlp->nl_outport); 221 ntohs(usin.sin_port));
|
/freebsd-10.0-release/sys/netatalk/ |
H A D | ddp_input.c | 261 if (((ntohs(to.sat_addr.s_net) < 262 ntohs(aa->aa_firstnet)) || 263 (ntohs(to.sat_addr.s_net) > 264 ntohs(aa->aa_lastnet))) && 265 ((ntohs(to.sat_addr.s_net) < 0xff00) || 266 (ntohs(to.sat_addr.s_net) > 0xfffe)))
|