Searched refs:ntohs (Results 201 - 225 of 577) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/apr/network_io/unix/
H A Dsockaddr.c98 sock->local_addr->port = ntohs(sock->local_addr->sa.sin.sin_port);
113 sock->remote_addr->port = ntohs(sock->remote_addr->sa.sin.sin_port);
894 sockaddr->port = ntohs(res->s_port);
901 sockaddr->port = ntohs(se.s_port);
908 sockaddr->port = ntohs(se.s_port);
916 sockaddr->port = ntohs(se->s_port);
/freebsd-11-stable/sys/netinet/
H A Dsctp_auth.c778 if (ntohs(hmacs->hmac_ids[i]) == SCTP_AUTH_HMAC_ID_SHA1) {
1428 ptype = ntohs(phdr->param_type);
1429 plen = ntohs(phdr->param_length);
1465 ntohs(hmacs->hmac_ids[i]));
1646 chunklen = ntohs(auth->ch.chunk_length);
1654 shared_key_id = ntohs(auth->shared_key_id);
1655 hmac_id = ntohs(auth->hmac_id);
1682 cause->hmac_id = ntohs(hmac_id);
1834 ptype = ntohs(phdr->param_type);
1835 plen = ntohs(phd
[all...]
H A Dtcp_lro.c215 cx = ntohs(ip6->ip6_plen);
230 cs = in_addword(ntohs(ip4->ip_len) - sizeof(*ip4),
596 eh_type = ntohs(eh->ether_type);
612 tcp_data_len = ntohs(ip6->ip6_plen);
631 ip_len = ntohs(ip4->ip_len);
H A Dip_output.c258 ip_len = ntohs(ip->ip_len);
259 ip_off = ntohs(ip->ip_off);
746 ip_len = ntohs(ip->ip_len);
747 ip_off = ntohs(ip->ip_off);
913 ip_len = ntohs(ip->ip_len);
H A Dip_options.c491 ip->ip_len = htons(ntohs(ip->ip_len) - olen);
514 if (optlen + ntohs(ip->ip_len) > IP_MAXPACKET) {
547 ip->ip_len = htons(ntohs(ip->ip_len) + optlen);
/freebsd-11-stable/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-11-stable/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-11-stable/contrib/libpcap/
H A Dpcap-rpcap.c284 switch (ntohs(sockaddrin->family))
303 sockaddrout_ipv4->sin_port = ntohs(sockaddrin_ipv4->port);
333 sockaddrout_ipv6->sin6_port = ntohs(sockaddrin_ipv6->port);
1214 pcap_snprintf(portdata, PCAP_BUF_SIZE, "%d", ntohs(startcapreply.portdata));
2387 nif = ntohs(header.value);
2403 findalldevs_if.namelen = ntohs(findalldevs_if.namelen);
2404 findalldevs_if.desclen = ntohs(findalldevs_if.desclen);
2405 findalldevs_if.naddr = ntohs(findalldevs_if.naddr);
2987 *errcode = ntohs(header->value);
/freebsd-11-stable/contrib/ofed/infiniband-diags/src/
H A Dperfquery.c254 portid2str(portid), ALL_PORTS, ntohs(cap_mask), buf);
387 portid2str(portid), ALL_PORTS, ntohs(cap_mask), cap_mask2, buf);
428 ntohs(cap_mask));
445 portid2str(portid), port, ntohs(cap_mask),
450 portid2str(portid), port, ntohs(cap_mask), buf);
/freebsd-11-stable/sys/netipsec/
H A Dkey_debug.c516 ntohs(port->sadb_x_nat_t_port_port));
702 port = ntohs(((const struct sockaddr_in *)sa)->sin_port);
707 port = ntohs(((const struct sockaddr_in6 *)sa)->sin6_port);
834 printf(" natt{ sport=%u dport=%u ", ntohs(natt->sport),
835 ntohs(natt->dport));
/freebsd-11-stable/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);
751 u_int32 t = (u_int32) ntohs(bp->bp_secs);
1294 msgsz = ntohs(msgsz);
/freebsd-11-stable/sys/net/
H A Dif_ethersubr.c177 switch(ntohs(ah->ar_op)) {
452 if (ntohs(eh->ether_type) == ETHERTYPE_VLAN ||
523 etype = ntohs(eh->ether_type);
602 m->m_pkthdr.ether_vtag = ntohs(evl->evl_tag);
817 ether_type = ntohs(eh->ether_type);
/freebsd-11-stable/contrib/sendmail/src/
H A Ddomain.c714 for (qdcount = ntohs((unsigned short) hp->qdcount);
726 ancount = ntohs((unsigned short) hp->ancount);
1485 for (qdcount = ntohs((unsigned short) hp->qdcount);
1493 ntohs((unsigned short) hp->qdcount));
1500 for (ancount = ntohs((unsigned short) hp->ancount);
/freebsd-11-stable/contrib/unbound/util/data/
H A Dmsgparse.c726 siglen = ntohs(siglen);
868 (int)ntohs(dclass))?sldns_lookup_by_id(
869 sldns_rr_classes, (int)ntohs(dclass))->name:
870 "??", (int)ntohs(dclass));
1021 edns->udp_size = ntohs(found->rrset_class);
/freebsd-11-stable/contrib/openbsm/libbsm/
H A Dbsm_io.c2216 print_2_bytes(fp, ntohs(tok->tt.ip.len), "%u");
2219 print_2_bytes(fp, ntohs(tok->tt.ip.id), "%u");
2222 print_2_bytes(fp, ntohs(tok->tt.ip.offset), "%u");
2231 print_2_bytes(fp, ntohs(tok->tt.ip.chksm), "%u");
2247 print_2_bytes(fp, ntohs(tok->tt.ip.len), "%u");
2249 print_2_bytes(fp, ntohs(tok->tt.ip.id), "%u");
2251 print_2_bytes(fp, ntohs(tok->tt.ip.offset), "%u");
2257 print_2_bytes(fp, ntohs(tok->tt.ip.chksm), "%u");
2419 print_2_bytes(fp, ntohs(tok->tt.iport.port), "%#x");
2423 print_2_bytes(fp, ntohs(to
[all...]
/freebsd-11-stable/tools/tools/netmap/
H A Dpkt-gen.c49 #include <arpa/inet.h> /* ntohs */
730 sum += (u_int16_t)ntohs(*((u_int16_t *)(addr + i)));
811 nport = oport = ntohs(udp.uh_sport);
816 nport = ntohs(udp.uh_sport);
847 nport = oport = ntohs(udp.uh_dport);
852 nport = ntohs(udp.uh_dport);
910 naddr = oaddr = ntohs(ip6.ip6_src.s6_addr16[group]);
911 nport = oport = ntohs(udp.uh_sport);
915 naddr = ntohs(ip6.ip6_src.s6_addr16[group]);
916 nport = ntohs(ud
[all...]
/freebsd-11-stable/contrib/ipfilter/l4check/
H A Dl4check.c104 ipn->in_outmsk, ntohs(ipn->in_pmin));
105 printf("%s,%u\n", inet_ntoa(ipn->in_in[0]), ntohs(ipn->in_pnext));
305 ntohs(l4->l4_sin.sin_port), fd);
/freebsd-11-stable/sys/netgraph/
H A Dng_vlan.c464 (*((uint16_t *)resp->data)) = ntohs(priv->encap_proto);
563 vid = EVL_VLANOFTAG(ntohs(evl->evl_tag));
583 m->m_pkthdr.ether_vtag = ntohs(evl->evl_tag);
H A Dng_patch.c410 val.v2 = ntohs(val.v2);
595 etype = ntohs(eh->ether_type);
606 etype = ntohs(vh->etype);
/freebsd-11-stable/contrib/wpa/src/wps/
H A Dwps_upnp_ssdp.c399 ntohs(a->client.sin_port));
414 ntohs(a->client.sin_port));
712 "%s", inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), buf);
/freebsd-11-stable/contrib/unbound/dnstap/
H A Ddnstap.c324 *port = ntohs(s->sin6_port);
339 *port = ntohs(s->sin_port);
482 qflags = ntohs(qflags);
/freebsd-11-stable/sys/contrib/ipfilter/netinet/
H A Dip_pptp_pxy.c355 len = ntohs(hdr->pptph_len);
415 switch (ntohs(hdr->pptph_type))
450 switch (ntohs(buffer[4]))
/freebsd-11-stable/contrib/unbound/validator/
H A Dval_sigcrypt.c116 return ntohs(t);
156 f = ntohs(f);
237 return ntohs(t);
802 uint16_t type = ntohs(rrset->rk.type);
963 switch(ntohs(rrset->rk.type)) {
1189 if(ntohs(k->rk.type) == LDNS_RR_TYPE_NSEC &&
/freebsd-11-stable/contrib/unbound/respip/
H A Drespip.c616 uint16_t rtype = ntohs(rep->rrsets[i]->rk.type);
723 dataqinfo.qtype = ntohs(rep->rrsets[rrset_id]->rk.type);
724 dataqinfo.qclass = ntohs(rep->rrsets[rrset_id]->rk.rrset_class);
1042 redirect_rrset->rk.type == ntohs(LDNS_RR_TYPE_CNAME) &&
1318 ntohs(((struct sockaddr_in*)&repinfo->addr)->sin_port) :
1319 ntohs(((struct sockaddr_in6*)&repinfo->addr)->sin6_port));
/freebsd-11-stable/contrib/ipfilter/lib/
H A Dprintfr.c191 type = ntohs(fp->fr_icmp);
199 if (ntohs(fp->fr_icmpm) & 0xff)

Completed in 291 milliseconds

1234567891011>>