|
@@ -25,7 +25,9 @@ root_check_run_with_sudo "$@"
|
|
|
# Parameter parsing via include
|
|
|
source ${basedir}/parameters.sh
|
|
|
# Set some default params, if they didn't get set
|
|
|
-[ -z "$DEST_IP" ] && DEST_IP="198.18.0.42"
|
|
|
+if [ -z "$DEST_IP" ]; then
|
|
|
+ [ -z "$IP6" ] && DEST_IP="198.18.0.42" || DEST_IP="FD00::1"
|
|
|
+fi
|
|
|
[ -z "$DST_MAC" ] && DST_MAC="90:e2:ba:ff:ff:ff"
|
|
|
[ -z "$BURST" ] && BURST=32
|
|
|
[ -z "$CLONE_SKB" ] && CLONE_SKB="100000"
|
|
@@ -55,7 +57,7 @@ for ((thread = 0; thread < $THREADS; thread++)); do
|
|
|
|
|
|
# Destination
|
|
|
pg_set $dev "dst_mac $DST_MAC"
|
|
|
- pg_set $dev "dst $DEST_IP"
|
|
|
+ pg_set $dev "dst$IP6 $DEST_IP"
|
|
|
|
|
|
# Setup burst, for easy testing -b 0 disable bursting
|
|
|
# (internally in pktgen default and minimum burst=1)
|