Changeset 70 for trunk

Show
Ignore:
Timestamp:
04/09/08 08:50:02 (14 years ago)
Author:
andreu
Message:

add the selection from field 4 (L4_PROT)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tool/renetcolGUI.py

    r63 r70  
    286286                else: 
    287287                    myliste += [str(self.flow[1][i])] 
    288         theflow = string.join(myliste, "\t")+"\n"  
     288        theflow = string.join(myliste, "\t")+"\t"+fromRouter+"\n" 
    289289        record_file.write(theflow) 
    290290         
     
    645645            coll_pbbox = gtk.HButtonBox() 
    646646            coll_hbox.pack_start(coll_pbbox, False, True, 5) 
    647             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\nIN_BYTES: 1\nL4_SRC_PORT: 7\nIPV4_SRC_ADDR: 8\nINPUT_SNMP: 10\nL4_DST_PORT: 11\nIPV4_DST_ADDR: 12\nOUTPUT_SNMP: 14\nIPV4_NEXT_HOP: 15\nSRC_AS: 16\nDST_AS: 17\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) 
     647            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\nIN_BYTES: 1\nL4_PROT: 4\nL4_SRC_PORT: 7\nIPV4_SRC_ADDR: 8\nINPUT_SNMP: 10\nL4_DST_PORT: 11\nIPV4_DST_ADDR: 12\nOUTPUT_SNMP: 14\nIPV4_NEXT_HOP: 15\nSRC_AS: 16\nDST_AS: 17\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) 
    648648            coll_frame2 = gtk.Frame("Disable rules") 
    649649            coll_vbox.pack_start(coll_frame2, False, False, 5) 
     
    819819                    check_dialog( widget, None, "Wrong value, must be < 4294967295 !") 
    820820                    is_good = 0 
    821             if (field=='7' or field=='11'): 
     821            if (field=='7' or field=='11' or field=='4'): 
    822822                if (int(value) < 65536): 
    823823                    is_good = 1 
     
    10771077    print "In this version, you can only apply rules on the collector based on the following fields:" 
    10781078    print "IN_BYTES: 1," 
     1079    print "L4_PROT: 4," 
    10791080    print "L4_SRC_PORT: 7," 
    10801081    print "IPV4_SRC_ADDR: 8,"