1. 22 Feb, 2008 3 commits
  2. 21 Feb, 2008 2 commits
    • 's avatar
      configuration file :) · 611583fc
      authored
      btw: previous commit added RRD to store # of flows received at hosts too (only these not filtered out with pcap filter)
      
      
      
      git-svn-id: file:///home/svn/mapi/trunk@1385 8d5bb341-7cf1-0310-8cf6-ba355fef3186
      611583fc
    • 's avatar
      packetloss: · 84f4fca2
      authored
       for new gui added cofiguration file and config reader (beta but working)
       everything should be backward-compatible with original commandline arguments
       if NEWGUIONLY is not defined
      
       configuration in file: hosts can be disabled, max. number of flows
       can be limited, timestamp difference among host can be tuned 
      
       reconnection can be turned on on-demand (SIGUSR1, NEWGUIONLY) becouse
       if trying every loop it seems to be more time consuming than acceptable
      
       reconnection was not tested with --enable-reconnect mapi mechanism as
       it was originally based just on retrieving NULL from mapi_read_result,
       however it should work as I modified it with respect to previous commit
       from AK
      
       stats can be cleared (SIGUSR2)
      
       unified reporting of application state
      
       commandline options (NEWGUIONLY)
       
      gui:
       enabled use of rrd server
       improved error reporting
      
      
      
      git-svn-id: file:///home/svn/mapi/trunk@1384 8d5bb341-7cf1-0310-8cf6-ba355fef3186
      84f4fca2
  3. 19 Feb, 2008 1 commit
    • 's avatar
      Changes in packetloss application: · 9f4ff1ed
      authored
      * Corrected mapi_read_results to work properly with reconnection.
        It does not block when a sensor is down with the use of mapi_is_sensor_down.
      * Support for offline sensors.
        An offline sensor will be accepted now and program won't exit. It will continually 
        try to connect with the offline sensor.
      
      
      
      git-svn-id: file:///home/svn/mapi/trunk@1383 8d5bb341-7cf1-0310-8cf6-ba355fef3186
      9f4ff1ed
  4. 15 Feb, 2008 1 commit
  5. 11 Feb, 2008 1 commit
  6. 06 Feb, 2008 1 commit
  7. 01 Feb, 2008 1 commit
  8. 31 Jan, 2008 1 commit
  9. 29 Jan, 2008 4 commits
  10. 21 Jan, 2008 1 commit
    • 's avatar
      packetloss + EXPIRED_FLOWS: · 471e1bd0
      authored
      added timestamps to flow records (only close flow records are paired)
      
      reverted/removed fix introduced in revision 1235, because timestamps should
      solve the problem too. Expired flows cannot be "fragmented" in different read_results
      -- these "fragments" are not fragments, but different flows (with same IPs, ports...
      but different timestamps since now).
      So these flows are not joined, but keep separately and distinguished by timestamps.
      
      Note:
      
      historically timestamp was transformed to epoch counter,
      since now timestamps are timestamps, epochs are epochs :)
      
      eflow_data is flow record with epoch (internal)
       flow_data is flow record without epoch (to send out)
      
      
      packetloss GUI:
      
      everything *Top renamed to *Status
      added "restart" button (requires some back-end shell script)
      some logging/debugging ability
      some reorganization...
      
      
      
      git-svn-id: file:///home/svn/mapi/trunk@1367 8d5bb341-7cf1-0310-8cf6-ba355fef3186
      471e1bd0
  11. 20 Dec, 2007 1 commit
  12. 03 Dec, 2007 2 commits
  13. 28 Nov, 2007 1 commit
  14. 26 Nov, 2007 2 commits
  15. 17 Nov, 2007 1 commit
  16. 13 Nov, 2007 1 commit
  17. 07 Nov, 2007 1 commit
  18. 04 Nov, 2007 1 commit
  19. 03 Nov, 2007 1 commit
  20. 02 Nov, 2007 1 commit
  21. 01 Nov, 2007 1 commit
  22. 28 Oct, 2007 1 commit
  23. 27 Oct, 2007 6 commits
  24. 26 Oct, 2007 1 commit
  25. 25 Oct, 2007 1 commit
  26. 24 Oct, 2007 1 commit
    • 's avatar
      Added support for multiple host, which includes multiple interface support too. · 4ff73f0d
      authored
      Tested with new GUI (PHP); CGI GUI shows just first two hosts.
      
      Flow is assigned to opposite sensor when it appears there too (same flow).
      Unassigned flows are dropped, so filter has not to be exact,
      something void like "greater 0" should work.
      
      The differences against prev. impl. of multiple interface support
      (subject to keep or change?):
      
      prev.:
      Usage: hostA:if1:if2, hostB... "filter"
      
      now:
      Usage: "hostA:if1, hostA:if2" "hostB..." "filter"
      
      -more typing
      +DiMAPI syntax
      ?no need to parse and store device names
      
      prev.:
      mapi_stats("hostA:if1", &(stats1->statstable[i%countA]))
      mapi_stats("hostA:if2", &(stats1->statstable[++i%countA]))
      
      now:
      mapi_stats("host1:if1, host1:if2", &host[0].mapi_stats_dev).
      
      -order of devices not guaranteed so reordering* is done via pointers
      +less mapi function calls
      ?no need to store device names
      ?unique interface names required in case of reordering*
      *)for now, order never changes
      
      prev:
        for(i = 0; i < stats1.count;i++) { // host1
          stats = stats1.statstable[i];
          stats.hostname...
        for(i = 0; i < stats2.count;i++) { // host2
          ...
      
      now:
        for(h = 0; h < hosts; h++) {
          for(d = 0; d < host[h].devices; d++) {
            stats = host[h].mapi_stats_dev[d];
            host[h].name...
      
      parse_hosts() -- not a function (more simple as device names are not parsed and
      stored, just counted)
      
      get_mapi_stats() -- not a function (more simple because of prev. mentioned diffs)
      
      GUI (CSV, PHP, JS) -- several updates
      
      
      
      git-svn-id: file:///home/svn/mapi/trunk@1340 8d5bb341-7cf1-0310-8cf6-ba355fef3186
      4ff73f0d
  27. 23 Oct, 2007 1 commit