Merge branch 'master' of gitlab.ethz.ch:nicosc/master-thesis
This commit is contained in:
commit
854260984e
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "$0 intf name"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -x
|
||||
cd ~/master-thesis/pcap
|
||||
|
||||
intf=$1
|
||||
name=$2
|
||||
|
||||
now=$(date +%F-%H%M)
|
||||
filename=${name}-${now}-${intf}.pcap
|
||||
|
||||
sudo tcpdump -ni ${intf} -w "${filename}"
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -x
|
||||
|
||||
read=yes
|
||||
if [ $# -ge 1 ]; then
|
||||
read=""
|
||||
fi
|
||||
|
||||
for addr in $(seq 1 8); do
|
||||
ip=2001:db8:42::$addr
|
||||
echo "Next to ping: ${ip}"
|
||||
if [ "$read" ]; then
|
||||
read dummy
|
||||
fi
|
||||
ping6 -c1 "$ip"
|
||||
done
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue