From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qc0-x244.google.com (mail-qc0-x244.google.com [IPv6:2607:f8b0:400d:c01::244]) by dpdk.org (Postfix) with ESMTP id BBAFA18F for ; Fri, 14 Mar 2014 10:30:07 +0100 (CET) Received: by mail-qc0-f196.google.com with SMTP id i17so854137qcy.7 for ; Fri, 14 Mar 2014 02:31:38 -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=ErDQjburw4ZK6Ezw0zXNiXMZ9+xxkPYK6Xw87lhnQ7I=; b=ufPMqNaUEhEbxRM+dUsHJBTekynZDOhyaPBGHSz+tMNOcApohV+EuXTS6EVuMa8+Y4 QkCbL7MWQl4ryh/QAAmGT343mTO55W4WrSAMhGNZcp19hBhtBzBblPLSLqjwFTBWfmJn jbzsI2zlTuq05FSXuXmFPIYd6z88dNsAdpTc+2nDdspmkGU8yu50G/B5OxFPf5TlfRrN fMkkZWlKfo2D4NByi+wwmIxxYX7d2dM+bKkN8fjHdmBTHtEYtplT4LIz21nRG38gAfDf hLXNuGbEyeIGyxHjn9puFQhV+Vufkf+N9naTD5svCnd7HhP+398syDemtuYgpOvCWjgs nLSw== MIME-Version: 1.0 X-Received: by 10.140.83.47 with SMTP id i44mr1050966qgd.100.1394789497962; Fri, 14 Mar 2014 02:31:37 -0700 (PDT) Received: by 10.96.69.97 with HTTP; Fri, 14 Mar 2014 02:31:37 -0700 (PDT) Date: Fri, 14 Mar 2014 15:01:37 +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] Packet crafting.... 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: Fri, 14 Mar 2014 09:30:08 -0000 Hello friends, As of now... I know on how to create an ipv4 header using the 'struct ipv4_hdr'. My requirement is to craft a packet and sent it via 'rte_eth_tx_burst'. I know that there should be an 'ether_hdr' created before, the packet could be sent. Could someone help me on how to set the address fields and type in 'ether_hdr' and how to put the ipv4 header as the payload for ether_hdr. Thanks in advance