Lines Matching defs:IpHdr
200 RTNETIPV4 IpHdr;
202 IpHdr.ip_v = 4;
203 IpHdr.ip_hl = cbIdHdr >> 2;
204 IpHdr.ip_tos = 0;
205 IpHdr.ip_len = RT_H2BE_U16((uint16_t)(cbData + sizeof(RTNETUDP) + cbIdHdr));
206 IpHdr.ip_id = (uint16_t)RTRandU32();
207 IpHdr.ip_off = 0;
208 IpHdr.ip_ttl = 255;
209 IpHdr.ip_p = RTNETIPV4_PROT_UDP;
210 IpHdr.ip_sum = 0;
211 IpHdr.ip_src = SrcIPv4Addr;
212 IpHdr.ip_dst = DstIPv4Addr;
213 IpHdr.ip_sum = RTNetIPv4HdrChecksum(&IpHdr);
215 aSegs[1].pv = &IpHdr;
228 UdpHdr.uh_sum = RTNetIPv4UDPChecksum(&IpHdr, &UdpHdr, pvData);