[nycbug-talk] pcs issues

Mark Saad mark.saad at ymail.com
Thu Jun 21 15:20:09 EDT 2012

 I was testing out some of the examples from the pcs talk last month,
and I am running into some errors. I wanted to see if anyone could
shed some light on this.

Here is what I did

root at nymirror1:/usr/local/share/examples/pcs # python ddos_analyze.py
-f /usr/local/pcap-logs/26-nybweb1.pcap -m 25 -s -n
Traceback (most recent call last):
  File "ddos_analyze.py", line 105, in <module>
  File "ddos_analyze.py", line 87, in main
    if (ip.src & mask) != network:
  File "/usr/local/lib/python2.7/site-packages/pcs/__init__.py", line
1061, in __getattribute__
    return object.__getattribute__(self, name)
AttributeError: 'arp' object has no attribute 'src'

I am using python 2.7.3,  I had the same results with 2.6.6,  on
FreeBSD 9-STABLE amd64 .

The pcap file was created this way

tcpdump -i igb1 -s 1500 -w /usr/local/pcap-logs/26-nybweb1.pcap

I am using py-pcs 0.6 I also tried 0.7 and had the same results.

What am I doing wrong here ?

Mark Saad | mark.saad at ymail.com

More information about the talk mailing list