Searched refs:ntohs (Results 126 - 150 of 577) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/netinet/libalias/
H A Dalias_util.c115 ntcp = ntohs(pip->ip_len) - nhdr;
/freebsd-11-stable/tools/tools/net80211/w00t/redir/
H A Dbuddy.c76 printf("Got %d bytes [%d]\n", len, ntohs(id));
/freebsd-11-stable/usr.sbin/trpt/
H A Dtrpt.c355 ntohs(th->th_sport));
363 ntohs(th->th_dport));
377 len = ntohs(len);
378 win = ntohs(win);
/freebsd-11-stable/contrib/amd/amd/
H A Dnfs_prot_svc.c124 ntohs(sinp->sin_port) >= IPPORT_RESERVED &&
128 ntohs(sinp->sin_port));
138 ntohs(sinp->sin_port));
143 ntohs(sinp->sin_port),
/freebsd-11-stable/contrib/tcpdump/
H A Din_cksum.c196 shouldbe += ntohs(computed_sum);
H A Dprint-nflog.c52 ND_PRINT((ndo, "version %d, resource ID %d", hdr->nflog_version, ntohs(hdr->nflog_rid)));
H A Dextract.h86 * instructions to do an unaligned load and pass stuff to "ntohs()" or
90 * Alpha machines, where "ntohs()" and "ntohl()" might not be done
134 return ((uint16_t)ntohs(((const unaligned_uint16_t *)(p))->val));
184 return ((uint16_t)ntohs(*(const uint16_t *)(p)));
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_connect.c92 ATF_REQUIRE(ntohs(sin.sin_port) <= IPPORT_RESERVEDMAX);
/freebsd-11-stable/contrib/wpa/src/ap/
H A Ddhcp_snoop.c49 tot_len = ntohs(b->iph.tot_len);
/freebsd-11-stable/sys/netpfil/pf/
H A Dpf_norm.c560 frent->fe_len = ntohs(ip->ip_len) - (ip->ip_hl << 2);
561 frent->fe_off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3;
562 frent->fe_mff = ntohs(ip->ip_off) & IP_MF;
605 DPFPRINTF(("complete: %p(%d)\n", m, ntohs(ip->ip_len)));
637 frent->fe_len = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - hdrlen;
638 frent->fe_off = ntohs(fraghdr->ip6f_offlg & IP6F_OFF_MASK);
724 DPFPRINTF(("complete: %p(%d)", m, ntohs(ip6->ip6_plen)));
820 int mff = (ntohs(h->ip_off) & IP_MF);
822 u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3;
870 if (hlen > ntohs(
[all...]
/freebsd-11-stable/libexec/tftpd/
H A Dtftp-io.c116 packettype(ntohs(((struct tftphdr *)
122 packettype(ntohs(((struct tftphdr *)(pkt))->th_opcode)),
440 pkt->th_opcode = ntohs((u_short)pkt->th_opcode);
443 pkt->th_block = ntohs((u_short)pkt->th_block);
/freebsd-11-stable/sbin/ping6/
H A Dping6.c966 src.sin6_port = ntohs(DUMMY_PORT);
1288 *(u_int16_t *)nip->icmp6_ni_nonce = ntohs(seq);
1303 *(u_int16_t *)nip->icmp6_ni_nonce = ntohs(seq);
1315 *(u_int16_t *)nip->icmp6_ni_nonce = ntohs(seq);
1330 *(u_int16_t *)nip->icmp6_ni_nonce = ntohs(seq);
1337 icp->icmp6_seq = ntohs(seq);
1379 if (ntohs(icp->icmp6_id) == ident)
1518 seq = ntohs(icp->icmp6_seq);
1587 seq = ntohs(*(u_int16_t *)ni->icmp6_ni_nonce);
1603 switch (ntohs(n
[all...]
/freebsd-11-stable/contrib/traceroute/
H A Dtraceroute.c1315 Printf(" %04x", ntohs(*sp++));
1427 pmtu = ntohs(icp->icmp_nextmtu);
1429 pmtu = ntohs(((struct my_pmtu *)&icp->icmp_void)->ipm_nextmtu);
1509 return (ntohs(udp->uh_sport) == ident + (fixedPort ? seq : 0) &&
1510 ntohs(udp->uh_dport) == port + (fixedPort ? 0 : seq));
1535 return (ntohs(udp->uh_sport) == ident + (fixedPort ? seq : 0) &&
1536 ntohs(udp->uh_dport) == port + (fixedPort ? 0 : seq));
1561 return (ntohs(tcp->th_sport) == ident
1562 && ntohs(tcp->th_dport) == port + (fixedPort ? 0 : seq)
1646 if (ntohs(sct
[all...]
/freebsd-11-stable/contrib/sendmail/contrib/
H A Dbitdomain.c273 for (qdcount = ntohs(hp->qdcount); qdcount--; ap += ret + QFIXEDSZ)
281 for (ancount = ntohs(hp->ancount); --ancount >= 0 && ap < eom; ap += n)
/freebsd-11-stable/lib/libsdp/
H A Dservice.c219 pdu->tid = ntohs(pdu->tid);
220 pdu->len = ntohs(pdu->len);
/freebsd-11-stable/libexec/bootpd/tools/bootptest/
H A Dprint-bootp.c125 printf(" secs:%d", ntohs(bp->bp_secs));
328 printf("%d", ntohs(us));
/freebsd-11-stable/libexec/talkd/
H A Dprocess.c77 mp->addr.sa_family = ntohs(mp->addr.sa_family);
84 mp->ctl_addr.sa_family = ntohs(mp->ctl_addr.sa_family);
/freebsd-11-stable/usr.sbin/rpcbind/
H A Dsecurity.c142 (ntohs(sin->sin_port) < IPPORT_RESERVED));
149 (ntohs(sin6->sin6_port) < IPV6PORT_RESERVED));
/freebsd-11-stable/contrib/ofed/infiniband-diags/src/
H A Dsmpdump.c301 ntohs(smp->status));
313 fprintf(stdout, "SMP status: 0x%x\n", ntohs(smp->status));
/freebsd-11-stable/sys/netpfil/ipfw/pmod/
H A Dtcpmod.c101 if (ntohs(oldmss) <= ntohs(mss))
/freebsd-11-stable/lib/libnetbsd/
H A Dsockaddr_snprintf.c148 p = ntohs(sin4->sin_port);
154 p = ntohs(sin6->sin6_port);
/freebsd-11-stable/stand/libsa/
H A Dbootparam.c181 inet_ntoa(bp_server_addr), ntohs(bp_server_port)));
187 (int)ntohs(bp_server_port));
/freebsd-11-stable/usr.sbin/ctld/
H A Disns.c189 be32enc(&buf, ntohs(in4->sin_port));
194 be32enc(&buf, ntohs(in6->sin6_port));
/freebsd-11-stable/usr.sbin/iscsid/
H A Ddiscovery.c109 if (ntohs(bhslr->bhslr_response) != BHSLR_RESPONSE_CLOSED_SUCCESSFULLY)
111 ntohs(bhslr->bhslr_response));
/freebsd-11-stable/usr.sbin/pkg/
H A Ddns_utils.c130 qdcount = ntohs(q.hdr.qdcount);
131 ancount = ntohs(q.hdr.ancount);

Completed in 151 milliseconds

1234567891011>>