Changeset 27 for trunk/tool

Show
Ignore:
Timestamp:
04/05/07 18:10:36 (15 years ago)
Author:
andreu
Message:

explicite output to find wrong definition bug - memory leak in renetcolAgg find

Location:
trunk/tool
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tool/renetcolGUI_0_0_3.py

    r18 r27  
    589589            coll_hbox.set_border_width(5) 
    590590            coll_frame.add(coll_hbox) 
    591             button = gtk.CheckButton(" router ") 
     591##            button = gtk.CheckButton(" router ") 
    592592            button.connect("toggled", callback_check_rule, None) 
    593593            coll_hbox.pack_start(button, False, False, 0) 
    594             mainTT.set_tip(button, "Check it to capture all flows from one router and enter the IPv4 address of this router. NOT SUPPORTED IN THIS RELEASE") 
    595             button.show() 
     594            mainTT.set_tip(button, "Check it to capture all flows from one router and enter the IPv4 address of this router. IN TEST") 
     595##            button.show() 
    596596            coll_pbbox = gtk.HButtonBox() 
    597597            coll_hbox.pack_start(coll_pbbox, False, True, 5) 
    598             prefix_entry(45, "Required Format : \n <field> <operation> <address>\nlike 8 = 10.0.0.1 \nor 8 = 10.0.1.0/24 \nor 27 = 2001::1 \nor 27 = 2001::/64 (IPv6 address only on Linux system)\nonly '=' operator for the moment\n------------------------------\nIn this version 0.0.2, you can compare the following fields:\nIPV4_SRC_ADDR: 8\nIPV4_DST_ADDR: 12\nIPV4_NEXT_HOP: 15\nBGP_IPV4_NEXT_HOP: 18\nIPV6_SRC_ADDR: 27\nIPV6_DST_ADDR: 28\nIPV6_NEXT_HOP: 62\nBPG_IPV6_NEXT_HOP: 63\nIP_PROTOCOL_VERSION: 60\n---------------------------", coll_pbbox, "", 0) 
     598            prefix_entry(45, "Required Format : \n <field> <operation> <address>\nlike 8 = 10.0.0.1 \nor 8 = 10.0.1.0/24 \nor 27 = 2001::1 \nor 27 = 2001::/64 (IPv6 address only on Linux system)\nonly '=' operator for the moment\n------------------------------\nIn this version 0.0.7, you can compare the following fields:\nROUTER_SRC_ADDR: 0\nIPV4_SRC_ADDR: 8\nIPV4_DST_ADDR: 12\nIPV4_NEXT_HOP: 15\nBGP_IPV4_NEXT_HOP: 18\nIPV6_SRC_ADDR: 27\nIPV6_DST_ADDR: 28\nIPV6_NEXT_HOP: 62\nBPG_IPV6_NEXT_HOP: 63\nIP_PROTOCOL_VERSION: 60\n---------------------------", coll_pbbox, "", 0) 
    599599            coll_frame2 = gtk.Frame("Disable rules") 
    600600            coll_vbox.pack_start(coll_frame2, False, False, 5) 
     
    724724            operator = rule[1] 
    725725            value = rule[2] 
    726             if (field=='8' or field=='12' or field=='15' or field=='18' or field=='47'): 
     726            if (field=='0' or field=='8' or field=='12' or field=='15' or field=='18' or field=='47'): 
    727727                if (re.match('^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(/\d{1,2})?$',value)): 
    728728                    splitter = value.split('/') 
     
    992992 
    993993    print "---------------------------------------------------------------" 
    994     print "In this version 0.0.3, you can apply rules on the collector based on the following fields:" 
     994    print "In this version 0.0.7, you can apply rules on the collector based on the following fields:" 
    995995    print "IPV4_SRC_ADDR: 8," 
    996996    print "IPV4_DST_ADDR: 12," 
     
    10021002    print "IPV6_NEXT_HOP: 62," 
    10031003    print "BPG_IPV6_NEXT_HOP: 63," 
    1004     print "IP_PROTOCOL_VERSION: 60" 
     1004    print "IP_PROTOCOL_VERSION: 60, please note that the IPv4 template don't have this field" 
     1005    print "ROUTER_SRC_ADDR: 0, here it's not a real number for a field" 
    10051006    print "----------------------------------------------------------------" 
    10061007