Changeset 5517

Show
Ignore:
Timestamp:
02/08/10 14:59:43 (6 months ago)
Author:
nopper
Message:

Fixing profiler audit

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pm/trunk/audits/passive/profiler/sources/main.py

    r5492 r5517  
    243243 
    244244    def _parse_tcp(self, mpkt): 
     245        if mpkt.flags & MPKT_FORWARDED or \ 
     246           mpkt.flags & MPKT_IGNORE: 
     247            return 
     248 
    245249        sport = mpkt.l4_src 
    246250        dport = mpkt.l4_dst 
     
    298302 
    299303    def _parse_arp(self, mpkt): 
     304        if mpkt.context: 
     305            mpkt.context.check_forwarded(mpkt) 
     306 
     307        if mpkt.flags & MPKT_FORWARDED or \ 
     308           mpkt.flags & MPKT_IGNORE: 
     309            return 
     310 
    300311        prof = self.get_or_create(mpkt) 
    301312        prof.type = HOST_LOCAL_TYPE 
     
    306317 
    307318    def _parse_icmp(self, mpkt): 
     319        if mpkt.flags & MPKT_FORWARDED or \ 
     320           mpkt.flags & MPKT_IGNORE: 
     321            return 
     322 
    308323        prof = self.get_or_create(mpkt) 
    309324 
     
    370385        else: 
    371386            ip = mpkt.l3_dst 
    372             mac = mpkt.l3_dst 
     387            mac = mpkt.l2_dst 
    373388 
    374389        for prof in self.profiles[ip]: