boundstest.py .... ---------------------------------------------------------------------- Ran 4 tests in 0.002s OK chaintest.py .F ====================================================================== FAIL: Test whether or not the chain method of the base class works. ---------------------------------------------------------------------- Traceback (most recent call last): File "chaintest.py", line 84, in test_chain_read "strings not equal \ngot\n%s\nexpected\n%s" % AssertionError: strings not equal got Localhost type 2 IPv4 version 4 hlen 5 tos 0 length 84 id 59067 flags 0 offset 0 ttl 64 protocol 1 checksum 0 src 127.0.0.1 dst 127.0.0.1 ICMPv4 type 8 code 0 checksum 60550 None expected Localhost type 2 IPv4 version 4 hlen 5 tos 0 length 84 id 59067 flags 0 offset 0 ttl 64 protocol 1 checksum 0 src 127.0.0.1 dst 127.0.0.1 ICMPv4 type 8 code 0 checksum 60550 ---------------------------------------------------------------------- Ran 2 tests in 0.003s FAILED (failures=1) 2 30 connectortest.py .E. ====================================================================== ERROR: Test live injection and reception. ---------------------------------------------------------------------- Traceback (most recent call last): File "connectortest.py", line 116, in test_pcap_live ping = ip.data AttributeError: 'NoneType' object has no attribute 'data' ---------------------------------------------------------------------- Ran 3 tests in 0.524s FAILED (errors=1) dnstest.py EEEE ====================================================================== ERROR: test_dns (__main__.dnsTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "dnstest.py", line 95, in test_dns self.assertEqual(dns.name, dnsnew.name, "name not equal") AttributeError: 'dnsquery' object has no attribute 'name' ====================================================================== ERROR: This test reads from a pre-stored pcap file generated with tcpdump and ping on the loopback interface. ---------------------------------------------------------------------- Traceback (most recent call last): File "dnstest.py", line 119, in test_dns_read file = pcap.pcap("dns.out") File "pcap.pyx", line 206, in pcap.pcap.__init__ OSError: BIOCSETIF: dns.out: Device not configured ====================================================================== ERROR: Test the underlying __compare__ functionality of the ---------------------------------------------------------------------- Traceback (most recent call last): File "dnstest.py", line 137, in test_udpv4_compare udp1 = udpv4(packet[file.dloff:len(packet)]) NameError: global name 'udpv4' is not defined ====================================================================== ERROR: This test reads from a pre-stored pcap file generated with ---------------------------------------------------------------------- Traceback (most recent call last): File "dnstest.py", line 153, in test_udpv4_print udp = udpv4(packet[file.dloff:len(packet)]) NameError: global name 'udpv4' is not defined ---------------------------------------------------------------------- Ran 4 tests in 0.002s FAILED (errors=4) ethertest.py ....... ---------------------------------------------------------------------- Ran 7 tests in 0.003s OK icmpv4test.py ..E.. ====================================================================== ERROR: test_icmpv4_ping (__main__.icmpTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "icmpv4test.py", line 144, in test_icmpv4_ping icmp.checksum = icmp_packet.calc_checksum() File "/opt/local/lib/python2.4/site-packages/pcs/__init__.py", line 453, in __setattr__ field.bounds(value) File "/opt/local/lib/python2.4/site-packages/pcs/__init__.py", line 188, in bounds raise FieldBoundsError, "Value must be between 0 and %d" % (2 ** self.width - 1) FieldBoundsError: 'Value must be between 0 and 65535' ---------------------------------------------------------------------- Ran 5 tests in 0.004s FAILED (errors=1) ipv4test.py ..... ---------------------------------------------------------------------- Ran 5 tests in 0.004s OK ipv6test.py ..... ---------------------------------------------------------------------- Ran 5 tests in 0.002s OK printtest.py ....... ---------------------------------------------------------------------- Ran 7 tests in 0.003s OK tcpv4test.py ..F. ====================================================================== FAIL: This test reads from a pre-stored pcap file generated with ---------------------------------------------------------------------- Traceback (most recent call last): File "tcpv4test.py", line 153, in test_ipv4_print "strings are not equal \nexpected %s \ngot %s " % AssertionError: strings are not equal expected version 4 hlen 5 tos 0 length 84 id 59067 flags 0 offset 0 ttl 64 protocol 1 checksum 0 src 127.0.0.1 dst 127.0.0.1 got ---------------------------------------------------------------------- Ran 4 tests in 0.004s FAILED (failures=1) tlv.py udpv4test.py . ---------------------------------------------------------------------- Ran 1 test in 0.000s OK