Searched refs:ntohs (Results 176 - 200 of 523) sorted by relevance

1234567891011>>

/freebsd-9.3-release/usr.sbin/rip6query/
H A Drip6query.c167 printf(" tag=0x%x", ntohs(np->rip6_tag));
/freebsd-9.3-release/contrib/ntp/include/
H A Dntp_request.h227 #define INFO_ERR(err_nitems) ((u_short)((ntohs(err_nitems)>>12)&0xf))
228 #define INFO_NITEMS(err_nitems) ((u_short)(ntohs(err_nitems)&0xfff))
232 #define INFO_MBZ(mbz_itemsize) ((ntohs(mbz_itemsize)>>12)&0xf)
233 #define INFO_ITEMSIZE(mbz_itemsize) ((u_short)(ntohs(mbz_itemsize)&0xfff))
/freebsd-9.3-release/contrib/bsnmp/snmp_mibII/
H A DmibII_tcp.c149 oid->index.subs[4] = ntohs(tp->xt_inp.inp_lport);
155 oid->index.subs[9] = ntohs(tp->xt_inp.inp_fport);
/freebsd-9.3-release/contrib/ipfilter/lib/
H A Dipft_tx.c84 return ntohs(sp->s_port);
150 return ntohs(ip->ip_len);
/freebsd-9.3-release/contrib/netcat/
H A Dsocks.c277 host, ntohs(serverport));
281 host, ntohs(serverport));
/freebsd-9.3-release/lib/libncp/
H A Dsap.c130 sap_size(rq->entries, ntohs(rq->buffer->operation)),
283 ntohs(reply->operation) == IPX_SAP_NEAREST_RESPONSE)
/freebsd-9.3-release/lib/libstand/
H A Dstand.h374 extern uint16_t ntohs(uint16_t);
382 #define ntohs(x) __ntohs(x) macro
/freebsd-9.3-release/libexec/bootpd/tools/bootptest/
H A Dbootptest.c246 bootps_port = ntohs((u_short) sep->s_port);
279 bootpc_port = ntohs(sep->s_port);
/freebsd-9.3-release/sys/contrib/ipfilter/netinet/
H A Dip_irc_pxy.c381 if (ntohs(sp) < 1024)
402 fi.fin_data[0] = ntohs(sp);
H A Dip_sync.c177 td->td_maxwin = ntohs(td->td_maxwin);
255 ips->is_sec = ntohs(ips->is_sec);
256 ips->is_secmsk = ntohs(ips->is_secmsk);
257 ips->is_auth = ntohs(ips->is_auth);
258 ips->is_authmsk = ntohs(ips->is_authmsk);
/freebsd-9.3-release/sys/net/
H A Dif_enc.c277 ip->ip_len = ntohs(ip->ip_len);
278 ip->ip_off = ntohs(ip->ip_off);
H A Dif_spppsubr.c563 h->address, h->control, ntohs(h->protocol));
566 switch (ntohs (h->protocol)) {
573 h->address, h->control, ntohs(h->protocol));
693 h->address, h->control, ntohs(h->protocol));
696 switch (ntohs (h->protocol)) {
732 h->address, h->control, ntohs(h->protocol));
882 else if (INTERACTIVE (ntohs (tcp->th_sport)))
884 else if (INTERACTIVE (ntohs (tcp->th_dport)))
1486 ntohs (lh->len));
1519 sppp_cp_type_name (h->type), h->ident, ntohs (
[all...]
/freebsd-9.3-release/usr.bin/procstat/
H A Dprocstat_files.c107 ntohs(sin->sin_port));
115 ntohs(sin6->sin6_port));
/freebsd-9.3-release/usr.sbin/IPXrouted/
H A Dmain.c347 if (ntohs(sipx->sipx_addr.x_port) == IPXPORT_RIP)
349 else if (ntohs(sipx->sipx_addr.x_port) == IPXPORT_SAP)
/freebsd-9.3-release/crypto/heimdal/kdc/
H A Dconnect.c300 krb5_warn(context, errno, "bind %s/%d", a_str, ntohs(port));
310 krb5_warn(context, errno, "listen %s/%d", a_str, ntohs(port));
359 ntohs(ports[i].port),
761 ntohs(d[idx].port));
767 ntohs(d[idx].port));
789 ntohs(d[idx].port));
/freebsd-9.3-release/sys/netipsec/
H A Dipsec_output.c205 ip->ip_len = ntohs(ip->ip_len);
206 ip->ip_off = ntohs(ip->ip_off);
336 ntohs(ip6->ip6_src.s6_addr16[1]);
349 ntohs(ip6->ip6_dst.s6_addr16[1]);
481 setdf = ntohs(ip->ip_off & IP_DF);
542 ip->ip_off = ntohs(ip->ip_off);
/freebsd-9.3-release/sys/dev/ata/
H A Datapi-cd.c975 cdp->toc.hdr.len = ntohs(cdp->toc.hdr.len);
1209 info->data_length = ntohs(info->data_length);
1522 s->length = ntohs(d->length);
1527 s->length = ntohs(d->length);
1648 cdp->cap.data_length = ntohs(cdp->cap.data_length);
1649 cdp->cap.blk_desc_len = ntohs(cdp->cap.blk_desc_len);
1650 cdp->cap.media = ntohs(cdp->cap.media);
1651 cdp->cap.capabilities = ntohs(cdp->cap.capabilities);
1652 cdp->cap.max_read_speed = ntohs(cdp->cap.max_read_speed);
1653 cdp->cap.max_vol_levels = ntohs(cd
[all...]
H A Datapi-tape.c488 stp->cap.max_speed = ntohs(stp->cap.max_speed);
489 stp->cap.max_defects = ntohs(stp->cap.max_defects);
490 stp->cap.ctl = ntohs(stp->cap.ctl);
491 stp->cap.speed = ntohs(stp->cap.speed);
492 stp->cap.buffer_size = ntohs(stp->cap.buffer_size);
/freebsd-9.3-release/sys/netinet/
H A Dsctp_auth.c791 if (ntohs(hmacs->hmac_ids[i]) == SCTP_AUTH_HMAC_ID_SHA1) {
1439 ptype = ntohs(phdr->param_type);
1440 plen = ntohs(phdr->param_length);
1475 ntohs(hmacs->hmac_ids[i]));
1653 chunklen = ntohs(auth->ch.chunk_length);
1661 shared_key_id = ntohs(auth->shared_key_id);
1662 hmac_id = ntohs(auth->hmac_id);
1690 err->hmac_id = ntohs(hmac_id);
1841 ptype = ntohs(phdr->param_type);
1842 plen = ntohs(phd
[all...]
H A Dtcp_subr.c1398 mtu = ntohs(icp->icmp_nextmtu);
2281 sprintf(sp, "]:%i to [", ntohs(inc->inc_fport));
2285 sprintf(sp, "]:%i", ntohs(inc->inc_lport));
2290 sprintf(sp, "]:%i to [", ntohs(inc->inc_fport));
2294 sprintf(sp, "]:%i", ntohs(inc->inc_lport));
2298 sprintf(sp, "]:%i to [", ntohs(th->th_sport));
2302 sprintf(sp, "]:%i", ntohs(th->th_dport));
2308 sprintf(sp, "]:%i to [", ntohs(th->th_sport));
2312 sprintf(sp, "]:%i", ntohs(th->th_dport));
/freebsd-9.3-release/lib/libtacplus/
H A Dtaclib.c97 len = ntohs(len);
1095 if (get_srvr_str(h, "msg", &h->srvr_msg, ntohs(ar->msg_len)) == -1 ||
1096 get_srvr_str(h, "data", &h->srvr_data, ntohs(ar->data_len)) == -1 ||
1155 if (get_srvr_str(h, "msg", &h->srvr_msg, ntohs(ares->msg_len)) == -1 ||
1156 get_srvr_str(h, "data", &h->srvr_data, ntohs(ares->data_len)) ==-1)
1210 if (get_srvr_str(h, "msg", &h->srvr_msg, ntohs(ar->msg_len)) == -1 ||
1211 get_srvr_str(h, "data", &h->srvr_data, ntohs(ar->data_len)) == -1 ||
/freebsd-9.3-release/sbin/natd/
H A Dnatd.c591 bytes = ntohs (ip->ip_len);
749 bytes = ntohs (ip->ip_len);
858 ntohs (tcphdr->th_sport),
860 ntohs (tcphdr->th_dport));
867 ntohs (udphdr->uh_sport),
869 ntohs (udphdr->uh_dport));
1908 SETLOPORT(*portRange, ntohs(sp->s_port));
/freebsd-9.3-release/contrib/ipfilter/tools/
H A Dipmon.c465 port = ntohs(s->s_port);
469 port = ntohs(s->s_port);
556 port = ntohs(port);
1119 plen = hl + ntohs(ip6->ip6_plen);
1182 ntohs(tp->th_win));
1213 i = ntohs(ipc->ip_len);
1220 ipoff = ntohs(ipc->ip_off);
1263 ntohs(ipc->ip_id),
1280 ntohs(ip->ip_id),
/freebsd-9.3-release/libexec/bootpd/
H A Dbootpd.c243 bootps_port = ntohs(bind_addr.sin_port);
446 bootps_port = ntohs((u_short) servp->s_port);
473 bootpc_port = ntohs(servp->s_port);
747 u_int32 t = (u_int32) ntohs(bp->bp_secs);
1290 msgsz = ntohs(msgsz);
/freebsd-9.3-release/contrib/openbsm/libbsm/
H A Dbsm_io.c2217 print_2_bytes(fp, ntohs(tok->tt.ip.len), "%u");
2220 print_2_bytes(fp, ntohs(tok->tt.ip.id), "%u");
2223 print_2_bytes(fp, ntohs(tok->tt.ip.offset), "%u");
2232 print_2_bytes(fp, ntohs(tok->tt.ip.chksm), "%u");
2248 print_2_bytes(fp, ntohs(tok->tt.ip.len), "%u");
2250 print_2_bytes(fp, ntohs(tok->tt.ip.id), "%u");
2252 print_2_bytes(fp, ntohs(tok->tt.ip.offset), "%u");
2258 print_2_bytes(fp, ntohs(tok->tt.ip.chksm), "%u");
2420 print_2_bytes(fp, ntohs(tok->tt.iport.port), "%#x");
2424 print_2_bytes(fp, ntohs(to
[all...]

Completed in 276 milliseconds

1234567891011>>