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

1234567891011>>

/freebsd-11-stable/contrib/libpcap/
H A Drpcap-protocol.c141 header->value = htons(value);
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dbindresvport.c99 *portp = htons(port);
/freebsd-11-stable/tests/sys/file/
H A Dnewfileops_on_fork_test.c112 sin.sin_port = htons(PORT);
/freebsd-11-stable/tests/sys/netinet/
H A Dtcp_user_cookie.c78 srv.sin_port = htons(port);
/freebsd-11-stable/usr.sbin/ppp/
H A Dua.h35 # define ua_htons(src, tgt) (*(u_int16_t *)(tgt) = htons(*(u_int16_t *)(src)))
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dinetdevice.h74 sin6.sin6_addr.s6_addr16[1] = htons(scope_id);
/freebsd-11-stable/sys/net/
H A Dif_spppfr.c343 *(short*) (h+8) = htons(type);
496 *(short*) (h+8) = htons (ETHERTYPE_ARP);
498 reply->htype = htons (ARPHRD_FRELAY);
499 reply->ptype = htons (ETHERTYPE_IP);
502 reply->op = htons (ARPOP_INVREPLY);
503 reply->hsource = htons (my_hardware_address);
506 reply->htarget = htons (his_hardware_address);
/freebsd-11-stable/sys/netinet/
H A Dip_reass.c213 ip->ip_len = htons(ntohs(ip->ip_len) - hlen);
219 if (ip->ip_len == htons(0) ||
220 ((ip->ip_off & htons(IP_MF)) && (ntohs(ip->ip_len) & 0x7) != 0)) {
226 if (ip->ip_off & htons(IP_MF))
230 ip->ip_off = htons(ntohs(ip->ip_off) << 3);
367 ip->ip_off = htons(ntohs(ip->ip_off) + i);
368 ip->ip_len = htons(ntohs(ip->ip_len) - i);
386 GETIP(q)->ip_len = htons(ntohs(GETIP(q)->ip_len) - i);
387 GETIP(q)->ip_off = htons(ntohs(GETIP(q)->ip_off) + i);
473 ip->ip_len = htons((i
[all...]
H A Dsctp_output.c1991 paramh->param_type = htons(SCTP_IPV4_ADDRESS);
1992 paramh->param_length = htons(plen);
2006 paramh->param_type = htons(SCTP_IPV6_ADDRESS);
2007 paramh->param_length = htons(plen);
3868 ph->param_type = htons(SCTP_STATE_COOKIE);
3909 ph->param_length = htons(cookie_sz);
4097 ip->ip_off = htons(IP_DF);
4099 ip->ip_off = htons(0);
4105 ip->ip_len = htons(packet_length);
4172 if (htons(SCTP_BASE_SYSCT
[all...]
/freebsd-11-stable/sys/contrib/ipfilter/netinet/
H A Dip_raudio_pxy.c289 tcp2->th_win = htons(8192);
291 ip->ip_len = htons(fin->fin_hlen + sizeof(*tcp));
297 tcp2->th_sport = htons(sp);
298 tcp2->th_dport = htons(dp);
320 tcp2->th_sport = htons(sp);
/freebsd-11-stable/contrib/wpa/src/ap/
H A Dfils_hlp.c32 return htons(~sum);
131 addr.sin_port = htons(hapd->conf->dhcp_server_port);
264 iph->tot_len = htons(sizeof(*iph) + sizeof(*udph) + (end - pos));
271 udph->uh_sport = htons(DHCP_SERVER_PORT);
272 udph->uh_dport = htons(DHCP_CLIENT_PORT);
273 udph->uh_ulen = htons(sizeof(*udph) + (end - pos));
274 udph->uh_sum = htons(0x0000); /* TODO: calculate checksum */
417 addr.sin_port = htons(hapd->conf->dhcp_relay_port);
444 addr.sin_port = htons(hapd->conf->dhcp_server_port);
/freebsd-11-stable/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-11-stable/bin/date/
H A Dnetdate.c96 lsin.sin_port = htons((u_short)port);
117 msg.tsp_seq = htons((u_short)0);
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/aggs/
H A Dtst.subr.d92 INTFUNC(htons(0x1234))
/freebsd-11-stable/libexec/rbootd/
H A Drmp_var.h159 { (w).val[_WORD_HIGHPART] = htons((u_int16_t) ((i >> 16) & 0xffff)); \
160 (w).val[_WORD_LOWPART] = htons((u_int16_t) (i & 0xffff)); \
/freebsd-11-stable/tools/regression/netinet/tcpsockclosebeforeaccept/
H A Dtcpsockclosebeforeaccept.c87 sin.sin_port = htons(TCP_PORT);
137 sin.sin_port = htons(TCP_PORT);
/freebsd-11-stable/tools/regression/netinet/tcpstream/
H A Dtcpstream.c202 sin.sin_port = htons(port);
222 sin.sin_port = htons(port);
/freebsd-11-stable/tools/regression/sockets/accept_fd_leak/
H A Daccept_fd_leak.c96 sin.sin_port = htons(listen_port);
162 sin.sin_port = htons(listen_port);
/freebsd-11-stable/contrib/netbsd-tests/net/if_loop/
H A Dt_pr.c178 sin.sin_port = htons(12345);
213 sin.sin_port = htons(12345);
/freebsd-11-stable/contrib/netbsd-tests/sys/netinet6/
H A Dt_print.c121 sin6.sin6_port = (in_port_t)htons(i);
136 sin6.sin6_port = (in_port_t)htons(i);
/freebsd-11-stable/contrib/tcpdump/
H A Dnetdissect-stdinc.h286 #undef htons macro
294 #define htons(x) __ntohs(x) macro
H A Dprint-ipx.c168 ND_PRINT((ndo, " %s", ipxsap_string(ndo, htons(EXTRACT_16BITS(&ipx[0])))));
180 ND_PRINT((ndo, " %s '", ipxsap_string(ndo, htons(EXTRACT_16BITS(&ipx[0])))));
/freebsd-11-stable/usr.bin/tftp/
H A Dtftp.c91 htons(atoi(port));
191 htons(atoi(port));
/freebsd-11-stable/sys/sys/
H A Dparam.h315 __uint16_t htons(__uint16_t);
326 #define htons(x) __htons(x) macro
/freebsd-11-stable/contrib/ipfilter/tools/
H A Dipsyncm.c95 sin.sin_port = htons(atoi(argv[2]));
97 sin.sin_port = htons(43434);

Completed in 169 milliseconds

1234567891011>>