From: Jesper Dangaard Brouer <brouer@redhat.com>
To: "Daniel T. Lee" <danieltimlee@gmail.com>
Cc: "Toke Høiland-Jørgensen" <toke@redhat.com>,
"David S . Miller" <davem@davemloft.net>,
netdev@vger.kernel.org, brouer@redhat.com
Subject: Re: [PATCH net-next v5 4/4] samples: pktgen: allow to specify destination IP range (CIDR)
Date: Mon, 7 Oct 2019 10:19:19 +0200 [thread overview]
Message-ID: <20191007101919.13c7f4cc@carbon> (raw)
In-Reply-To: <20191005082509.16137-5-danieltimlee@gmail.com>
On Sat, 5 Oct 2019 17:25:09 +0900
"Daniel T. Lee" <danieltimlee@gmail.com> wrote:
> Currently, kernel pktgen has the feature to specify destination
> address range for sending packet. (e.g. pgset "dst_min/dst_max")
>
> But on samples, each pktgen script doesn't have any option to achieve this.
>
> This commit adds the feature to specify the destination address range with CIDR.
>
> -d : ($DEST_IP) destination IP. CIDR (e.g. 198.18.0.0/15) is also allowed
>
> # ./pktgen_sample01_simple.sh -6 -d fe80::20/126 -p 3000 -n 4
> # tcpdump ip6 and udp
> 05:14:18.082285 IP6 fe80::99.71 > fe80::23.3000: UDP, length 16
> 05:14:18.082564 IP6 fe80::99.43 > fe80::23.3000: UDP, length 16
> 05:14:18.083366 IP6 fe80::99.107 > fe80::22.3000: UDP, length 16
> 05:14:18.083585 IP6 fe80::99.97 > fe80::21.3000: UDP, length 16
>
> Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
--
Best regards,
Jesper Dangaard Brouer
MSc.CS, Principal Kernel Engineer at Red Hat
LinkedIn: http://www.linkedin.com/in/brouer
next prev parent reply other threads:[~2019-10-07 8:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-05 8:25 [PATCH net-next v5 0/4] samples: pktgen: allow to specify destination IP range Daniel T. Lee
2019-10-05 8:25 ` [PATCH net-next v5 1/4] samples: pktgen: make variable consistent with option Daniel T. Lee
2019-10-07 7:33 ` Jesper Dangaard Brouer
2019-10-05 8:25 ` [PATCH net-next v5 2/4] samples: pktgen: fix proc_cmd command result check logic Daniel T. Lee
2019-10-07 8:15 ` Jesper Dangaard Brouer
2019-10-07 11:37 ` Daniel T. Lee
2019-10-07 13:20 ` Jesper Dangaard Brouer
2019-10-05 8:25 ` [PATCH net-next v5 3/4] samples: pktgen: add helper functions for IP(v4/v6) CIDR parsing Daniel T. Lee
2019-10-07 8:16 ` Jesper Dangaard Brouer
2019-10-05 8:25 ` [PATCH net-next v5 4/4] samples: pktgen: allow to specify destination IP range (CIDR) Daniel T. Lee
2019-10-07 8:19 ` Jesper Dangaard Brouer [this message]
2019-10-06 13:35 ` [PATCH net-next v5 0/4] samples: pktgen: allow to specify destination IP range David Miller
2019-10-07 13:26 ` David Miller
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=20191007101919.13c7f4cc@carbon \
--to=brouer@redhat.com \
--cc=danieltimlee@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=toke@redhat.com \
/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).