Changeset 5517
- Timestamp:
- 02/08/10 14:59:43 (6 months ago)
- Files:
-
- 1 modified
-
pm/trunk/audits/passive/profiler/sources/main.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pm/trunk/audits/passive/profiler/sources/main.py
r5492 r5517 243 243 244 244 def _parse_tcp(self, mpkt): 245 if mpkt.flags & MPKT_FORWARDED or \ 246 mpkt.flags & MPKT_IGNORE: 247 return 248 245 249 sport = mpkt.l4_src 246 250 dport = mpkt.l4_dst … … 298 302 299 303 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 300 311 prof = self.get_or_create(mpkt) 301 312 prof.type = HOST_LOCAL_TYPE … … 306 317 307 318 def _parse_icmp(self, mpkt): 319 if mpkt.flags & MPKT_FORWARDED or \ 320 mpkt.flags & MPKT_IGNORE: 321 return 322 308 323 prof = self.get_or_create(mpkt) 309 324 … … 370 385 else: 371 386 ip = mpkt.l3_dst 372 mac = mpkt.l 3_dst387 mac = mpkt.l2_dst 373 388 374 389 for prof in self.profiles[ip]:
