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

1234567891011>>

/freebsd-9.3-release/usr.sbin/ppp/
H A Dtcpmss.c130 if (ntohs(*mss) > maxmss) {
132 ntohs(*mss), maxmss);
161 if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 &&
162 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.c241 datalen = ntohs(pip6->ip6_plen);
257 len = ntohs(pip->ip_off) & IP_OFFMASK; /* fragment offset */
273 datalen = ntohs(pip->ip_len) - (pip->ip_hl << 2);
354 sport = ntohs(uh->uh_sport);
355 dport = ntohs(uh->uh_dport);
372 sport = ntohs(th->th_sport);
373 dport = ntohs(th->th_dport);
505 len = ntohs(uh->uh_ulen) - sizeof *uh;
515 *hptr++ = ntohs(*pktptr); /* Careful of macro side-effects ! */
543 qtype = dns_Qtype2Txt(ntohs(tm
[all...]
/freebsd-9.3-release/sys/net/
H A Dif_spppfr.c197 if (ntohs (*(short*) (h+2)) == ETHERTYPE_IP) {
229 proto = ntohs (*(short*) (h+8));
438 if ((ntohs (req->htype) != ARPHRD_FRELAY ||
439 ntohs (req->htype) != 16) || /* for BayNetworks routers */
440 ntohs (req->ptype) != ETHERTYPE_IP) {
444 ntohs (req->htype), ntohs (req->ptype));
454 switch (ntohs (req->op)) {
458 SPP_ARGS(ifp), ntohs (req->op));
466 my_hardware_address = ntohs (re
[all...]
H A Dslcompress.c127 (f) = htons(ntohs(f) + ((cp[1] << 8) | cp[2])); \
130 (f) = htons(ntohs(f) + (u_int32_t)*cp++); \
282 deltaS = ntohs(th->th_urp);
292 deltaS = (u_int16_t)(ntohs(th->th_win) - ntohs(oth->th_win));
326 ntohs(cs->cs_ip.ip_len) == hlen)
341 deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
349 if (deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
357 deltaS = ntohs(ip->ip_id) - ntohs(c
[all...]
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/
H A Dtst.hton.d59 trace(ntohs(0x1122));
/freebsd-9.3-release/lib/libc/amd64/
H A DSymbol.map38 ntohs;
/freebsd-9.3-release/lib/libc/arm/
H A DSymbol.map30 ntohs;
/freebsd-9.3-release/lib/libc/i386/
H A DSymbol.map32 ntohs;
/freebsd-9.3-release/lib/libc/ia64/
H A DSymbol.map34 ntohs;
/freebsd-9.3-release/lib/libc/mips/
H A DSymbol.map29 ntohs;
/freebsd-9.3-release/lib/libc/powerpc/
H A DSymbol.map35 ntohs;
/freebsd-9.3-release/lib/libc/powerpc64/
H A DSymbol.map35 ntohs;
/freebsd-9.3-release/sbin/dhclient/
H A Dconvert.c75 return (ntohs(ibuf));
84 return (ntohs(ibuf));
H A Dpacket.c70 sum += (u_int16_t)ntohs(*((u_int16_t *)(buf + i)));
147 ip.ip_len = ntohs(ip.ip_len);
160 IPPROTO_UDP + (u_int32_t)ntohs(udp.uh_ulen)))));
212 if (ntohs(ip->ip_len) != buflen)
214 ntohs(ip->ip_len), buflen);
225 len = ntohs(udp->uh_ulen) - sizeof(*udp);
250 IPPROTO_UDP + (u_int32_t)ntohs(udp->uh_ulen)))));
/freebsd-9.3-release/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-9.3-release/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)
/freebsd-9.3-release/sys/netatalk/
H A Dat_control.c413 ntohs(aa->aa_firstnet), ntohs(aa->aa_lastnet),
450 nnets = ntohs(nr.nr_lastnet) - ntohs(nr.nr_firstnet) + 1;
458 ntohs(sat->sat_addr.s_net), sat->sat_addr.s_node,
459 ntohs(aa->aa_firstnet), ntohs(aa->aa_lastnet),
504 net = ntohs(nr.nr_firstnet) +
507 net = ntohs(nr.nr_firstnet);
514 if (ntohs(sa
[all...]
/freebsd-9.3-release/libexec/rbootd/
H A Drmpproto.c117 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-9.3-release/contrib/tcpdump/
H A Dprint-isakmp.c845 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...]
/freebsd-9.3-release/contrib/ipfilter/lib/
H A Dprintactivenat.c33 printf(" %-5hu", ntohs(nat->nat_inport));
38 printf(" %-5hu", ntohs(nat->nat_outport));
42 printf(" %hu", ntohs(nat->nat_oport));
/freebsd-9.3-release/sys/netipx/
H A Dspx_debug.c145 seq = ntohs(seq);
146 ack = ntohs(ack);
147 alo = ntohs(alo);
148 len = ntohs(len);
/freebsd-9.3-release/usr.sbin/IPXrouted/
H A Doutput.c145 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))) {
/freebsd-9.3-release/usr.sbin/timed/timed/
H A Dbyteorder.c68 ptr->tsp_seq = ntohs((u_short)ptr->tsp_seq);

Completed in 289 milliseconds

1234567891011>>