Searched refs:htons (Results 151 - 175 of 608) sorted by relevance

1234567891011>>

/freebsd-10.0-release/sys/netinet/
H A Dsctp_asconf.c91 aph->ph.param_type = htons(SCTP_SUCCESS_REPORT);
94 aph->ph.param_length = htons(aph->ph.param_length);
121 aph->ph.param_type = htons(SCTP_ERROR_CAUSE_IND);
122 error->code = htons(cause);
139 error->length = htons(error->length);
140 aph->ph.param_length = htons(aph->ph.param_length);
799 ack_cp->ch.chunk_length = htons(ack_cp->ch.chunk_length);
1564 if (htons(eh->length) + sizeof(struct sctp_error_cause) >
1565 htons(aph->ph.param_length)) {
1571 if (htons(p
[all...]
H A Dip_input.c738 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) {
914 ip->ip_len = htons(ntohs(ip->ip_len) - hlen);
915 if (ip->ip_off & htons(IP_MF)) {
920 if (ip->ip_len == htons(0) || (ntohs(ip->ip_len) & 0x7) != 0) {
927 ip->ip_off = htons(ntohs(ip->ip_off) << 3);
1019 ip->ip_off = htons(ntohs(ip->ip_off) + i);
1020 ip->ip_len = htons(ntohs(ip->ip_len) - i);
1038 GETIP(q)->ip_len = htons(ntohs(GETIP(q)->ip_len) - i);
1039 GETIP(q)->ip_off = htons(ntohs(GETIP(q)->ip_off) + i);
1126 ip->ip_len = htons((i
[all...]
/freebsd-10.0-release/contrib/ipfilter/iplang/
H A Diplang_y.y646 return htons(atoi(name));
878 ip->ip_id = htons(id++);
918 ip->ip_off = htons(strtol(*arg, NULL, 0));
969 ip->ip_id = htons(strtol(*arg, NULL, 0));
1007 tcp->th_win = htons(4096);
1086 tcp->th_urp = htons(strtol(*arg, NULL, 0));
1095 tcp->th_win = htons(strtol(*arg, NULL, 0));
1312 ip->ip_len = htons(ip->ip_len);
1561 icmp->icmp_id = htons(arg);
1568 icmp->icmp_seq = htons(ar
[all...]
/freebsd-10.0-release/contrib/ipfilter/
H A Dip_msnrpc_pxy.c302 tcp2->th_win = htons(8192);
304 fi.fin_data[0] = htons(mri->mri_rport);
/freebsd-10.0-release/contrib/ipfilter/tools/
H A Dipsyncs.c101 sin.sin_port = htons(atoi(argv[2]));
103 sin.sin_port = htons(43434);
/freebsd-10.0-release/contrib/ofed/libmlx4/src/
H A Dsrq.c58 next->next_wqe_index = htons(ind);
163 next->next_wqe_index = htons((i + 1) & (srq->max - 1));
/freebsd-10.0-release/contrib/unbound/iterator/
H A Diter_priv.c232 sa.sin_port = (in_port_t)htons(UNBOUND_DNS_PORT);
249 sa.sin6_port = (in_port_t)htons(UNBOUND_DNS_PORT);
/freebsd-10.0-release/crypto/heimdal/lib/roken/
H A Droken_gethostby.c73 dns_addr.sin_port = htons(proxy_port);
79 dns_addr.sin_port = htons(dns_port);
/freebsd-10.0-release/lib/libstand/
H A Dbootparam.c162 d->myport = htons(--rpc_port);
281 d->myport = htons(--rpc_port);
/freebsd-10.0-release/sys/dev/ep/
H A Dif_ep_isa.c209 isa_id = (htons(data) << 16);
211 isa_id |= htons(data);
/freebsd-10.0-release/sys/netinet6/
H A Dscope6.c357 sin6->sin6_addr.s6_addr16[1] = htons(zoneid & 0xffff);
435 in6->s6_addr16[1] = htons(zoneid & 0xffff); /* XXX */
/freebsd-10.0-release/sys/netipsec/
H A Dipsec_output.c115 mtod(m, struct ip *)->ip_len = htons(m->m_pkthdr.len);
131 htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
238 udp->uh_sport = htons(UDP_ENCAP_ESPINUDP_PORT);
244 udp->uh_ulen = htons(m->m_pkthdr.len - hlen);
245 ip->ip_len = htons(m->m_pkthdr.len);
505 ip->ip_len = htons(m->m_pkthdr.len);
550 ip->ip_off = htons(ip->ip_off);
757 ip6->ip6_plen = htons(plen);
/freebsd-10.0-release/sys/netpfil/pf/
H A Dpf_lb.c254 key.port[1] = htons(low);
256 *nport = htons(low);
271 key.port[1] = htons(tmp);
274 *nport = htons(tmp);
279 key.port[1] = htons(tmp);
282 *nport = htons(tmp);
649 *nport = htons((uint16_t)tmp_nport);
651 *nport = htons(r->rpool.proxy_port[0]);
/freebsd-10.0-release/sys/ofed/drivers/infiniband/core/
H A Dsysfs.c277 htons(raw[0]), htons(raw[1]), htons(raw[2]), htons(raw[3]),
278 htons(raw[4]), htons(raw[5]), htons(raw[6]), htons(raw[7]));
/freebsd-10.0-release/sys/ofed/drivers/net/mlx4/
H A Den_frag.c94 iph->ip_len = htons(session->total_len);
95 iph->ip_off = htons(more | (session->offset >> 3));
/freebsd-10.0-release/tools/regression/netinet/ipbroadcast/
H A Dipbroadcast.c274 laddr.sin_port = htons(portno);
287 dsin.sin_port = htons(portno);
/freebsd-10.0-release/tools/regression/sockets/sigpipe/
H A Dsigpipe.c201 sin.sin_port = htons(port);
232 sin.sin_port = htons(port);
/freebsd-10.0-release/tools/test/netfibs/
H A Dreflect.c178 from.sin6_port = htons(port); /* This only gives us a ::1:port ::1:port binding */
227 sin6.sin6_port = htons(port);
/freebsd-10.0-release/usr.sbin/bluetooth/sdpd/
H A Dsar.c288 pdu.len = htons(sizeof(bcount) + bcount + 1 + cs[0]);
290 bcount = htons(bcount);
/freebsd-10.0-release/usr.sbin/nfscbd/
H A Dnfscbd.c227 inetaddr.sin_port = htons(myport);
266 inetaddr.sin_port = htons(myport);
/freebsd-10.0-release/usr.sbin/ypbind/
H A Dyp_ping.c123 address->sin_port = htons(PMAPPORT);
239 sin.sin_port = htons(__pmap_getport(&sin, YPPROG,
/freebsd-10.0-release/sbin/routed/rtquery/
H A Drtquery.c345 myaddr.sin_port = htons(IPPORT_RESERVED-1);
352 myaddr.sin_port = htons(ntohs(myaddr.sin_port)-1);
402 NA0.au.a_md5.md5_pkt_len = htons(cc);
404 NA2.a_type = htons(1);
529 router.sin_port = htons(RIP_PORT);
/freebsd-10.0-release/sys/contrib/ipfilter/netinet/
H A Dip_tftp_pxy.c244 ipn->in_odport = htons(fin->fin_sport);
245 ipn->in_ndport = htons(fin->fin_sport);
318 udp.uh_ulen = htons(sizeof(udp));
340 ip->ip_len = htons(fin->fin_hlen + sizeof(udp));
348 ip6->ip6_plen = htons(sizeof(udp));
H A Dip_nat6.c492 sport = htons(fin->fin_data[0]);
493 dport = htons(fin->fin_data[1]);
569 port = htons(port);
625 port = htons(port);
641 port = htons(port);
772 sport = htons(fin->fin_data[0]);
773 dport = htons(fin->fin_data[1]);
870 nport = htons(nport);
872 nport = htons(np->in_dpnext);
1777 tcp->th_sport = htons(sum
[all...]
/freebsd-10.0-release/contrib/libpcap/
H A Dpcap-linux.c897 sock_fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
1525 hdrp->sll_hatype = htons(from.sll_hatype);
1526 hdrp->sll_halen = htons(from.sll_halen);
1564 tag->vlan_tpid = htons(ETH_P_8021Q);
1565 tag->vlan_tci = htons(aux->tp_vlan_tci);
2432 return htons(LINUX_SLL_HOST);
2435 return htons(LINUX_SLL_BROADCAST);
2438 return htons(LINUX_SLL_MULTICAST);
2441 return htons(LINUX_SLL_OTHERHOST);
2444 return htons(LINUX_SLL_OUTGOIN
[all...]

Completed in 365 milliseconds

1234567891011>>