Searched refs:RT_H2N_U16 (Results 1 - 14 of 14) sorted by relevance

/vbox/src/VBox/Devices/Network/slirp/
H A Dip_output.c153 ip->ip_id = RT_H2N_U16(ip_currid++);
170 ip->ip_len = RT_H2N_U16((u_int16_t)ip->ip_len);
171 ip->ip_off = RT_H2N_U16((u_int16_t)ip->ip_off);
256 mhip->ip_len = RT_H2N_U16((u_int16_t)(len + mhlen));
272 mhip->ip_off = RT_H2N_U16((u_int16_t)(mhip->ip_off));
288 ip->ip_len = RT_H2N_U16((u_int16_t)mhlen + firstlen);
289 ip->ip_off = RT_H2N_U16((u_int16_t)(ip->ip_off | IP_MF));
H A Dtcp_output.c323 mss = RT_H2N_U16((u_int16_t) tcp_mss(pData, tp, 0));
555 ti->ti_win = RT_H2N_U16((u_int16_t) (win>>tp->rcv_scale));
560 ti->ti_urp = RT_H2N_U16((u_int16_t)(tp->snd_up - tp->snd_nxt));
564 ti->ti_urp = RT_H2N_U16((u_int16_t)(tp->snd_up - RT_N2H_U32(ti->ti_seq)));
582 ti->ti_len = RT_H2N_U16((u_int16_t)(sizeof (struct tcphdr)
H A Dtcp_subr.c95 n->ti_len = RT_H2N_U16(sizeof (struct tcpiphdr) - sizeof (struct ip));
162 ti->ti_len = RT_H2N_U16((u_short)(sizeof (struct tcphdr) + tlen));
175 ti->ti_win = RT_H2N_U16((u_int16_t) (win >> tp->rcv_scale));
H A Dip.h85 # define HTONS(d) ((d) = RT_H2N_U16((u_int16_t)(d)))
H A Dtftp.c264 cbTftpRRQRaw = RT_H2N_U16(pcTftpIpHeader->UdpHdr.uh_ulen) + sizeof(struct ip) - RT_OFFSETOF(TFTPIPHDR, Core);
627 pTftpIpHeader->Core.u16TftpOpCode = RT_H2N_U16(errorcode);
668 pTftpIpHeader->Core.u16TftpOpCode = RT_H2N_U16(pTftpSession->cTftpAck);
H A Dudp.c424 ui->ui_len = RT_H2N_U16(mlen - sizeof(struct ip));
481 && (so->so_fport == RT_H2N_U16(137)))
H A Dslirp.c1484 eh->h_proto = RT_H2N_U16(eth_proto);
1563 so = udp_listen(pData, rule->bind_ip.s_addr, RT_H2N_U16(rule->host_port), guest_addr,
1564 RT_H2N_U16(rule->guest_port), 0);
1566 so = solisten(pData, rule->bind_ip.s_addr, RT_H2N_U16(rule->host_port), guest_addr,
1567 RT_H2N_U16(rule->guest_port), 0);
H A Dtcp_input.c400 ti->ti_len = RT_H2N_U16((u_int16_t)tlen);
/vbox/include/VBox/vmm/
H A Dpdmnetinline.h227 pUdpHdr->uh_ulen = RT_H2N_U16(cbPayload + cbHdrs - offUdpHdr);
328 pIpHdr->ip6_plen = RT_H2N_U16(cbPayload);
348 pIpHdr->ip_len = RT_H2N_U16(cbHdrs - offIpHdr + cbSegPayload);
349 pIpHdr->ip_id = RT_H2N_U16(RT_N2H_U16(pIpHdr->ip_id) + iSeg);
371 pIpHdr->ip_len = RT_H2N_U16(cbHdrs - offIpHdr + cbSegPayload);
372 pIpHdr->ip_off = RT_H2N_U16((offFragment / 8) | (fLastFragment ? 0 : RTNETIPV4_FLAGS_MF));
/vbox/src/VBox/Runtime/common/net/
H A Dnetaddrstr2.cpp217 ipv6.au16[iGroup] = RT_H2N_U16(u16);
276 ipv6Tail.au16[iGroup] = RT_H2N_U16(u16);
/vbox/src/VBox/Devices/USB/usbip/
H A DUSBProxyDevice-usbip.cpp589 ReqImport.u16Version = RT_H2N_U16(USBIP_VERSION);
590 ReqImport.u16Cmd = RT_H2N_U16(USBIP_INDICATOR_REQ | USBIP_REQ_RET_IMPORT);
/vbox/src/VBox/HostDrivers/VBoxNetFlt/linux/
H A DVBoxNetFlt-linux.c906 pVHdr->h_vlan_proto = RT_H2N_U16(ETH_P_8021Q);
907 pVHdr->h_vlan_TCI = RT_H2N_U16(vlan_tx_tag_get(pBuf));
1171 Log5(("vboxNetFltLinuxCanForwardAsGso: uEtherType=%#x\n", RT_H2N_U16(uEtherType)));
/vbox/src/VBox/Runtime/r3/
H A Dsocket.cpp295 pDst->IPv4.sin_port = RT_H2N_U16(pAddr->uPort);
305 pDst->IPv6.sin6_port = RT_H2N_U16(pAddr->uPort);
/vbox/include/iprt/
H A Dcdefs.h2093 /** @def RT_H2N_U16
2095 #define RT_H2N_U16(u16) RT_H2BE_U16(u16) macro

Completed in 1564 milliseconds