Commit Graph

409 Commits

Author SHA1 Message Date
Brian Wylie f72b05b408 fix alias for pypi release 2017-03-23 15:48:25 -06:00
Brian Wylie 802a4f618b Merge pull request #357 from kbandla/update_readme
fix bullet list in readme
2017-03-23 15:17:25 -06:00
Brian Wylie 487788d44c fix bullet list in readme 2017-03-23 15:16:50 -06:00
Brian Wylie 71a2cdddef Merge pull request #356 from kbandla/update_readme
update readme
2017-03-23 15:14:06 -06:00
Brian Wylie 683b841504 update readme 2017-03-23 15:07:04 -06:00
Brian Wylie ba8d3fab3b Merge pull request #355 from kbandla/py3_example_fix
Py3 example fix
2017-03-23 14:49:57 -06:00
Brian Wylie 4bbbefe31e moving old examples to old directory 2017-03-23 14:45:24 -06:00
Brian Wylie aa8f898778 Merge branch 'master' into py3_example_fix 2017-03-23 14:39:42 -06:00
Brian Wylie e9c1d894e6 Merge branch 'master' into py3_example_fix 2017-03-23 14:39:17 -06:00
Brian Wylie 8dc4f3ceb6 Merge pull request #354 from kbandla/remove_deprecated_methods
removing all the deprecated methods
2017-03-23 14:27:20 -06:00
Brian Wylie 83f1157614 removing all the deprecated methods (note these have been decorated with a warning message for almost 2 years) 2017-03-23 14:21:33 -06:00
Brian Wylie 3412c4f948 Merge pull request #344 from kbandla/dhcp_header_py3
change a few dhcp header fields to be initialized with bytes
2017-03-23 10:38:56 -06:00
Brian Wylie d30ece1483 Merge pull request #336 from scott-hand/py3http
Python 3 support for bytes in and out of http module classes
2017-03-23 09:39:46 -06:00
Brian Wylie 9b8627fa2e Merge pull request #350 from dtrodrigues/pim
add pim tests
2017-03-19 20:42:08 -06:00
Brian Wylie 7f72ec6ba8 Merge pull request #349 from dtrodrigues/tcp
test gettting, setting header offset in TCP
2017-03-19 20:41:28 -06:00
Brian Wylie 51ffabdb38 Merge pull request #351 from dtrodrigues/sll
add sll tests
2017-03-19 20:36:18 -06:00
Dustin Rodrigues d3a99149bf add sll tests 2017-03-19 15:58:29 -04:00
Dustin Rodrigues 175ba6551c add pim tests 2017-03-19 15:13:29 -04:00
Dustin Rodrigues e7d7e167d8 test gettting, setting header offset in TCP 2017-03-19 14:14:06 -04:00
Brian Wylie 962cb2224a Merge pull request #348 from dtrodrigues/aim
full test coverage for aim module, more descriptive tlv parsing error
2017-03-18 14:03:53 -06:00
Dustin Rodrigues d38e0b5d0d python version agnostic error handling testing 2017-03-18 12:45:11 -04:00
Dustin Rodrigues 03738b6682 correct number of values for tlv return 2017-03-18 12:24:22 -04:00
Dustin Rodrigues 6a0fc0c0b0 support python3 2017-03-18 12:19:31 -04:00
Dustin Rodrigues e4419be7d5 fixed minor aim code quality issues 2017-03-18 12:10:58 -04:00
Dustin Rodrigues b3ee13d7fb full test coverage for aim module, more descriptive error message in tlv parsing 2017-03-18 12:05:04 -04:00
Brian Wylie b0e08db147 Merge pull request #346 from kbandla/remove_download_badge
removing pypi download badge
2017-03-16 16:34:19 -06:00
Brian Wylie 4e83ba519c removing pypi download badge 2017-03-16 16:27:47 -06:00
Brian Wylie 01a44e66d5 adding asserts to both the initialize with data and default initialization 2017-03-15 18:27:22 -06:00
Brian Wylie 0a563c4a07 fix dhcprequest and print_http_requests 2017-03-15 17:41:29 -06:00
Brian Wylie 8a0f4ecafd Merge branch 'dhcp_header_py3' into py3_example_fix 2017-03-15 17:09:30 -06:00
Brian Wylie 15b7c39829 change a few dhcp header fields to be initialized with bytes 2017-03-15 17:03:38 -06:00
Scott Hand 47dfab3def Uses OrderedDict to maintain header ordering 2017-03-15 15:39:39 -05:00
Brian Wylie 3b7678b6a6 Merge pull request #339 from dtrodrigues/rtp
add RTP tests
2017-03-14 18:54:13 -06:00
Dustin Rodrigues a811b4cb4d test setting of marker bit in RTP 2017-03-14 18:07:54 -04:00
Dustin Rodrigues bb747e6d4b add comment about testing setters 2017-03-14 17:28:11 -04:00
Dustin Rodrigues 87a19f1412 add RTP tests 2017-03-14 16:58:29 -04:00
Brian Wylie 0d47d2e2b9 Merge pull request #338 from dtrodrigues/add-tests
add IP version and header length tests
2017-03-14 09:18:23 -06:00
Dustin Rodrigues ef19882a41 add IP version and header length tests 2017-03-13 23:25:09 -04:00
Scott Hand 2e4a857d55 Updates http module to use bytes in and out 2017-03-10 17:41:27 -06:00
Scott Hand a53bcf1a47 Adds test case for problems with Python 3 HTTP parsing 2017-03-10 16:03:12 -06:00
Tomas Mlcoch 64f92ec7d7 Refactor module initialization to handle circular imports (#330)
* Add _mod_init() functions (#324)

These functions are automatically called at the end of dpkt module
(package) initialization.

Purpose is to reduce impact of circular dependencies between
various dpkt modules during intitialization.

* Small refactoring of gre module

Remove unused '_protosw' class attr and code that populates it.
Move import of ethernet module at the beginning of the file
because it doesn't make a sense to keep it in the middle of
module now when the redundant code was removed.

* Small refactoring of ip6 module

Now when _mod_init() functions were introduced, we can set
_protosw class attr of IP6 class directly in class definition
and remove extra code that handled this after class was defined.
2017-02-23 09:04:03 -08:00
Yoshiyuki Kurauchi 279f83792c checksum calc fix #332 (#333)
* checksum calc fix - Issue#332
* py3 compat and unit test for hexdump, cksum
2017-02-06 13:33:18 -08:00
Ilia Galkin 37a66e6cd9 BUGFIX dpkt/ip.py: Do not parse L4 headers for fragmented IP packets with offset > 0 (#329) 2017-02-04 23:26:45 -08:00
Oscar 427d30183b add a construction unit test for ICMP (#331) 2017-02-03 23:35:45 -08:00
Oscar 905bc350fe add a unit test for pcap.Writer (#327)
* add a unit test for pcap.Writer
* Python3 (bytes) and Python2.6 (Decimal) bugfixes
2017-01-30 13:38:59 -08:00
Oscar 6addcc60f7 raise dpkt.UnpackError instead of printing; some pylint warnings (#326)
* fix #326: ieee80211: raise dpkt.UnpackError instead of printing
* fix #224: ieee80211: do not set self.ies to None
2017-01-30 12:08:50 -08:00
Brian Wylie 882ec9cee4 Merge pull request #325 from Tojaj/icmp_parsing
Do circular imports in icmp and icmp6 modules correctly (Issue #324)
2017-01-29 09:40:14 -07:00
Tomas Mlcoch 68cc803045 Do circular imports in icmp and icmp6 modules correctly (Issue #324)
There are circular deps between ip.py and icmp.py/icmp6.py modules.
Because of alphabetical imports in __init__.py, the icmp modules
are imported before ip.py, but they both need ip.py and ip.py during
initialization tries to import these icmp.

Because of these circular imports, icmp and icmp6 data in IP packets
weren't parsed correctly (#324). This patch does the imports in
slightly better fashion, so parsing of ICMP packets in IP works
again.
2017-01-29 14:26:40 +01:00
Brian Wylie 65b3d9716b Merge pull request #317 from kbandla/ord_to_compat_ord
switching examples from ord to compat ord
2017-01-08 17:44:36 -07:00
Brian Wylie 3aaa229820 switching examples from ord to compat ord; adding a test_release alias for using test pypi 2017-01-08 17:27:55 -07:00