Searched refs:htons (Results 1 - 25 of 113) sorted by last modified time

12345

/haiku/src/add-ons/kernel/network/protocols/tcp/
H A DEndpointManager.cpp484 port = htons(port);
H A Dtcp.cpp108 option->max_segment_size = htons(segment.max_segment_size);
419 header.advertised_window = htons(segment.advertised_window);
421 header.urgent_offset = htons(segment.urgent_offset);
/haiku/src/bin/network/traceroute/
H A Dtraceroute.c788 outip->ip_len = htons(packlen);
789 outip->ip_off = htons(off);
1289 outip->ip_id = htons(ident + seq);
1458 icmpheader->icmp_id = htons(ident);
1459 icmpheader->icmp_seq = htons(outdata->seq);
1471 return (icmpheader->icmp_id == htons(ident)
1472 && icmpheader->icmp_seq == htons(seq));
1480 outudp->uh_sport = htons(ident + (fixedPort ? outdata->seq : 0));
1481 outudp->uh_dport = htons(port + (fixedPort ? 0 : outdata->seq));
1482 outudp->uh_ulen = htons((u_shor
[all...]
/haiku/src/bin/network/ping/
H A Dping6.c1349 nip->ni_qtype = htons(NI_QTYPE_FQDN);
1350 nip->ni_flags = htons(0);
1354 s = htons(seq);
1366 nip->ni_qtype = htons(NI_QTYPE_FQDN);
1367 nip->ni_flags = htons(0);
1371 s = htons(seq);
1381 nip->ni_qtype = htons(NI_QTYPE_NODEADDR);
1386 s = htons(seq);
1398 nip->ni_qtype = htons(NI_QTYPE_SUPTYPES);
1404 s = htons(se
[all...]
H A Dping.c724 ip.ip_off = htons(df ? IP_DF : 0);
1054 icp.icmp_seq = htons(ntransmitted);
1092 ip.ip_len = htons(cc);
/haiku/src/add-ons/kernel/network/protocols/ipv6/
H A Dipv6.cpp665 = htons(fragmentLength + extensionHeadersLength);
671 fragmentHeader.ip6f_offlg = htons(fragmentOffset) & IP6F_OFF_MASK;
1315 header->ip6_plen = htons(dataLength);
H A Dipv6_utils.h44 length = htons(length);
45 protocol = htons(protocol);
/haiku/src/add-ons/kernel/network/protocols/ipv4/
H A Dipv4.cpp642 header->total_length = htons(fragmentLength + headerLength);
643 header->fragment_offset = htons((lastFragment ? 0 : IP_MORE_FRAGMENTS)
1521 header->total_length = htons(buffer->size);
1522 header->id = htons(atomic_add(&sPacketID, 1));
/haiku/src/libs/compat/freebsd_iflib/
H A Diflib.c2950 case htons(ETHERTYPE_IPV6):
2954 case htons(ETHERTYPE_IP):
3274 if (eh->evl_encap_proto == htons(ETHERTYPE_VLAN)) {
3348 ip->ip_dst.s_addr, htons(IPPROTO_TCP));
3352 ip->ip_len = htons(pi->ipi_ip_hlen + pi->ipi_tcp_hlen + pi->ipi_tso_segsz);
/haiku/src/tests/system/network/tcp_shell/
H A Dtcp_shell.cpp124 return ((sockaddr_in*)addr)->sin_port == htons(1024);
1159 ip_header.ip_len = htons(sizeof(struct ip) + buffer->size);
1160 ip_header.ip_id = htons(packetNumber);
1252 address.sin_port = htons(1023);
1337 address.sin_port = htons(1024);
1421 address.sin_port = htons(1023);
1438 address.sin_port = htons(port);
/haiku/src/tools/remote_disk_server/
H A Dremote_disk_server.cpp167 addr.sin_port = htons(REMOTE_DISK_SERVER_PORT);
229 reply->size = htons(result);
274 reply.size = htons(result);
281 reply->port = htons(REMOTE_DISK_SERVER_PORT);
/haiku/src/system/libnetwork/netresolv/resolv/
H A Dres_init.c213 u[nserv].sin.sin_port = htons(NAMESERVER_PORT);
225 u[nserv].sin6.sin6_port = htons(NAMESERVER_PORT);
/haiku/src/system/libnetwork/netresolv/net/
H A Dgetservent_r.c162 sp->s_port = htons((u_short)atoi(p));
H A Dgetaddrinfo.c1595 port = htons(port);
1997 *getport(cur) = htons(srv->port);
/haiku/src/add-ons/media/media-add-ons/esound_sink/
H A DESDEndpoint.cpp201 sin.sin_port = htons( port );
/haiku/src/apps/poorman/
H A DPoorManServer.cpp97 sa4.sa_in.sin_port = htons(80);
104 sa6.sa_in.sin_port = htons(80);
/haiku/src/add-ons/kernel/network/datalink_protocols/ipv6_datagram/
H A Dipv6_datagram.cpp192 destination->sdl_e_type = htons(ETHER_TYPE_IPV6);
309 entry->hardware_address.sdl_e_type = htons(ETHER_TYPE_IPV6);
612 address.sdl_e_type = htons(ETHER_TYPE_IPV6);
683 hardwareAddress.sdl_e_type = htons(ETHER_TYPE_IPV6);
758 hardwareAddress.sdl_e_type = htons(ETHER_TYPE_IPV6);
/haiku/src/libs/compat/openbsd_wlan/net80211/
H A Dieee80211_input.c1057 eh->ether_type != htons(ETHERTYPE_EAPOL)) {
1074 eh->ether_type != htons(ETHERTYPE_EAPOL)) {
1099 eh->ether_type == htons(ETHERTYPE_EAPOL)) {
1161 eh.ether_type = htons(m->m_pkthdr.len - hdrlen);
H A Dieee80211_pae_output.c76 eh->ether_type = htons(ETHERTYPE_EAPOL);
H A Dieee80211_output.c435 if (eh.ether_type == htons(ETHERTYPE_IP)) {
443 else if (eh.ether_type == htons(ETHERTYPE_IPV6)) {
605 eh.ether_type != htons(ETHERTYPE_EAPOL)) {
621 eh.ether_type != htons(ETHERTYPE_EAPOL)) {
/haiku/src/add-ons/kernel/drivers/network/ether/intel22x/dev/igc/
H A Digc_txrx.c564 ri->iri_csum_data = htons(0xffff);
/haiku/headers/private/fs_shell/
H A Dfssh_api_wrapper.h83 #define htons(x) fssh_htons(x) macro
/haiku/src/kits/network/libnetapi/
H A DNetworkAddress.cpp522 ((sockaddr_in&)fAddress).sin_port = htons(port);
526 ((sockaddr_in6&)fAddress).sin6_port = htons(port);
610 link.sdl_e_type = htons(frameType);
/haiku/src/add-ons/kernel/drivers/disk/virtual/nbd/
H A Dnbd.c854 nbd_devices[i].server.sin_port = htons(atoi(p->parameters[j].values[1]));
/haiku/src/add-ons/kernel/file_systems/nfs/
H A Dnfs_add_on.c115 addr.sin_port=htons(port);
141 addr.sin_port = htons(111);
158 addr.sin_port = htons(port);
424 addr->sin_port = htons(PMAP_PORT);
441 addr->sin_port = htons(XDRInPacketGetInt32(&reply));

Completed in 357 milliseconds

12345