/freebsd-11-stable/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-11-stable/lib/libc/mips/net/ |
H A D | Makefile.inc | 4 SRCS+= htonl.S ntohl.S htons.S ntohs.S
|
H A D | ntohs.S | 35 LEAF(ntohs) 46 END(ntohs)
|
/freebsd-11-stable/sys/netinet/ |
H A D | tcp_seq.h | 48 #define WIN_LT(a,b) (ntohs(a) < ntohs(b)) 49 #define WIN_LEQ(a,b) (ntohs(a) <= ntohs(b)) 50 #define WIN_GT(a,b) (ntohs(a) > ntohs(b)) 51 #define WIN_GEQ(a,b) (ntohs(a) >= ntohs(b))
|
H A D | ip_reass.c | 213 ip->ip_len = htons(ntohs(ip->ip_len) - hlen); 220 ((ip->ip_off & htons(IP_MF)) && (ntohs(ip->ip_len) & 0x7) != 0)) { 230 ip->ip_off = htons(ntohs(ip->ip_off) << 3); 299 fp->ipq_maxoff = ntohs(ip->ip_off) + ntohs(ip->ip_len); 309 i = ntohs(ip->ip_off) + ntohs(ip->ip_len); 317 fp->ipq_maxoff = ntohs(ip->ip_off) + ntohs(ip->ip_len); 347 if (ntohs(GETI [all...] |
/freebsd-11-stable/cddl/lib/libdtrace/ |
H A D | udp.d | 57 udps_lport = p == NULL ? 0 : ntohs(p->inp_inc.inc_ie.ie_lport); 58 udps_rport = p == NULL ? 0 : ntohs(p->inp_inc.inc_ie.ie_fport); 71 udp_sport = p == NULL ? 0 : ntohs(p->uh_sport); 72 udp_dport = p == NULL ? 0 : ntohs(p->uh_dport); 73 udp_length = p == NULL ? 0 : ntohs(p->uh_ulen); 74 udp_checksum = p == NULL ? 0 : ntohs(p->uh_sum);
|
/freebsd-11-stable/tools/tools/netmap/ |
H A D | pkt_hash.c | 155 ntohs(0xFFFD) + seed, 156 ntohs(0xFFFE) + seed); 166 ntohs(tcph->th_sport) + seed, 167 ntohs(tcph->th_dport) + seed); 173 ntohs(udph->uh_sport) + seed, 174 ntohs(udph->uh_dport) + seed); 196 ntohs(0xFFFD) + seed, 197 ntohs(0xFFFE) + seed); 226 ntohs(0xFFFD) + seed, 227 ntohs( [all...] |
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/ |
H A D | ib_iwpm_util.c | 88 ntohs(sockaddr_v4->sin_port), 89 ntohs(sockaddr_v4->sin_port)); 95 ntohs(sockaddr_v6->sin6_port), 96 ntohs(sockaddr_v6->sin6_port));
|
/freebsd-11-stable/stand/libsa/ |
H A D | udp.c | 72 inet_ntoa(d->myip), ntohs(d->myport)); 74 inet_ntoa(d->destip), ntohs(d->destport)); 124 if (n == -1 || n < sizeof(*uh) || n != ntohs(uh->uh_ulen)) { 133 d->myport, ntohs(uh->uh_dport)); 145 n = ntohs(uh->uh_ulen) + sizeof(*ip); 164 if (ntohs(uh->uh_ulen) < sizeof(*uh)) { 168 ntohs(uh->uh_ulen), (int)sizeof(*uh)); 174 n = (n > (ntohs(uh->uh_ulen) - sizeof(*uh))) ? 175 ntohs(uh->uh_ulen) - sizeof(*uh) : n;
|
/freebsd-11-stable/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-11-stable/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-11-stable/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-11-stable/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-11-stable/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-11-stable/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-11-stable/lib/libc/net/ |
H A D | ntoh.c | 56 ntohs(uint16_t ns) function
|
/freebsd-11-stable/libexec/rbootd/ |
H A D | utils.c | 115 rmp->hp_llc.dsap, rmp->hp_llc.ssap, ntohs(rmp->hp_llc.cntrl)); 119 ntohs(rmp->hp_llc.dxsap), ntohs(rmp->hp_llc.sxsap)); 129 if (ntohs(rmp->r_brq.rmp_session) == RMP_PROBESID) { 137 t, ntohs(rmp->r_brq.rmp_session), 138 ntohs(rmp->r_brq.rmp_version)); 148 t, ntohs(rmp->r_brpl.rmp_session), 149 ntohs(rmp->r_brpl.rmp_version)); 156 t, ntohs(rmp->r_rrq.rmp_session)); 158 ntohs(rm [all...] |
/freebsd-11-stable/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) 356 pmax = (char *)uh + ntohs(uh->uh_ulen); 386 ntohs(ndh->source_port)); 407 ntohs(ndh->source_port)); 441 switch (ntohs(q->type)) { 448 printf("\nUnknown Type on Question %0x\n", ntohs(q->type)); 496 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-11-stable/contrib/unbound/iterator/ |
H A D | iter_resptype.c | 79 if(ntohs(s->rk.type) == request->qtype && 80 ntohs(s->rk.rrset_class) == request->qclass && 87 if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME && 126 if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME && 163 ntohs(s->rk.type) == LDNS_RR_TYPE_NS && 164 ntohs(s->rk.rrset_class) == request->qclass && 177 if(ntohs(s->rk.type) == request->qtype && 178 ntohs(s->rk.rrset_class) == request->qclass && 191 if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME && 214 if(ntohs( [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/common/ |
H A D | SocketAddress.cpp | 58 tmp, sizeof(tmp), "%x:%x:%x:%x:%x:%x:%x:%x", ntohs(src16[0]), 59 ntohs(src16[1]), ntohs(src16[2]), ntohs(src16[3]), ntohs(src16[4]), 60 ntohs(src16[5]), ntohs(src16[6]), ntohs(src16[7])); 156 return ntohs(m_socket_addr.sa_ipv4.sin_port); 158 return ntohs(m_socket_add [all...] |