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

1234567891011>>

/freebsd-11-stable/stand/libsa/
H A Dip.c114 ip->ip_len = htons(len);
212 if (ah->ar_op == htons(ARPOP_REQUEST)) {
280 ip->ip_len = htons(sizeof(*ip));
374 ipr->ip_hdr->ip_len = htons(n);
H A Dbootparam.c158 d->myport = htons(--rpc_port);
272 d->myport = htons(--rpc_port);
/freebsd-11-stable/sys/netinet/libalias/
H A Dalias_ftp.c323 GetAliasAddress(lnk), htons(FTP_CONTROL_PORT_NUMBER - 1),
324 htons(la->true_port), GET_ALIAS_PORT, IPPROTO_TCP);
662 GetAliasAddress(lnk), htons(la->true_port), 0, GET_ALIAS_PORT,
755 new_len = htons(hlen +
/freebsd-11-stable/contrib/ipfilter/ipsend/
H A Darp.c108 san.sin_port = htons(1);
/freebsd-11-stable/contrib/unbound/services/cache/
H A Drrset.c287 key.rk.type = htons(qtype);
288 key.rk.rrset_class = htons(qclass);
450 key.rk.rrset_class = htons(dclass);
451 key.rk.type = htons(type);
/freebsd-11-stable/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);
133 aph->ph.param_type = htons(SCTP_ERROR_CAUSE_IND);
134 aph->ph.param_length = htons(param_length);
137 error->code = htons(cause);
138 error->length = htons(cause_length);
808 ack_cp->ch.chunk_length = htons(ack_cp->ch.chunk_length);
1584 if (htons(eh->length) + sizeof(struct sctp_error_cause) >
1585 htons(aph->ph.param_length)) {
1591 if (htons(p
[all...]
/freebsd-11-stable/contrib/ipfilter/iplang/
H A Diplang_y.y613 return htons(atoi(name));
841 ip->ip_id = htons(id++);
881 ip->ip_off = htons(strtol(*arg, NULL, 0));
932 ip->ip_id = htons(strtol(*arg, NULL, 0));
970 tcp->th_win = htons(4096);
1049 tcp->th_urp = htons(strtol(*arg, NULL, 0));
1058 tcp->th_win = htons(strtol(*arg, NULL, 0));
1275 ip->ip_len = htons(ip->ip_len);
1524 icmp->icmp_id = htons(arg);
1531 icmp->icmp_seq = htons(ar
[all...]
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/net/
H A Dh_dns_server.c297 saddr.sin.sin_port = htons(53);
304 saddr.sin6.sin6_port = htons(53);
/freebsd-11-stable/contrib/unbound/iterator/
H A Diter_priv.c253 sa.sin_port = (in_port_t)htons(UNBOUND_DNS_PORT);
276 sa.sin6_port = (in_port_t)htons(UNBOUND_DNS_PORT);
/freebsd-11-stable/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-11-stable/sys/netinet6/
H A Din6_fib.c190 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff);
239 sin6.sin6_addr.s6_addr16[1] = htons(scopeid & 0xffff);
/freebsd-11-stable/tools/regression/netinet/ipbroadcast/
H A Dipbroadcast.c274 laddr.sin_port = htons(portno);
287 dsin.sin_port = htons(portno);
/freebsd-11-stable/tools/regression/sockets/sigpipe/
H A Dsigpipe.c201 sin.sin_port = htons(port);
232 sin.sin_port = htons(port);
/freebsd-11-stable/sys/dev/ep/
H A Dif_ep_isa.c209 isa_id = (htons(data) << 16);
211 isa_id |= htons(data);
/freebsd-11-stable/usr.sbin/nfscbd/
H A Dnfscbd.c227 inetaddr.sin_port = htons(myport);
266 inetaddr.sin_port = htons(myport);
/freebsd-11-stable/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-11-stable/contrib/netbsd-tests/net/config/
H A Dnetconfig.c214 icmp.icmp_id = htons(37);
215 icmp.icmp_cksum = htons(0xf7da); /* precalc */
/freebsd-11-stable/sys/netpfil/ipfw/pmod/
H A Dtcpmod.c212 ret = tcpmod_ipv4_setmss(&args->m, htons(icmd->arg1));
217 ret = tcpmod_ipv6_setmss(&args->m, htons(icmd->arg1));
/freebsd-11-stable/usr.sbin/ypbind/
H A Dyp_ping.c121 address->sin_port = htons(PMAPPORT);
237 sin.sin_port = htons(__pmap_getport(&sin, YPPROG,
/freebsd-11-stable/usr.sbin/bluetooth/sdpd/
H A Dsar.c291 pdu.len = htons(sizeof(bcount) + bcount + 1 + cs[0]);
293 bcount = htons(bcount);
/freebsd-11-stable/sys/netpfil/pf/
H A Dpf_lb.c255 key.port[1] = htons(low);
257 *nport = htons(low);
273 key.port[1] = htons(tmp);
276 *nport = htons(tmp);
282 key.port[1] = htons(tmp);
285 *nport = htons(tmp);
666 *nport = htons((uint16_t)tmp_nport);
668 *nport = htons(r->rpool.proxy_port[0]);
/freebsd-11-stable/contrib/libpcap/
H A Dpcap-bt-monitor-linux.c138 bthdr->adapter_id = htons(hdr.index);
139 bthdr->opcode = htons(hdr.opcode);
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/common/
H A DSocketAddress.cpp166 m_socket_addr.sa_ipv4.sin_port = htons(port);
170 m_socket_addr.sa_ipv6.sin6_port = htons(port);
/freebsd-11-stable/contrib/ipfilter/
H A Dip_msnrpc_pxy.c302 tcp2->th_win = htons(8192);
304 fi.fin_data[0] = htons(mri->mri_rport);
/freebsd-11-stable/contrib/ipfilter/tools/
H A Dipsyncs.c101 sin.sin_port = htons(atoi(argv[2]));
103 sin.sin_port = htons(43434);

Completed in 296 milliseconds

1234567891011>>