From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: About the data payload of rte_mbuf? Date: Thu, 6 Dec 2018 09:22:25 -0800 Message-ID: <20181206092225.3702262e@xeon-e3> References: <20181205230914.2ea215f2@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: bai bakari <912873551@qq.com>, dev To: "Wiles, Keith" Return-path: Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by dpdk.org (Postfix) with ESMTP id 7E27F5F36 for ; Thu, 6 Dec 2018 18:22:30 +0100 (CET) Received: by mail-pg1-f180.google.com with SMTP id y4so420930pgc.12 for ; Thu, 06 Dec 2018 09:22:30 -0800 (PST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 6 Dec 2018 15:17:19 +0000 "Wiles, Keith" wrote: > > On Dec 6, 2018, at 12:09 AM, Stephen Hemminger wrote: > > > > On Thu, 6 Dec 2018 11:45:22 +0800 > > "bai bakari" <912873551@qq.com> wrote: > > > >> when i send packets using dpdk-pktgen, i found: > >> ip_len = 46 > >> ip_header_len = 20 > >> but the tcp_header_len=(tcp_hdr->data_off << 2)=0, > >> and (payload - (uint8_t *)ipv4_hdr) = 340 > ip_len. > > > > > > dpdk pktgen sends UDP not TCP. > > Not sure I understand this statement Pktgen can send UDP or TCP, it depends on the configuration. Does your statement mean Pktgen has a bug or what ? > > Regards, > Keith > I just wanted to make sure that user had configured TCP, and not UDP>