Add script to limit statistics for packets from target/peer MAC address only

This commit is contained in:
Xianjun Jiao 2022-03-28 12:20:28 +02:00
parent 8c9b1b478d
commit efb7b60626

View File

@ -0,0 +1,22 @@
#!/bin/bash
home_dir=$(pwd)
if test -d "/sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr"; then
cd /sys/devices/platform/fpga-axi@0/fpga-axi@0:sdr
else
cd /sys/devices/soc0/fpga-axi\@0/fpga-axi\@0\:sdr
fi
set -x
# set
if [[ -n $1 ]]; then
echo $1 > rx_target_sender_mac_addr
fi
# show
cat rx_target_sender_mac_addr
set +x
cd $home_dir