Searched refs:htons (Results 26 - 50 of 643) sorted by relevance

1234567891011>>

/freebsd-11-stable/usr.bin/talk/
H A Dget_names.c109 msg.addr.sa_family = htons(AF_INET);
110 msg.ctl_addr.sa_family = htons(AF_INET);
/freebsd-11-stable/contrib/ipfilter/ipsend/
H A Dip.c75 eh->ether_type = htons(ETHERTYPE_IP);
121 eh->ether_type = htons(ETHERTYPE_IP);
126 ip->ip_len = htons(iplen);
131 ip->ip_id = htons(id++);
203 ip->ip_off |= htons(IP_MF);
209 ip->ip_off ^= htons(IP_MF);
214 ip->ip_off &= htons(0xe000);
215 ip->ip_off |= htons(sent >> 3);
217 ip->ip_len = htons(ts);
228 else if (!(ip->ip_off & htons(
[all...]
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/
H A Dmlx4_fw_qos.c134 htons(MLX4_RATELIMIT_100M_UNITS);
138 htons(MLX4_RATELIMIT_1G_UNITS);
140 tc->max_bw_value = htons(r);
142 tc->max_bw_value = htons(MLX4_RATELIMIT_DEFAULT);
143 tc->max_bw_units = htons(MLX4_RATELIMIT_1G_UNITS);
146 tc->pg = htons(pg[i]);
147 tc->bw_precentage = htons(tc_tx_bw[i]);
/freebsd-11-stable/tools/tools/net80211/wesside/dics/
H A Ddics.c173 if ( htons(uh->uh_dport) != DPORT)
203 ph->ippseudo_len = htons(len);
241 iph->ip_len = htons(20+8+dlen);
242 iph->ip_id = htons(666);
253 dst.sin_port = htons(port);
259 uh->uh_sport = htons(DPORT);
260 uh->uh_dport = htons(port);
261 uh->uh_ulen = htons(8+dlen);
343 s_in.sin_port = htons(DPORT);
/freebsd-11-stable/sys/dev/ixgbe/
H A Dif_fdir.c94 if (eh->evl_encap_proto == htons(ETHERTYPE_VLAN)) {
103 if (etype != htons(ETHERTYPE_IP))
131 common.flex_bytes ^= htons(ETHERTYPE_VLAN);
/freebsd-11-stable/contrib/ipfilter/lib/
H A Dipft_tx.c252 tcp->th_sport = htons(tx_portnum(last));
254 tcp->th_win = htons(4096);
272 tcp->th_dport = htons(tx_portnum(last));
289 tcp->th_urp = htons(1);
314 ic->icmp_id = htons(getpid());
336 ip->ip_len = htons(ip->ip_len);
415 tcp->th_sport = htons(tx_portnum(last));
417 tcp->th_win = htons(4096);
440 tcp->th_dport = htons(tx_portnum(last));
463 tcp->th_urp = htons(
[all...]
/freebsd-11-stable/tools/regression/netinet/rawconnect/
H A Drawconnect.c65 sin.sin_port = htons(65534);
/freebsd-11-stable/tools/regression/netinet6/ip6_sockets/
H A Dip6_sockets.c66 sin6.sin6_port = htons(1024);
/freebsd-11-stable/usr.sbin/timed/timed/
H A Dbyteorder.c47 ptr->tsp_seq = htons((u_short)ptr->tsp_seq);
/freebsd-11-stable/usr.sbin/traceroute/
H A Dfindsaddr-udp.c70 cto.sin_port = htons(65535); /* Dummy port for connect(2). */
/freebsd-11-stable/usr.sbin/bhyve/
H A Drfb.c210 sinfo.width = htons(gc_image->width);
211 sinfo.height = htons(gc_image->height);
216 sinfo.pixfmt.red_max = htons(255);
217 sinfo.pixfmt.green_max = htons(255);
218 sinfo.pixfmt.blue_max = htons(255);
236 supdt_msg.numrects = htons(1);
240 srect_hdr.x = htons(0);
241 srect_hdr.y = htons(0);
242 srect_hdr.width = htons(rc->width);
243 srect_hdr.height = htons(r
[all...]
/freebsd-11-stable/contrib/netbsd-tests/lib/librumpclient/
H A Dh_exec.c79 sin.sin_port = htons(1234);
83 sin.sin_port = htons(2345);
/freebsd-11-stable/include/arpa/
H A Dinet.h140 uint16_t htons(uint16_t);
171 #define htons(x) __htons(x) macro
/freebsd-11-stable/sys/i386/include/
H A Din_cksum.h90 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16));
131 ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); \
/freebsd-11-stable/sys/dev/qlnx/qlnxe/
H A Decore_tcp_ip.h53 #ifndef htons
54 #define htons(val) OSAL_CPU_TO_BE16(val) macro
/freebsd-11-stable/libexec/rbootd/
H A Drmpproto.c189 rpl->r_brpl.rmp_version = htons(RMP_VERSION);
242 rpl->r_brpl.rmp_version = htons(RMP_VERSION);
311 rpl->r_brpl.rmp_session = htons(GenSessID());
312 rpl->r_brpl.rmp_version = htons(RMP_VERSION);
443 req->r_rrq.rmp_size = htons(RMPREADDATA);
564 rconn->rmp.hp_hdr.len = htons(rconn->rmplen - sizeof(struct hp_hdr));
569 rconn->rmp.hp_llc.dxsap = htons(HPEXT_SXSAP);
570 rconn->rmp.hp_llc.sxsap = htons(HPEXT_DXSAP);
/freebsd-11-stable/contrib/ntp/libntp/
H A Ddecodenetnum.c142 netnum.sa4.sin_port = htons((unsigned short)port);
149 netnum.sa6.sin6_port = htons((unsigned short)port);
/freebsd-11-stable/stand/libsa/
H A Dtftp.c153 wbuf.t.th_opcode = htons((u_short)ERROR);
154 wbuf.t.th_code = htons(errcode);
173 wbuf.t.th_opcode = htons((u_short)ACK);
175 wbuf.t.th_block = htons(block);
207 if (htons(t->th_block) < (u_short)d->xid) {
211 tftp_sendack(h, htons(t->th_block));
215 if (htons(t->th_block) != (u_short)d->xid) {
314 wbuf.t.th_opcode = htons((u_short)RRQ);
339 h->iodesc->myport = htons(tftpport + (getsecs() & 0x3ff));
340 h->iodesc->destport = htons(IPPORT_TFT
[all...]
/freebsd-11-stable/libexec/tftpd/
H A Dtftp-io.c152 tp->th_opcode = htons((u_short)ERROR);
153 tp->th_code = htons((u_short)error);
194 tp->th_opcode = htons((u_short)WRQ);
242 tp->th_opcode = htons((u_short)RRQ);
295 tp->th_opcode = htons((u_short)OACK);
336 tp->th_opcode = htons((u_short)ACK);
337 tp->th_block = htons((u_short)block);
367 pkt->th_opcode = htons((u_short)DATA);
368 pkt->th_block = htons((u_short)block);
/freebsd-11-stable/lib/libc/resolv/
H A Dres_mkquery.c126 hp->id = htons(statp->id);
152 hp->qdcount = htons(1);
173 hp->arcount = htons(1);
195 hp->ancount = htons(1);
253 hp->arcount = htons(ntohs(hp->arcount) + 1);
/freebsd-11-stable/sbin/dhclient/
H A Dpacket.c88 return (htons(sum));
104 eh.ether_type = htons(ETHERTYPE_IP);
120 ip.ip_len = htons(sizeof(ip) + sizeof(udp) + len);
133 udp.uh_sport = htons(LOCAL_PORT); /* XXX */
135 udp.uh_ulen = htons(sizeof(udp) + len);
/freebsd-11-stable/usr.sbin/traceroute6/
H A Dtraceroute6.c405 ident = htons(getpid() & 0xffff); /* same as ping6 */
849 Nxt.sin6_port = htons(DUMMY_PORT);
875 Src.sin6_port = htons(0);
1081 Dst.sin6_port = htons(port + seq);
1091 icp->icmp6_seq = htons(seq);
1101 sctp->src_port = htons(ident);
1102 sctp->dest_port = htons(port + seq);
1122 init->ch.chunk_length = htons((u_int16_t)(datalen -
1127 init->init.num_outbound_streams = htons(1);
1128 init->init.num_inbound_streams = htons(
[all...]
/freebsd-11-stable/sbin/natd/
H A Dicmp.c73 icmp->icmp_nextmtu = htons (mtu);
98 ip->ip_len = htons (sizeof (struct ip) + icmpLen);
/freebsd-11-stable/sys/netinet/libalias/
H A Dalias_util.c140 sum += htons((u_short) ntcp);
141 sum += htons((u_short) pip->ip_p);
/freebsd-11-stable/tools/regression/netinet/tcpconnect/
H A Dtcpconnect.c74 sin.sin_port = htons(port);
119 sin.sin_port = htons(port);

Completed in 275 milliseconds

1234567891011>>