From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by dpdk.org (Postfix) with ESMTP id 84E887D4A for ; Thu, 6 Dec 2018 08:09:17 +0100 (CET) Received: by mail-pg1-f171.google.com with SMTP id t13so10205739pgr.11 for ; Wed, 05 Dec 2018 23:09:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3smFVx0v0XTqLAErilWTzYRp17EXAy0V8KVqQYDNg2Q=; b=SLbVDiKKm+2UqZsIGr50EkSYCumfvR6u0GQJvcsBzQEv5aLil3wkCSMbTT/Nox2set WtRY9UwsiqZZjvRKvRWQYZpgUPlj8CyPEVsH8uPzJVfYXyo167f231Wr5hiC/nuuDHMs Qz4bHyoCoa/ZUvRLj7n08vNmItD70/n4SEIXAC/A1299eQrKgu1DOqO0PNMMPbEyASk3 AoOC9iWLEXFuhXNH17XsaGkQFoWvmvAKwzdQicFg1hVNMOekpLyYa/9q/W2Y+8mmrJ01 q/YQs2fOa8Pzg6Fqwekz6awhRACLWtBgVPcLlksZRHPaKdtE5TLFVyaiXk3xU/TBDNn/ ugxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3smFVx0v0XTqLAErilWTzYRp17EXAy0V8KVqQYDNg2Q=; b=ZQV9sYW0IompsnoUZcnKmWlBNDhb7Fgdt3SZqWU+dPm6lpebW/7zKyfzafzncoknLj J0jofZ9XJ+OTimrC2Aw62m0d3hN0/aDpm5vEJM1wOcmnfe/pf+RHNbwHuWQHC5trOVbl bE4J8/K2ONUiUCzwP1rzrb1Ovc6skgvsrKlHUue2bF3lCrIsvGzJoizoXbwhWJPEic50 WVG47EenMcUt2BCTuhXhqhkvTIrMsLOa5PHG9yz16nfR7ZflwKEGmqO0lB3siTm/pbnn Z2eME9Y6DyFIJORcgufkUKmnmA8DHxkwBpwGt+ZIFCxgzgDFqyms4wVnWNEwPjMnmyvv TScg== X-Gm-Message-State: AA+aEWbgG4s3Xn+dckdgU2wWgezU3bBzWcuNvc5idICcZqYUyLpckM9+ yL1liG9S4MEhUf0L8WThBj61eA== X-Google-Smtp-Source: AFSGD/Vtocovm8o2x5+08gkVQjUn81EnlB4CZKAcB0vLlqTqEc4k7zTX3zBn7teOYF+12fRoiwzlSw== X-Received: by 2002:a65:57cb:: with SMTP id q11mr23251547pgr.60.1544080156618; Wed, 05 Dec 2018 23:09:16 -0800 (PST) Received: from xeon-e3 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id v184sm27620145pfb.182.2018.12.05.23.09.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Dec 2018 23:09:16 -0800 (PST) Date: Wed, 5 Dec 2018 23:09:14 -0800 From: Stephen Hemminger To: "bai bakari" <912873551@qq.com> Cc: "dev" Message-ID: <20181205230914.2ea215f2@xeon-e3> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] About the data payload of rte_mbuf? X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2018 07:09:17 -0000 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.