Skip to content

Commit 2eda533

Browse files
committed
Debug.
1 parent e7ead32 commit 2eda533

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

tests/playback/playback1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
BASEDIR="`dirname "${0}"`/.."
88
SUDO_REQUIRED=1
99

10+
set -x
11+
1012
. "${BASEDIR}/functions"
1113
. "${BASEDIR}/playback/playback1.sub"
1214

tests/playback/playback1.sub

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
checktos() {
2-
RES="`${SUDO} ${TCPDUMP} -r "${1}" -v | grep 'tos ' | sed 's|.*tos ||;s|,.*||' | uniq`"
2+
ls -l "${1}"
3+
namei -l "${1}"
4+
getfacl "${1}" || true
5+
if ! ${TCPDUMP} -r "${1}" >/dev/null 2>&1
6+
then
7+
cp "`which tcpdump`" /tmp
8+
local TCPDUMP="/tmp/tcpdump"
9+
fi
10+
RES="`${TCPDUMP} -r "${1}" -v | grep 'tos ' | sed 's|.*tos ||;s|,.*||' | uniq`"
311
test "${RES}" = "${2}"
412
report "checking TOS [${RES}]"
513
}

0 commit comments

Comments
 (0)