From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qa0-x244.google.com (mail-qa0-x244.google.com [IPv6:2607:f8b0:400d:c00::244]) by dpdk.org (Postfix) with ESMTP id E25735938 for ; Mon, 17 Mar 2014 09:20:13 +0100 (CET) Received: by mail-qa0-f68.google.com with SMTP id hw13so1797830qab.11 for ; Mon, 17 Mar 2014 01:21:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=iPyN1oGPxawE5shNebBAg6wyr+kBpvOzWmq2NQn6jyg=; b=pJgCC6Rv3VNkKLgPVRoiTqurYkh0jN9RbhbyNJ/tWG5kjVD4eRkW3yTkjDJTmqPrgq SV5N1q6v1UU/Cga/WSXWoGOxU67+aRNpRSj4ckBDzP7zf2r8d/tRzVQyii3tLz9lZim6 0nZ6YDNLXbhRg0l/8EeZPtKFsAXdEjeb5DTBftivI85cxWPbMuoM7RZNy/GfxbRrxIZY yuQWGMzTzPMEGWPLhmqvlKRr7+qnuUtgIvcPhrPyr0+qD3mqJt28IK6+wsOIRKXUl+nn PXH/jJ6AFnt5ySqyt1LZJR52dcdgl1HrTE7ZwKAh+FBV0lojeGhH/RUwrim4S5cZvnv/ vELw== MIME-Version: 1.0 X-Received: by 10.229.139.199 with SMTP id f7mr26721694qcu.2.1395044504866; Mon, 17 Mar 2014 01:21:44 -0700 (PDT) Received: by 10.96.69.97 with HTTP; Mon, 17 Mar 2014 01:21:44 -0700 (PDT) Date: Mon, 17 Mar 2014 13:51:44 +0530 Message-ID: From: sabu kurian To: "dev@dpdk.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Error : dereferencing pointer to incomplete type...... X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2014 08:20:14 -0000 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....