l7-protocol: import from old package repository

l7-protocol classifies packets based on patterns in application layer data.
This commit is contained in:
gwlim
2014-09-21 09:15:21 +08:00
parent 032feefa7d
commit f9f85e33ad
4 changed files with 232 additions and 0 deletions
@@ -0,0 +1,16 @@
--- a/testing/doallspeeds.sh
+++ b/testing/doallspeeds.sh
@@ -25,11 +25,11 @@ for f in ../*/*.pat; do
printf `basename $f .pat`
if [ $userspace ]; then
- gtime=`./timeit.sh $f userspace real | grep Total | cut -d\ -f 2`
+ gtime=`./timeit.sh $f userspace real | grep Total | cut -d\ -f 2 | awk '{print $1}'`
printf \\t$gtime
fi
if [ $kernel ]; then
- htime=`./timeit.sh $f kernel real | grep Total | cut -d\ -f 2`
+ htime=`./timeit.sh $f kernel real | grep Total | cut -d\ -f 2 | awk '{print $1}'`
printf \\t$htime
fi
printf \\n