Searched refs:htons (Results 351 - 375 of 608) sorted by relevance

<<11121314151617181920>>

/freebsd-10.0-release/crypto/heimdal/lib/roken/
H A Dgetaddrinfo.c94 *port = htons(strtol (servname, &endstr, 10));
/freebsd-10.0-release/lib/libradius/
H A Dradlib.c418 srvp->addr.sin_port = htons((u_short)port);
425 sent->s_port : htons(RADIUS_PORT);
429 sent->s_port : htons(RADACCT_PORT);
972 sin.sin_port = htons(0);
/freebsd-10.0-release/lib/libstand/
H A Drpc.c133 d->destport = htons(port);
/freebsd-10.0-release/release/picobsd/tinyware/simple_httpd/
H A Dsimple_httpd.c116 server.sin_port = htons(http_port);
/freebsd-10.0-release/sys/dev/qlxge/
H A Dqls_isr.c177 if (eh->evl_encap_proto == htons(ETHERTYPE_VLAN)) {
/freebsd-10.0-release/sys/netgraph/
H A Dng_l2tp.c619 conf->ns = htons(conf->ns);
620 conf->nr = htons(conf->nr);
621 conf->rack = htons(conf->rack);
622 conf->xack = htons(conf->xack);
/freebsd-10.0-release/sys/netinet/libalias/
H A Dalias_skinny.c288 htons((u_short) opnrcvch_ack->port), 0,
/freebsd-10.0-release/sys/netinet/
H A Dsctp_timer.c161 ph->param_type = htons(SCTP_CAUSE_PROTOCOL_VIOLATION);
162 ph->param_length = htons(SCTP_BUF_LEN(oper));
1065 ph->param_type = htons(SCTP_CAUSE_PROTOCOL_VIOLATION);
1066 ph->param_length = htons(SCTP_BUF_LEN(oper));
H A Dip_icmp.c237 if (oip->ip_off & htons(~(IP_MF|IP_DF)))
320 icp->icmp_nextmtu = htons(mtu);
345 nip->ip_len = htons(m->m_len);
/freebsd-10.0-release/sys/netipsec/
H A Dipsec.c608 if (ip->ip_off & htons(IP_MF | IP_OFFMASK))
620 if (ih.ip_off & htons(IP_MF | IP_OFFMASK))
763 htons((uint16_t)ih.icmp6_type);
765 htons((uint16_t)ih.icmp6_code);
/freebsd-10.0-release/sys/netipx/
H A Dipx_pcb.c146 lport = htons(ipxpcb_lport_cache);
/freebsd-10.0-release/tools/tools/netrate/tcpp/
H A Dtcpp_client.c250 remoteip.sin_port = htons(rflag + workernum);
/freebsd-10.0-release/usr.sbin/ppp/
H A Dudp.c218 dev->sock.sin_port = htons(atoi(port));
/freebsd-10.0-release/usr.sbin/timed/timedc/
H A Dcmds.c520 sin.sin_port = htons((u_short)port);
/freebsd-10.0-release/contrib/bsnmp/snmpd/
H A Dtrap.c126 sa.sin_port = htons(t->index.subs[4]);
735 sa.sin_port = htons(addrs->address[4]) << 8 |
736 htons(addrs->address[5]) << 0;
/freebsd-10.0-release/contrib/ldns/
H A Dstr2host.c43 *r = htons((uint16_t)strtol((char *)shortstr, &end, 10));
709 type = htons(ldns_get_rr_type_by_name(str));
720 klass = htons(ldns_get_rr_class_by_name(str));
/freebsd-10.0-release/contrib/libpcap/
H A Dpcap-dag.c423 sunatm->vci = htons((rawatm >> 4) & 0xffff);
426 ((sunatm->vpi == 0 && sunatm->vci == htons(5)) ? 6 :
427 ((sunatm->vpi == 0 && sunatm->vci == htons(16)) ? 5 :
/freebsd-10.0-release/contrib/unbound/iterator/
H A Diter_utils.c748 if(rep->rrsets[i]->rk.type == htons(LDNS_RR_TYPE_NS)) {
788 neg->rk.type = htons(qinfo->qtype);
789 neg->rk.rrset_class = htons(qinfo->qclass);
/freebsd-10.0-release/contrib/unbound/services/cache/
H A Ddns.c481 if(r->an_numrrsets > 0 && (r->rrsets[0]->rk.type == htons(
482 LDNS_RR_TYPE_CNAME) || r->rrsets[0]->rk.type == htons(
592 ck->rk.type = htons(LDNS_RR_TYPE_CNAME);
/freebsd-10.0-release/contrib/wpa/wpa_supplicant/
H A Deapol_test.c566 hdr->length = htons(5);
571 eap->length = htons(5);
687 dot1x->length = htons(wpabuf_len(eap));
/freebsd-10.0-release/lib/libfetch/
H A Dftp.c746 sin6->sin6_port = htons(port);
755 sin4->sin_port = htons(port);
837 htons(sin6->sin6_port));
/freebsd-10.0-release/sbin/routed/
H A Doutput.c113 osin.sin_port = htons(RIP_PORT);
293 na2->a_type = htons(1);
294 na->au.a_md5.md5_pkt_len = htons(len);
/freebsd-10.0-release/sys/dev/ti/
H A Dif_ti.c1884 CSR_WRITE_4(sc, TI_GCR_MAR0, htons(m[0]));
1885 CSR_WRITE_4(sc, TI_GCR_MAR1, (htons(m[1]) << 16) | htons(m[2]));
1889 ext[0] = htons(m[0]);
1890 ext[1] = (htons(m[1]) << 16) | htons(m[2]);
1910 CSR_WRITE_4(sc, TI_GCR_MAR0, htons(m[0]));
1911 CSR_WRITE_4(sc, TI_GCR_MAR1, (htons(m[1]) << 16) | htons(m[2]));
1915 ext[0] = htons(
[all...]
/freebsd-10.0-release/sys/net80211/
H A Dieee80211_input.c303 !(llc->llc_snap.ether_type == htons(ETHERTYPE_AARP) ||
304 llc->llc_snap.ether_type == htons(ETHERTYPE_IPX))) {
338 eh->ether_type = htons(m->m_pkthdr.len - sizeof(*eh));
/freebsd-10.0-release/sys/netinet6/
H A Dudp6_usrreq.c423 next_hop6->sin6_port ? htons(next_hop6->sin6_port) :
768 udp6->uh_ulen = htons((u_short)plen);
779 ip6->ip6_plen = htons((u_short)plen);

Completed in 205 milliseconds

<<11121314151617181920>>