Skip to content

Commit 74b1ddd

Browse files
committed
Nettisa: Added functional tests
1 parent afaaf80 commit 74b1ddd

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

tests/functional/Makefile.am

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ TESTS=basic.sh \
1717
bstats.sh \
1818
phists.sh \
1919
wg.sh \
20-
ssadetector.sh
20+
ssadetector.sh \
21+
nettisa.sh
2122

2223
if WITH_QUIC
2324
TESTS+=\
@@ -45,6 +46,7 @@ EXTRA_DIST=common.sh \
4546
phists.sh \
4647
wg.sh \
4748
quic.sh \
49+
nettisa.sh \
4850
ssadetector.sh \
4951
reference/basic \
5052
reference/basicplus \
@@ -66,7 +68,8 @@ EXTRA_DIST=common.sh \
6668
reference/phists \
6769
reference/wg \
6870
reference/quic \
69-
reference/ssadetector
71+
reference/ssadetector \
72+
reference/nettisa
7073

7174
clean-local:
7275
rm -rf output

tests/functional/nettisa.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
test -z "$srcdir" && export srcdir=.
4+
5+
. $srcdir/common.sh
6+
7+
run_plugin_test nettisa "$pcap_dir/mixed.pcap"

tests/functional/reference/nettisa

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
10.5.5.1,10.5.5.26,272,0,0,2016-10-28T17:07:52.625696,2016-10-28T17:07:57.631693,6c:62:6d:2a:c7:4e,a0:f3:c1:16:5a:ca,25.333334,611.153259,5005910.000000,70.666664,1668665.625000,1668694.625000,0.000000,70.767227,10.392304,0.666667,0.333339,3,0,0,76,68,0,0,1,0,0
2+
10.5.5.1,10.5.5.26,328,328,0,2016-10-28T17:06:17.461564,2016-10-28T17:06:37.481086,6c:62:6d:2a:c7:4e,a0:f3:c1:16:5a:ca,150.000000,0.000000,20019522.000000,300.000000,10009761.000000,10009761.000000,0.000000,300.000000,0.000000,0.500000,0.500008,1,1,67,300,300,68,0,17,0,0
3+
10.5.5.1,10.5.5.26,328,328,0,2016-10-28T17:11:37.650427,2016-10-28T17:11:57.671334,6c:62:6d:2a:c7:4e,a0:f3:c1:16:5a:ca,150.000000,0.000000,20020908.000000,300.000000,10010454.000000,10010454.000000,0.000000,300.000000,0.000000,0.500000,0.500008,1,1,67,300,300,68,0,17,0,0
4+
10.5.5.1,10.5.5.26,392,0,0,2016-10-28T17:06:17.462202,2016-10-28T17:06:32.476174,6c:62:6d:2a:c7:4e,a0:f3:c1:16:5a:ca,19.500000,0.000000,5005149.000000,78.000000,3753493.000000,7507325.000000,0.000000,78.000000,0.000000,0.250000,0.361046,4,0,0,78,78,0,0,1,0,0
5+
10.5.5.1,10.5.5.26,392,0,0,2016-10-28T17:11:37.651018,2016-10-28T17:11:52.666410,6c:62:6d:2a:c7:4e,a0:f3:c1:16:5a:ca,19.500000,0.000000,5005186.000000,78.000000,3753848.000000,7507712.000000,0.000000,78.000000,0.000000,0.250000,0.361111,4,0,0,78,78,0,0,1,0,0
6+
10.5.5.1,10.5.5.26,448,0,0,2016-10-28T17:01:54.088536,2016-10-28T17:01:57.087644,6c:62:6d:2a:c7:4e,a0:f3:c1:16:5a:ca,23.000000,0.000000,1000056.000000,92.000000,749777.000000,1499327.500000,0.000000,92.000000,0.000000,0.250000,0.361152,4,0,0,92,92,0,0,1,0,0
7+
10.5.5.1,10.5.5.26,516,420,0,2016-10-28T17:03:29.934302,2016-10-28T17:03:48.955451,6c:62:6d:2a:c7:4e,a0:f3:c1:16:5a:ca,10.104330,5390.959961,15023400.000000,65.090912,1729195.250000,15474484.000000,0.000000,65.182259,4.871042,0.181818,0.192280,6,5,0,76,64,0,0,1,0,0
8+
10.5.5.26,10.5.5.1,2952,0,0,2016-10-28T17:01:17.272499,2016-10-28T17:01:17.274753,a0:f3:c1:16:5a:ca,6c:62:6d:2a:c7:4e,33.333332,0.000000,1591.000000,300.000000,250.444458,576.777771,0.000000,300.000000,0.000000,0.111111,0.141194,9,0,68,300,300,67,0,17,0,0
9+
255.255.255.255,0.0.0.0,6560,0,0,2016-10-28T17:00:23.213758,2016-10-28T17:01:17.274510,ff:ff:ff:ff:ff:ff,a0:f3:c1:16:5a:ca,15.000000,0.000000,3003296.000000,300.000000,2703037.500000,28380640.000000,0.000000,300.000000,0.000000,0.050000,0.181428,20,0,67,300,300,68,0,17,0,0
10+
8.8.4.4,10.5.5.1,136,0,0,2016-10-28T17:07:52.626302,2016-10-28T17:07:57.631374,a0:f3:c1:16:5a:ca,6c:62:6d:2a:c7:4e,20.000000,0.000000,5005072.000000,40.000000,2502536.000000,2502536.000000,0.000000,40.000000,0.000000,0.500000,0.500004,2,0,53,40,40,36338,0,17,0,0
11+
8.8.4.4,10.5.5.1,140,0,0,2016-10-28T17:06:17.461885,2016-10-28T17:06:22.466977,a0:f3:c1:16:5a:ca,6c:62:6d:2a:c7:4e,21.000000,0.000000,5005092.000000,42.000000,2502546.000000,2502546.000000,0.000000,42.000000,0.000000,0.500000,0.500004,2,0,53,42,42,46653,0,17,0,0
12+
8.8.4.4,10.5.5.1,140,0,0,2016-10-28T17:06:27.472143,2016-10-28T17:06:32.475855,a0:f3:c1:16:5a:ca,6c:62:6d:2a:c7:4e,21.000000,0.000000,5003712.000000,42.000000,2501856.000000,2501856.000000,0.000000,42.000000,0.000000,0.500000,0.500004,2,0,53,42,42,48654,0,17,0,0
13+
8.8.4.4,10.5.5.1,140,0,0,2016-10-28T17:11:37.650739,2016-10-28T17:11:42.655851,a0:f3:c1:16:5a:ca,6c:62:6d:2a:c7:4e,21.000000,0.000000,5005112.000000,42.000000,2502556.000000,2502556.000000,0.000000,42.000000,0.000000,0.500000,0.500004,2,0,53,42,42,35057,0,17,0,0
14+
8.8.4.4,10.5.5.1,140,0,0,2016-10-28T17:11:47.661004,2016-10-28T17:11:52.666114,a0:f3:c1:16:5a:ca,6c:62:6d:2a:c7:4e,21.000000,0.000000,5005110.000000,42.000000,2502555.000000,2502555.000000,0.000000,42.000000,0.000000,0.500000,0.500004,2,0,53,42,42,54893,0,17,0,0
15+
8.8.4.4,10.5.5.1,2520,0,0,2016-10-28T17:01:54.088087,2016-10-28T17:02:23.087212,a0:f3:c1:16:5a:ca,6c:62:6d:2a:c7:4e,2.133333,0.000000,1000054.000000,64.000000,966637.500000,14499148.000000,0.000000,64.000000,0.000000,0.033333,0.103338,30,0,0,64,64,0,0,1,0,0
16+
fe80::a2f3:c1ff:fe16:5aca,fe80::6e62:6dff:fe2a:c74e,144,1104,0,2016-10-28T17:06:56.803604,2016-10-28T17:07:05.803562,a0:f3:c1:16:5a:ca,6c:62:6d:2a:c7:4e,16.146566,6.295107,1000638.000000,56.000000,692304.437500,4232022.500000,0.000000,57.901775,14.717862,0.384615,0.396147,2,11,0,64,24,0,0,58,0,0
17+
ff02::1,fe80::6e62:6dff:fe2a:c74e,1040,0,0,2016-10-28T17:06:56.803029,2016-10-28T17:07:05.803271,33:33:00:00:00:01,6c:62:6d:2a:c7:4e,6.400000,0.000000,1001126.000000,64.000000,900024.187500,4500297.000000,0.000000,64.000000,0.000000,0.100000,0.214031,10,0,0,64,64,0,0,58,0,0
18+
ff02::16,::,152,0,0,2016-10-28T17:00:21.971095,2016-10-28T17:00:22.311142,33:33:00:00:00:16,6c:62:6d:2a:c7:4e,14.000000,0.000000,340047.000000,28.000000,170023.500000,170023.500000,0.000000,28.000000,0.000000,0.500000,0.500041,2,0,0,28,28,0,0,58,0,0
19+
ff02::16,fe80::6e62:6dff:fe2a:c74e,152,0,0,2016-10-28T17:00:23.343220,2016-10-28T17:00:23.503151,33:33:00:00:00:16,6c:62:6d:2a:c7:4e,14.000000,0.000000,159931.000000,28.000000,79965.500000,79965.500000,0.000000,28.000000,0.000000,0.500000,0.500088,2,0,0,28,28,0,0,58,0,0
20+
ff02::2,fe80::6e62:6dff:fe2a:c74e,144,0,0,2016-10-28T17:00:23.376047,2016-10-28T17:00:31.378011,33:33:00:00:00:02,6c:62:6d:2a:c7:4e,2.666667,0.000000,4003018.000000,8.000000,2667321.250000,4001660.500000,0.000000,8.000000,0.000000,0.333333,0.416328,3,0,0,8,8,0,0,58,0,0
21+
ipaddr DST_IP,ipaddr SRC_IP,uint64 BYTES,uint64 BYTES_REV,uint64 LINK_BIT_FIELD,time TIME_FIRST,time TIME_LAST,macaddr DST_MAC,macaddr SRC_MAC,float NTS_AVERAGE_DISPERSION,float NTS_KURTOSIS,float NTS_MAX_DIFFTIMES,float NTS_MEAN,float NTS_MEAN_DIFFTIMES,float NTS_MEAN_SCALED_TIME,float NTS_MIN_DIFFTIMES,float NTS_ROOT_MEAN_SQUARE,float NTS_STDEV,float NTS_SWITCHING_RATIO,float NTS_TIME_DISTRIBUTION,uint32 PACKETS,uint32 PACKETS_REV,uint16 DST_PORT,uint16 NTS_MAX,uint16 NTS_MIN,uint16 SRC_PORT,uint8 DIR_BIT_FIELD,uint8 PROTOCOL,uint8 TCP_FLAGS,uint8 TCP_FLAGS_REV

0 commit comments

Comments
 (0)