From mboxrd@z Thu Jan 1 00:00:00 1970 From: sabu kurian Subject: Error : dereferencing pointer to incomplete type...... Date: Mon, 17 Mar 2014 13:51:44 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 To: "dev-VfR2kkLFssw@public.gmane.org" Return-path: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hello friends, I get a error like "dereferencing pointer to incomplete type", when I try to fill in the IPv4 headers. Below is the code snippet: struct ether_hdr *ehdr = rte_pktmbuf_mtod(m_pool, struct ether_hdr *); struct ipv4_hdr *iphdr = (struct ipv4_hdr *)(&ehdr[1]); iphdr->packet_id = (uint16_t)0x0001; //This gives error. rte_bswap16(iphdr->packet_id,0x0001); //This format also gives the same error. And also what is the best way to copy an 8 bit (1 byte) value for fields like 'type_of_service' ? will rte_memcpy() work for it ? Thanks in advance....