DPDK usage discussions
 help / color / mirror / Atom feed
From: "Wiles, Keith" <keith.wiles@intel.com>
To: Stefano Salsano <stefano.salsano@uniroma2.it>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] generate ipv6 packets with pktgen
Date: Sat, 16 Jun 2018 13:24:55 +0000	[thread overview]
Message-ID: <ADE73C4A-0939-493C-AC07-4C3BF5F30AAE@intel.com> (raw)
In-Reply-To: <f1cab9cf-fdd9-deed-565b-d448ac9daad9@uniroma2.it>



> On Jun 15, 2018, at 6:52 PM, Stefano Salsano <stefano.salsano@uniroma2.it> wrote:
> 
> Hi all,
> 
> I need to generate IPv6 packets with pktgen, but I am NOT able to set the IPv6 src and dst address
> 
> when I only change the packet type of port 0 to IPv6
> 
> Pktgen:/> set 0 type ipv6
> Pktgen:/> start 0
> 
> pktgen sends IPv6 packets with meaningless IPv6 addresses
> here is the tcpdump output:
> 18:23:37.777126 IP6 ::101:a8c0:0:0.0 > ::101:a8c0:0:0.0: Flags [.], ack 1, win 8192, length 0
> 
> but if I try to set the src and dst addresses:
> 
> Pktgen:/> set 0 dst ip 2000::1
> Pktgen:/> set 0 src ip 2000::2/64
> 
> the IP (v4) addresses in the main page display are zeroed:
> Dst  IP Address   :             0.0.0.0
> Src  IP Address   :             0.0.0.0
> 
> and when I ask to generate packets
> Pktgen:/> start 0
> 
> pktgen sends IPv6 packets with "zeroed" addresses
> 18:48:42.475672 IP6 ::.0 > ::.0: Flags [.], ack 1, win 8192, length 0
> 
> is it possible to set the IPv6 addresses?

The IPv6 address is suppose to be constructed using the IPv4 address, but I guess I did not get that right. I will have to look into the problem unless you would like to fix the problem as I can take patches.

> 
> thank you
> Stefano
> 
> -- 
> *******************************************************************
> Stefano Salsano
> Professore Associato
> Dipartimento Ingegneria Elettronica
> Universita' di Roma Tor Vergata
> Viale Politecnico, 1 - 00133 Roma - ITALY
> 
> http://netgroup.uniroma2.it/Stefano_Salsano/
> 
> E-mail  : stefano.salsano@uniroma2.it
> Cell.   : +39 320 4307310
> Office  : (Tel.) +39 06 72597770 (Fax.) +39 06 72597435
> *******************************************************************
> 

Regards,
Keith

  reply	other threads:[~2018-06-16 13:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-15 23:52 Stefano Salsano
2018-06-16 13:24 ` Wiles, Keith [this message]
2018-06-16 19:06   ` Stefano Salsano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ADE73C4A-0939-493C-AC07-4C3BF5F30AAE@intel.com \
    --to=keith.wiles@intel.com \
    --cc=stefano.salsano@uniroma2.it \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).