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

1234567891011>>

/freebsd-9.3-release/contrib/ipfilter/l4check/
H A Dl4check.c106 ipn->in_outmsk, ntohs(ipn->in_pmin));
107 printf("%s,%u\n", inet_ntoa(ipn->in_in[0].in4), ntohs(ipn->in_pnext));
320 ntohs(l4->l4_sin.sin_port), fd);
/freebsd-9.3-release/contrib/wpa/src/wps/
H A Dwps_upnp_ssdp.c410 ntohs(a->client.sin_port));
425 ntohs(a->client.sin_port));
718 "%s", inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), buf);
/freebsd-9.3-release/sbin/ifconfig/
H A Daf_inet6.c174 ntohs(*(u_int16_t *)&sin6->sin6_addr.s6_addr[2]);
228 sin->sin6_scope_id = ntohs(index);
256 sin->sin6_scope_id = ntohs(index);
/freebsd-9.3-release/sys/netgraph/
H A Dng_nat.c742 KASSERT(m->m_pkthdr.len == ntohs(ip->ip_len),
774 m->m_pkthdr.len = m->m_len = ntohs(ip->ip_len);
805 ip->ip_len = ntohs(ip->ip_len);
/freebsd-9.3-release/sys/netinet6/
H A Dfrag6.c211 (((ntohs(ip6->ip6_plen) - offset) & 0x7) != 0)) {
310 fragoff = ntohs(ip6f->ip6f_offlg & IP6F_OFF_MASK);
322 frgpartlen = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - offset;
/freebsd-9.3-release/sys/net/
H A Dif_ethersubr.c210 switch(ntohs(ah->ar_op)) {
601 etype = ntohs(eh->ether_type);
691 m->m_pkthdr.ether_vtag = ntohs(evl->evl_tag);
835 ether_type = ntohs(eh->ether_type);
927 ntohs(l->llc_snap_ether_type) == ETHERTYPE_AT) {
934 ntohs(l->llc_snap_ether_type) == ETHERTYPE_AARP) {
H A Dbridgestp.c270 (((uint64_t)ntohs(cpdu->cbu_rootpri)) << 48) |
279 (((uint64_t)ntohs(cpdu->cbu_bridgepri)) << 48) |
288 cu->cu_message_age = ntohs(cpdu->cbu_messageage);
289 cu->cu_max_age = ntohs(cpdu->cbu_maxage);
290 cu->cu_hello_time = ntohs(cpdu->cbu_hellotime);
291 cu->cu_forward_delay = ntohs(cpdu->cbu_forwarddelay);
292 cu->cu_pv.pv_dport_id = ntohs(cpdu->cbu_portid);
466 len = ntohs(eh->ether_type);
H A Dif_ef.c319 ether_type = ntohs(eh->ether_type);
333 ether_type = ntohs(l->llc_un.type_snap.ether_type);
/freebsd-9.3-release/contrib/ipfilter/lib/
H A Dprintfr.c238 type = ntohs(fp->fr_icmp);
246 if (ntohs(fp->fr_icmpm) & 0xff)
/freebsd-9.3-release/contrib/ofed/management/infiniband-diags/src/
H A Dibroute.c108 mask = ntohs(mft[i][mlid%IB_MLIDS_IN_BLOCK]);
127 mask = ntohs(mft[chunk][mlid%IB_MLIDS_IN_BLOCK]);
/freebsd-9.3-release/contrib/openbsm/bin/auditdistd/
H A Dpjdlog.c116 port = ntohs(sin->sin_port);
132 port = ntohs(sin->sin6_port);
/freebsd-9.3-release/contrib/pf/pfctl/
H A Dpf_print_state.c195 printf(":%u", ntohs(port));
197 printf("[%u]", ntohs(port));
/freebsd-9.3-release/contrib/wpa/src/drivers/
H A Ddriver_wired.c134 switch (ntohs(hdr->ethertype)) {
149 ntohs(hdr->ethertype));
/freebsd-9.3-release/lib/libc/net/
H A Dgetnetbydns.c185 ancount = ntohs(hp->ancount); /* #/records in the answer section */
186 qdcount = ntohs(hp->qdcount); /* #/entries in the question section */
H A Dhesiod.c396 ancount = ntohs(hp->ancount);
397 qdcount = ntohs(hp->qdcount);
/freebsd-9.3-release/sbin/hastd/
H A Dpjdlog.c113 port = ntohs(sin->sin_port);
129 port = ntohs(sin->sin6_port);
/freebsd-9.3-release/sys/netncp/
H A Dncp_sock.c209 sipx.sipx_port = htons(ntohs(sipx.sipx_port) + 1);
216 sipx.sipx_port = htons((ntohs(sipx.sipx_port)+4) & 0xfff8);
/freebsd-9.3-release/sys/ofed/drivers/infiniband/ulp/sdp/
H A Dsdp_cma.c172 ssk->max_bufs = ntohs(h->bsdh.bufs);
204 ssk->max_bufs = ntohs(h->bsdh.bufs);
H A Dsdp_proc.c141 destp = ntohs(inet_sk(sk)->dport);
142 srcp = ntohs(inet_sk(sk)->sport);
/freebsd-9.3-release/tools/regression/lib/libc/nss/
H A Dtest-getserv.c182 serv->s_name, ntohs(serv->s_port), serv->s_proto);
324 if (ntohs(serv->s_port < 0))
/freebsd-9.3-release/usr.sbin/ppp/
H A Dauth.c443 if (len >= ntohs(authp->in.hdr.length))
447 ntohs(authp->in.hdr.length), len);
/freebsd-9.3-release/usr.sbin/ypserv/
H A Dyp_dnslookup.c185 id = ntohs(hptr->id);
379 (q = yp_find_dnsqent(ntohs(hptr->id), BY_DNS_ID)) == NULL) {
/freebsd-9.3-release/contrib/amd/amd/
H A Drpc_fwd.c308 ntohs(fwdto->sin_port));
/freebsd-9.3-release/contrib/bind9/lib/dns/
H A Dtcpmsg.c67 tcpmsg->size = ntohs(tcpmsg->size);
/freebsd-9.3-release/contrib/bind9/lib/irs/
H A Dgetnameinfo.c212 snprintf(numserv, sizeof(numserv), "%d", ntohs(port));

Completed in 151 milliseconds

1234567891011>>