From bcbc92280377217e0c68260998408cb38b1c3aa8 Mon Sep 17 00:00:00 2001 From: Daniel Langesten Date: Thu, 19 Mar 2015 11:58:57 +0100 Subject: added testcode --- testdata/jsoninput | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'testdata') diff --git a/testdata/jsoninput b/testdata/jsoninput index 3695436..af1f8dc 100644 --- a/testdata/jsoninput +++ b/testdata/jsoninput @@ -1,16 +1,18 @@ -{"pkt_len_distrib": "0-199", "as_src": 1, "as_dst": 2, "packets": 2, "bytes": 3, "port_dst": 10, "ip_src": "1.1.1.1", "ip_dst": "2.2.2.2", "port_src": 5} -{"pkt_len_distrib": "0-199", "as_src": 1, "as_dst": 2, "packets": 2, "bytes": 3, "port_dst": 10, "ip_src": "1.1.1.1", "ip_dst": "2.2.2.2", "port_src": 5} -{"pkt_len_distrib": "0-199", "as_src": 1, "as_dst": 2, "packets": 2, "bytes": 3, "port_dst": 10, "ip_src": "1.1.1.1", "ip_dst": "2.2.2.2", "port_src": 5} - -{"pkt_len_distrib": "200-299", "as_src": 1, "as_dst": 2, "packets": 2, "bytes": 3, "port_dst": 10, "ip_src": "1.1.1.1", "ip_dst": "2.2.2.2", "port_src": 5} -{"pkt_len_distrib": "200-299", "as_src": 1, "as_dst": 2, "packets": 2, "bytes": 3, "port_dst": 10, "ip_src": "1.1.1.1", "ip_dst": "2.2.2.2", "port_src": 5} - -{"pkt_len_distrib": "200-299", "as_src": 2, "as_dst": 3, "packets": 2, "bytes": 3, "port_dst": 10, "ip_src": "1.1.1.1", "ip_dst": "2.2.2.2", "port_src": 5} - -{"pkt_len_distrib": "200-299", "as_src": 2, "as_dst": 3, "packets": 2, "bytes": 3, "port_dst": 10, "ip_src": "2.2.2.2", "ip_dst": "1.1.1.1", "port_src": 5} - -{"pkt_len_distrib": "200-299", "as_src": 2, "as_dst": 3, "packets": 2, "bytes": 3, "port_dst": 10, "ip_src": "2.2.2.2", "ip_dst": "1.1.1.1", "port_src": 5} - -{"pkt_len_distrib": "200-299", "as_src": 2, "as_dst": 3, "packets": 2, "bytes": 3, "port_dst": 10, "ip_src": "2.2.2.2", "ip_dst": "1.1.1.1", "port_src": 6} - -{"pkt_len_distrib": "200-299", "as_src": 2, "as_dst": 3, "packets": 2, "bytes": 3, "port_dst": 11, "ip_src": "2.2.2.2", "ip_dst": "1.1.1.1", "port_src": 6} +---- +{"pkt_len_distrib": "0-199", "as_src": 1, "as_dst": 2, "packets": 5, "bytes": 3, "port_dst": 10, "ip_src": "1.1.1.1", "ip_dst": "2.2.2.2", "port_src": 5} +{"pkt_len_distrib": "0-199", "as_src": 1, "as_dst": 2, "packets": 6, "bytes": 3, "port_dst": 10, "ip_src": "1.1.1.1", "ip_dst": "2.2.2.2", "port_src": 5} +{"pkt_len_distrib": "0-199", "as_src": 1, "as_dst": 2, "packets": 7, "bytes": 3, "port_dst": 10, "ip_src": "1.1.1.1", "ip_dst": "2.2.2.2", "port_src": 5} +---- +{"pkt_len_distrib": "200-299", "as_src": 1, "as_dst": 2, "packets": 9, "bytes": 3, "port_dst": 10, "ip_src": "1.1.1.1", "ip_dst": "2.2.2.2", "port_src": 5} +{"pkt_len_distrib": "200-299", "as_src": 1, "as_dst": 2, "packets": 1, "bytes": 3, "port_dst": 10, "ip_src": "1.1.1.1", "ip_dst": "2.2.2.2", "port_src": 5} +---- +{"pkt_len_distrib": "200-299", "as_src": 2, "as_dst": 3, "packets": 7, "bytes": 3, "port_dst": 10, "ip_src": "1.1.1.1", "ip_dst": "2.2.2.2", "port_src": 5} +---- +{"pkt_len_distrib": "200-299", "as_src": 2, "as_dst": 3, "packets": 6, "bytes": 3, "port_dst": 10, "ip_src": "2.2.2.2", "ip_dst": "1.1.1.1", "port_src": 5} +---- +{"pkt_len_distrib": "200-299", "as_src": 2, "as_dst": 3, "packets": 4, "bytes": 3, "port_dst": 10, "ip_src": "2.2.2.2", "ip_dst": "1.1.1.1", "port_src": 5} +---- +{"pkt_len_distrib": "200-299", "as_src": 2, "as_dst": 3, "packets": 1, "bytes": 3, "port_dst": 10, "ip_src": "2.2.2.2", "ip_dst": "1.1.1.1", "port_src": 6} +---- +{"pkt_len_distrib": "200-299", "as_src": 2, "as_dst": 3, "packets": 0, "bytes": 3, "port_dst": 11, "ip_src": "2.2.2.2", "ip_dst": "1.1.1.1", "port_src": 6} +---- -- cgit v1.1