OSDN Git Service

samples: pktgen: add missing IPv6 option to pktgen scripts
authorJuhee Kang <claudiajkang@gmail.com>
Thu, 12 Aug 2021 15:08:13 +0000 (00:08 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Aug 2021 10:02:09 +0000 (11:02 +0100)
commit0f0c4f1b72e090b23131700bb155944cc28b2a7b
tree1dc881a9d04a4256e1f91415a6e7f9ec0796b729
parent7caeabd726f22e6a6c44c434574fb489986e5baa
samples: pktgen: add missing IPv6 option to pktgen scripts

Currently, "sample04" and "sample05" are not working properly when
running with an IPv6 option("-6"). The commit 0f06a6787e05 ("samples:
Add an IPv6 "-6" option to the pktgen scripts") has omitted the addition
of this option at "sample04" and "sample05".

In order to support IPv6 option, this commit adds logic related to IPv6
option.

Fixes: 0f06a6787e05 ("samples: Add an IPv6 "-6" option to the pktgen scripts")

Signed-off-by: Juhee Kang <claudiajkang@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/pktgen/pktgen_sample04_many_flows.sh
samples/pktgen/pktgen_sample05_flow_per_thread.sh