- ip.ipHeader.ip_src.s_addr = data->srcAddr;
- ip.ipHeader.ip_dst.s_addr = data->dstAddr;
- ip.sPort = data->srcPort;
- ip.dPort = data->dstPort;
+ ip.header.ipHeader.ip_src.s_addr = data->srcAddr;
+ ip.header.ipHeader.ip_dst.s_addr = data->dstAddr;
+ ip.header.sPort = data->srcPort;
+ ip.header.dPort = data->dstPort;