fix a slight bug in dumbdecode

This commit is contained in:
pi-rho 2013-02-07 09:34:09 -06:00
parent 332b9ae5dc
commit d4060cee5e
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ shift $((OPTIND-1))
if [[ $# == 0 ]]; then usage; fi if [[ $# == 0 ]]; then usage; fi
pmerge "$@" | puniq - | pcat | while read ts proto src dst payload; do pmerge "$@" | puniq - | pcat | while read ts proto src dst payload; do
when=$(date --utc --rfc-3339=ns -d "@$ts") src=${src%,*} dst=${dst%,*} local when=$(date --utc --rfc-3339=ns -d "@$ts") src=${src%,*} dst=${dst%,*}
printf "Packet %s None: None\n" $proto printf "Packet %s None: None\n" $proto
printf " %s -> %s (%s)\n" ${src/,/:} ${dst/,/:} "${when/\+00:00/Z}" printf " %s -> %s (%s)\n" ${src/,/:} ${dst/,/:} "${when/\+00:00/Z}"
echo $payload | unhex | hdng -w ${width} echo $payload | unhex | hdng -w ${width}