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

12345

/haiku/src/system/boot/platform/pxe_ia32/
H A Dnetwork.cpp446 openConnection.port = htons(ServerPort());
/haiku/src/libs/compat/openbsd_wlan/net80211/
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)) {
H A Dieee80211_pae_output.c76 eh->ether_type = htons(ETHERTYPE_EAPOL);
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);
/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/add-ons/kernel/network/protocols/tcp/
H A DEndpointManager.cpp484 port = htons(port);
/haiku/src/libs/compat/freebsd_wlan/net80211/
H A Dieee80211_adhoc.c584 if (eh->ether_type != htons(ETHERTYPE_PAE)) {
601 eh->ether_type != htons(ETHERTYPE_PAE)) {
H A Dieee80211_superg.c300 if (llc->llc_snap.ether_type != htons(ATH_FF_ETH_TYPE))
470 llc->llc_snap.ether_type = htons(ATH_FF_ETH_TYPE);
H A Dieee80211_hostap.c770 if (eh->ether_type != htons(ETHERTYPE_PAE)) {
787 eh->ether_type != htons(ETHERTYPE_PAE)) {
1654 eh->ether_type = htons(sizeof(*l2uf) - sizeof(*eh));
H A Dieee80211_output.c414 htons(eh->ether_type));
1240 if (ether_type == htons(ETHERTYPE_PAE)) {
1275 if (eh && eh->ether_type == htons(ETHERTYPE_IP)) {
1288 if (eh && eh->ether_type == htons(ETHERTYPE_IPV6)) {
4081 mtod(m, struct ether_header *)->ether_type = htons(payload);
H A Dieee80211_sta.c853 if (eh->ether_type != htons(ETHERTYPE_PAE)) {
870 eh->ether_type != htons(ETHERTYPE_PAE)) {
/haiku/src/add-ons/kernel/file_systems/netfs/server/
H A DNetFSServer.cpp1074 addr.sin_port = htons(kDefaultServerInfoPort);
1203 addr.sin_port = htons(kDefaultBroadcastPort);
/haiku/src/servers/net/
H A DDHCPClient.cpp362 (uint16)htons(sizeof(dhcp_message)));
891 message.seconds_since_start = htons(min_c((system_time() - fStartTime)
/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/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));
/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);
/haiku/src/add-ons/kernel/drivers/network/ether/ipro1000/dev/e1000/
H A Digb_txrx.c544 ri->iri_csum_data = htons(0xffff);
H A Dem_txrx.c749 ri->iri_csum_data = htons(0xffff);
/haiku/src/add-ons/kernel/drivers/network/ether/intel22x/dev/igc/
H A Digc_txrx.c564 ri->iri_csum_data = htons(0xffff);
/haiku/src/add-ons/kernel/drivers/network/ether/ipro100/dev/fxp/
H A Dif_fxp.c1474 if (eh->ether_type == htons(ETHERTYPE_VLAN)) {
1508 ip->ip_len = htons(m->m_pkthdr.tso_segsz + (ip->ip_hl << 2) +
1511 htons(IPPROTO_TCP + (tcp->th_off << 2) +
1639 cbp->ipcb_vlan_id = htons(m->m_pkthdr.ether_vtag);
1829 if (eh->ether_type != htons(ETHERTYPE_IP))
1843 if (ip->ip_off & htons(IP_MF | IP_OFFMASK))
/haiku/src/bin/network/ftpd/
H A Dftpd.c582 data_source.su_port = htons(ntohs(ctrl_addr.su_port) - 1);
1871 data_source.su_port = htons(dataport);
2522 af, hname, htons(tmp.su_port));
/haiku/src/add-ons/kernel/drivers/network/ether/sis19x/dev/sge/
H A Dif_sge.c1434 if (eh->ether_type == htons(ETHERTYPE_VLAN)) {
1468 htons(IPPROTO_TCP));
/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/drivers/network/ether/marvell_yukon/dev/msk/
H A Dif_msk.c2684 if (eh->ether_type == htons(ETHERTYPE_VLAN)) {
2805 htons(m->m_pkthdr.ether_vtag));
2810 htons(m->m_pkthdr.ether_vtag));
3144 if (eh->ether_type != htons(ETHERTYPE_IP))
3158 if (ip->ip_off & htons(IP_MF | IP_OFFMASK))
/haiku/src/system/libnetwork/netresolv/net/
H A Dgetaddrinfo.c1595 port = htons(port);
1997 *getport(cur) = htons(srv->port);

Completed in 206 milliseconds

12345