Searched refs:htons (Results 76 - 100 of 608) sorted by relevance

1234567891011>>

/freebsd-10.0-release/lib/libc/rpc/
H A Dpmap_getport.c83 address->sin_port = htons(PMAPPORT);
/freebsd-10.0-release/lib/libcrypt/
H A Dcrypt-nthash.c67 unipw[unipwLen++] = htons(*s << 8);
/freebsd-10.0-release/lib/libipx/
H A Dipx_ntoa.c50 u_short port = htons(addr.x_port);
/freebsd-10.0-release/lib/libstand/
H A Dudp.c92 ip->ip_len = htons(len);
101 uh->uh_ulen = htons(len - sizeof(*ip));
166 if (ah->ar_op == htons(ARPOP_REQUEST)) {
221 ip->ip_len = htons(sizeof(*ip));
/freebsd-10.0-release/tools/regression/file/newfileops_on_fork/
H A Dnewfileops_on_fork.c111 sin.sin_port = htons(PORT);
/freebsd-10.0-release/tools/regression/netinet/udpconnectjail/
H A Dudpconnectjail.c89 sin.sin_port = htons(8080); /* Arbitrary */
/freebsd-10.0-release/tools/regression/sockets/zerosend/
H A Dzerosend.c87 sin.sin_port = htons(PORT1);
94 sin.sin_port = htons(PORT2);
105 sin.sin_port = htons(PORT1);
130 sin.sin_port = htons(PORT1);
/freebsd-10.0-release/tools/tools/netrate/tcpreceive/
H A Dtcpreceive.c101 sin.sin_port = htons(PORT);
/freebsd-10.0-release/usr.bin/talk/
H A Dlook_up.c63 msg.ctl_addr.sa_family = htons(ctl_addr.sin_family);
/freebsd-10.0-release/usr.sbin/ppp/
H A Dua.h33 # define ua_htons(src, tgt) (*(u_int16_t *)(tgt) = htons(*(u_int16_t *)(src)))
/freebsd-10.0-release/contrib/ntp/libisc/
H A Dsockaddr.c290 sockaddr->type.sin.sin_port = htons(port);
319 sockaddr->type.sin6.sin6_port = htons(port);
336 sockaddr->type.sin6.sin6_port = htons(port);
382 sockaddr->type.sin.sin_port = htons(port);
393 sockaddr->type.sin6.sin6_port = htons(port);
405 sockaddr->type.sin.sin_port = htons(port);
408 sockaddr->type.sin6.sin6_port = htons(port);
/freebsd-10.0-release/sys/net/
H A Dif_spppfr.c368 *(short*) (h+8) = htons(type);
521 *(short*) (h+8) = htons (ETHERTYPE_ARP);
523 reply->htype = htons (ARPHRD_FRELAY);
524 reply->ptype = htons (ETHERTYPE_IP);
527 reply->op = htons (ARPOP_INVREPLY);
528 reply->hsource = htons (my_hardware_address);
531 reply->htarget = htons (his_hardware_address);
H A Dif_fddisubr.c147 type = htons(ETHERTYPE_IP);
154 ah->ar_hrd = htons(ARPHRD_ETHER);
161 type = htons(ETHERTYPE_REVARP);
166 type = htons(ETHERTYPE_ARP);
183 type = htons(ETHERTYPE_IPV6);
188 type = htons(ETHERTYPE_IPX);
216 llc.llc_snap.ether_type = htons(ETHERTYPE_AT);
220 type = htons(ETHERTYPE_AT);
302 l->llc_snap.ether_type = htons(type);
H A Dif_ethersubr.c209 type = htons(ETHERTYPE_IP);
215 ah->ar_hrd = htons(ARPHRD_ETHER);
222 type = htons(ETHERTYPE_REVARP);
227 type = htons(ETHERTYPE_ARP);
247 type = htons(ETHERTYPE_IPV6);
257 type = htons(ETHERTYPE_IPX);
286 llc.llc_snap_ether_type = htons( ETHERTYPE_AT );
288 type = htons(m->m_pkthdr.len);
292 type = htons(ETHERTYPE_AT);
1264 vlan.evl_encap_proto = htons(ETHERTYPE_VLA
[all...]
/freebsd-10.0-release/sys/contrib/ipfilter/netinet/
H A Dip_raudio_pxy.c297 tcp2->th_win = htons(8192);
299 ip->ip_len = htons(fin->fin_hlen + sizeof(*tcp));
305 tcp2->th_sport = htons(sp);
306 tcp2->th_dport = htons(dp);
328 tcp2->th_sport = htons(sp);
/freebsd-10.0-release/contrib/traceroute/
H A Dtraceroute.c719 outip->ip_len = htons(packlen);
720 outip->ip_off = htons(off);
1189 outip->ip_id = htons(ident + seq);
1359 icmpheader->icmp_id = htons(ident);
1360 icmpheader->icmp_seq = htons(outdata->seq);
1372 return (icmpheader->icmp_id == htons(ident)
1373 && icmpheader->icmp_seq == htons(seq));
1381 outudp->uh_sport = htons(ident + (fixedPort ? outdata->seq : 0));
1382 outudp->uh_dport = htons(port + (fixedPort ? 0 : outdata->seq));
1383 outudp->uh_ulen = htons((u_shor
[all...]
/freebsd-10.0-release/sys/netinet/libalias/
H A Dalias_smedia.c309 sport = htons(p[0]);
310 eport = htons(p[1]);
341 htons(base_port + j), htons(base_alias + j),
361 ealias = htons(base_alias + (RTSP_PORT_GROUP - 1));
412 new_len = htons(hlen + new_dlen);
/freebsd-10.0-release/sys/netinet/
H A Dsctp_output.c1990 parmh->param_type = htons(SCTP_IPV4_ADDRESS);
1991 parmh->param_length = htons(plen);
2005 parmh->param_type = htons(SCTP_IPV6_ADDRESS);
2006 parmh->param_length = htons(plen);
3721 ph->param_type = htons(SCTP_STATE_COOKIE);
3762 ph->param_length = htons(cookie_sz);
3962 ip->ip_off = htons(IP_DF);
3964 ip->ip_off = htons(0);
3970 ip->ip_len = htons(packet_length);
4037 if (htons(SCTP_BASE_SYSCT
[all...]
/freebsd-10.0-release/bin/date/
H A Dnetdate.c96 lsin.sin_port = htons((u_short)port);
117 msg.tsp_seq = htons((u_short)0);
/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/aggs/
H A Dtst.subr.d91 INTFUNC(htons(0x1234))
/freebsd-10.0-release/contrib/ipfilter/tools/
H A Dipsyncm.c95 sin.sin_port = htons(atoi(argv[2]));
97 sin.sin_port = htons(43434);
/freebsd-10.0-release/contrib/llvm/tools/lldb/source/Host/common/
H A DSocketAddress.cpp140 m_socket_addr.sa_ipv4.sin_port = htons(port);
144 m_socket_addr.sa_ipv6.sin6_port = htons(port);
/freebsd-10.0-release/contrib/tcpdump/
H A Dprint-ipx.c153 (void)printf(" %s", ipxsap_string(htons(EXTRACT_16BITS(&ipx[0]))));
165 (void)printf(" %s '", ipxsap_string(htons(EXTRACT_16BITS(&ipx[0]))));
/freebsd-10.0-release/libexec/rbootd/
H A Drmp_var.h161 { (w).val[_WORD_HIGHPART] = htons((u_int16_t) ((i >> 16) & 0xffff)); \
162 (w).val[_WORD_LOWPART] = htons((u_int16_t) (i & 0xffff)); \
/freebsd-10.0-release/sys/sys/
H A Dparam.h297 __uint16_t htons(__uint16_t);
308 #define htons(x) __htons(x) macro

Completed in 299 milliseconds

1234567891011>>