Searched refs:ntohs (Results 26 - 50 of 577) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/pf/tftp-proxy/
H A Dtftp-proxy.c205 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-11-stable/usr.sbin/bluetooth/sdpcontrol/
H A Dsearch.c134 ntohs(*(uint16_t *)&uuid.b[4]),
135 ntohs(*(uint16_t *)&uuid.b[6]),
136 ntohs(*(uint16_t *)&uuid.b[8]),
137 ntohs(*(uint16_t *)&uuid.b[10]),
195 ntohs(*(uint16_t *)&value.int128.b[4]),
196 ntohs(*(uint16_t *)&value.int128.b[6]),
197 ntohs(*(uint16_t *)&value.int128.b[8]),
198 ntohs(*(uint16_t *)&value.int128.b[10]),
260 ntohs(*(uint16_t *)&value.int128.b[4]),
261 ntohs(*(uint16_
[all...]
/freebsd-11-stable/usr.sbin/ppp/
H A Dtcpmss.c132 if (ntohs(*mss) > maxmss) {
134 ntohs(*mss), maxmss);
163 if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 &&
164 ntohs(pip->ip_len) == plen && hlen <= plen &&
H A Dslcompress.c139 (f) = htons(ntohs(f) + ((cp[1] << 8) | cp[2])); \
142 (f) = htons(ntohs(f) + (u_int32_t)*cp++); \
289 deltaS = ntohs(th->th_urp);
301 deltaS = (u_short) (ntohs(th->th_win) - ntohs(oth->th_win));
334 ntohs(cs->cs_ip.ip_len) == hlen)
350 deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
358 if (deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
366 deltaS = ntohs(ip->ip_id) - ntohs(c
[all...]
H A Dip.c243 datalen = ntohs(pip6->ip6_plen);
259 len = ntohs(pip->ip_off) & IP_OFFMASK; /* fragment offset */
275 datalen = ntohs(pip->ip_len) - (pip->ip_hl << 2);
356 sport = ntohs(uh->uh_sport);
357 dport = ntohs(uh->uh_dport);
374 sport = ntohs(th->th_sport);
375 dport = ntohs(th->th_dport);
507 len = ntohs(uh->uh_ulen) - sizeof *uh;
517 *hptr++ = ntohs(*pktptr); /* Careful of macro side-effects ! */
545 qtype = dns_Qtype2Txt(ntohs(tm
[all...]
/freebsd-11-stable/stand/libsa/
H A Dip.c100 inet_ntoa(d->myip), ntohs(d->myport));
102 inet_ntoa(d->destip), ntohs(d->destport));
162 if ((ntohs(p->ipq_hdr->ip_off) & IP_OFFMASK) <
163 (ntohs(ip->ip_off) & IP_OFFMASK)) {
253 if (n < ntohs(ip->ip_len)) {
257 (int)n, ntohs(ip->ip_len));
274 if ((ntohs(ip->ip_off) & IP_MF) == 0 &&
275 (ntohs(ip->ip_off) & IP_OFFMASK) == 0) {
284 n = (n > (ntohs(ip->ip_len) - sizeof(*ip))) ?
285 ntohs(i
[all...]
/freebsd-11-stable/sys/net/
H A Dif_spppfr.c192 if (ntohs (*(short*) (h+2)) == ETHERTYPE_IP) {
224 proto = ntohs (*(short*) (h+8));
413 if ((ntohs (req->htype) != ARPHRD_FRELAY ||
414 ntohs (req->htype) != 16) || /* for BayNetworks routers */
415 ntohs (req->ptype) != ETHERTYPE_IP) {
419 ntohs (req->htype), ntohs (req->ptype));
429 switch (ntohs (req->op)) {
433 SPP_ARGS(ifp), ntohs (req->op));
441 my_hardware_address = ntohs (re
[all...]
H A Dslcompress.c125 (f) = htons(ntohs(f) + ((cp[1] << 8) | cp[2])); \
128 (f) = htons(ntohs(f) + (u_int32_t)*cp++); \
277 deltaS = ntohs(th->th_urp);
287 deltaS = (u_int16_t)(ntohs(th->th_win) - ntohs(oth->th_win));
321 ntohs(cs->cs_ip.ip_len) == hlen)
336 deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
344 if (deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
352 deltaS = ntohs(ip->ip_id) - ntohs(c
[all...]
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/
H A Dtst.hton.d59 trace(ntohs(0x1122));
/freebsd-11-stable/sbin/dhclient/
H A Dconvert.c75 return (ntohs(ibuf));
84 return (ntohs(ibuf));
/freebsd-11-stable/usr.bin/talk/
H A Dget_iface.c74 local.sin_port = htons(ntohs(local.sin_port) + 1);
84 remote.sin_port = htons(ntohs(remote.sin_port) + 1);
/freebsd-11-stable/cddl/lib/libdtrace/
H A Dip.d229 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);
246 ntohs(((struct ip *)m->m_data)->ip_len) -
248 ntohs(((struct ip6_hdr *)m->m_data)->ip6_ctlun.ip6_un1.ip6_un1_plen);
274 ipv4_length = p == NULL ? 0 : ntohs(p->ip_len);
275 ipv4_ident = p == NULL ? 0 : ntohs(p->ip_id);
276 ipv4_flags = p == NULL ? 0 : (ntohs(p->ip_off) & 0xe000) >> 8;
277 ipv4_offset = p == NULL ? 0 : ntohs(p->ip_off) & 0x1fff;
281 ipv4_checksum = p == NULL ? 0 : ntohs(p->ip_sum);
294 ipv6_plen = p == NULL ? 0 : ntohs(
[all...]
/freebsd-11-stable/sys/netinet/libalias/
H A Dalias_ftp.c115 if (ntohs(*ah->dport) == FTP_CONTROL_PORT_NUMBER ||
116 ntohs(*ah->sport) == FTP_CONTROL_PORT_NUMBER)
127 if (ntohs(*ah->dport) == FTP_CONTROL_PORT_NUMBER ||
128 ntohs(*ah->sport) == FTP_CONTROL_PORT_NUMBER)
237 tlen = ntohs(pip->ip_len);
252 if (ntohs(tc->th_dport) == FTP_CONTROL_PORT_NUMBER) {
279 tlen = ntohs(pip->ip_len); /* recalc tlen, pkt may
301 tlen = ntohs(pip->ip_len);
314 ntohs(tc->th_dport) == FTP_CONTROL_PORT_NUMBER &&
329 tlen = ntohs(pi
[all...]
H A Dalias_cuseeme.c72 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 Dalias_dummy.c77 if (ntohs(*ah->dport) == 123
78 || ntohs(*ah->sport) == 456)
/freebsd-11-stable/libexec/rbootd/
H A Drmpproto.c113 if (ntohs(rmp->r_brq.rmp_session) == RMP_PROBESID) {
424 if (ntohs(req->r_rrq.rmp_session) !=
425 ((rpl->r_type == RMP_BOOT_REPL)? ntohs(rpl->r_brpl.rmp_session):
426 ntohs(rpl->r_rrpl.rmp_session))) {
442 if (ntohs(req->r_rrq.rmp_size) > RMPREADDATA)
461 (int) ntohs(req->r_rrq.rmp_size))) <= 0) {
528 if (ntohs(rconn->rmp.r_rrq.rmp_session) !=
529 ((rpl->r_type == RMP_BOOT_REPL)? ntohs(rpl->r_brpl.rmp_session):
530 ntohs(rpl->r_rrpl.rmp_session))) {
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-isakmp.c1314 ND_PRINT((ndo," key len=%d", ntohs(e.len) - 4));
1315 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
1318 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4))
1321 return (const u_char *)ext + ntohs(e.len);
1391 ND_PRINT((ndo," port=%d", ntohs(doi_id.port)));
1575 ND_PRINT((ndo," len=%d", ntohs(e.len) - 4));
1576 if (2 < ndo->ndo_vflag && 4 < ntohs(e.len)) {
1579 if (!rawprint(ndo, (const uint8_t *)(ext + 1), ntohs(e.len) - 4))
1582 return (const u_char *)ext + ntohs(e.len);
1600 ND_PRINT((ndo," len=%d", ntohs(
[all...]
/freebsd-11-stable/usr.sbin/timed/timed/
H A Dbyteorder.c66 ptr->tsp_seq = ntohs((u_short)ptr->tsp_seq);
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dgetnameinfo.c71 snprintf (serv, servlen, "%u", ntohs(port));
81 snprintf (serv, servlen, "%u", ntohs(port));
/freebsd-11-stable/include/arpa/
H A Dinet.h142 uint16_t ntohs(uint16_t);
173 #define ntohs(x) __ntohs(x) macro
/freebsd-11-stable/sys/i386/include/
H A Din_cksum.h89 __tmpsum = (int)ntohs(ip->ip_sum) + 256;
130 __tmpsum = (int)ntohs(ip->ip_sum) + 256; \
/freebsd-11-stable/share/examples/find_interface/
H A Dfind_interface.c90 local.sin_port = htons(ntohs(local.sin_port) + 1);
98 remote.sin_port = htons(ntohs(remote.sin_port) + 1);
/freebsd-11-stable/sys/dev/qlnx/qlnxe/
H A Decore_tcp_ip.h57 #ifndef ntohs
58 #define ntohs(val) OSAL_BE16_TO_CPU(val) macro
/freebsd-11-stable/usr.sbin/flowctl/
H A Dflowctl.c294 ntohs(fle->r.r_sport),
295 ntohs(fle->r.r_dport),
328 ntohs(fle6->r.r_sport),
329 ntohs(fle6->r.r_dport),
365 ntohs(fle->r.r_sport),
368 ntohs(fle->r.r_dport),
408 ntohs(fle6->r.r_sport),
411 ntohs(fle6->r.r_dport),
/freebsd-11-stable/sys/contrib/ipfilter/netinet/
H A Dip_dns_pxy.c50 #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)

Completed in 156 milliseconds

1234567891011>>