Skip to content

Commit

Permalink
Merge pull request kbandla#600 from kbandla/release-197
Browse files Browse the repository at this point in the history
release 1.9.7 changes
  • Loading branch information
brifordwylie authored Aug 17, 2021
2 parents 2c28b0d + f048e59 commit 94bf48e
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 127 deletions.
94 changes: 0 additions & 94 deletions CHANGES

This file was deleted.

22 changes: 21 additions & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 1.9.7
**[2021-08-16]**
- Moved the project documentation from Read the Docs(RST) to github.io(MarkDown)
- Added a new mechanism for creating bit-sized field definitions in the protocol parsers (Packet.\_\_bit_fields\_\_)
- Added pretty printing capability aka Packet.pprint(), Packet.\_\_pprint_funcs\_\_
- Added documentation on developing protocol parsers in dpkt (creating_parsers.md)
- Added a universal pcap+pcapng reader (dpkt.pcap.UniversalReader)
- Improved TLS ClientHello and ServerHello parsing: return an "Unknown" ciphersuite instead of raising an exception, add codes for rfc8701, GREASE ciphersutes
- Added function to get IP protocol name
- Modified Packet.\_\_getitem\_\_() and added Packet.\_\_contains\_\_() to address the nested protocol layers
- Fixed payload length interpretation in AH decoder
- Improved handling of invalid chunks in HTTP and SCTP
- Fixed decoding of IPv6 fragments after the 1st fragment
- Support rfc3540 nonce sum flag in TCP

## 1.9.6
**[2021-05-21]**
- Added in the TLS 1.3 Cipher Suite from the RFC 8446 dated August 2018
- Added support for Linux cooked capture v2, SLL2.

## 1.9.5
**[2021-02-07]**

Expand All @@ -20,4 +40,4 @@
- Added pfs (Perfect Forward Secrecy) and aead (Authenticated Encryption with Additional Data) properties to cipher suites.
- Added old CHACHA20-POLY1305 related cipher suites to TLS CipherSuite list.
- Remove redundant num_compression_methods from TLSClientHello
- Testing improved from 90% coverage to over 99%.
- Testing improved from 90% coverage to over 99%.
4 changes: 4 additions & 0 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ Please go to the GitHub Issues page:
<https://github.com/kbandla/dpkt/issues>.

## Checkout the Code

```
git clone https://github.com/kbandla/dpkt.git
```

## Become a Developer

The dpkt package uses the 'GitHub Flow' model: [GitHub
Expand All @@ -19,12 +21,14 @@ If you'd like to submit a PR to fix/improve dpkt, you should create a
developers will review the PR and give feedback. The following page has good instructions on creating a PR from a fork: make a fork and then create a Pull Request <https://gist.github.com/Chaser324/ce0505fbed06b947d962>.

### New Feature or Bug

```
$ git checkout -b my-awesome
$ git push -u origin my-awesome
$ <code for a bit>; git push
$ <code for a bit>; git push
$ pytest dpkt (this will run all the tests)
```

- Go to github and hit 'New pull request'
- Someone reviews it and says 'AOK/give feedback and merges
29 changes: 0 additions & 29 deletions docs/examples.md

This file was deleted.

2 changes: 1 addition & 1 deletion dpkt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
__author_email__ = ''
__license__ = 'BSD-3-Clause'
__url__ = 'https://github.com/kbandla/dpkt'
__version__ = '1.9.6'
__version__ = '1.9.7.1'

from .dpkt import *

Expand Down
4 changes: 2 additions & 2 deletions dpkt/dpkt.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def __repr__(self):
l_ = []

# (1) and (2) are done via __public_fields__; just filter out defaults here
for field_name in self.__public_fields__:
for field_name in getattr(self, '__public_fields__', []):
field_value = getattr(self, field_name)

if (hasattr(self, '__hdr_defaults__') and
Expand Down Expand Up @@ -273,7 +273,7 @@ def add_field(fn, fv):
except (AttributeError, KeyError):
l_.append('%s=%r,' % (fn, fv))

for field_name in self.__public_fields__:
for field_name in getattr(self, '__public_fields__', []):
add_field(field_name, getattr(self, field_name))

for attr_name, attr_value in iteritems(self.__dict__):
Expand Down
1 change: 1 addition & 0 deletions dpkt/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ def test_response_with_body():
r.body = b'foo'
assert str(r) == 'HTTP/1.0 200 OK\r\n\r\nfoo'
assert bytes(r) == b'HTTP/1.0 200 OK\r\n\r\nfoo'
repr(r)


def test_body_forbidden_response():
Expand Down

0 comments on commit 94bf48e

Please sign in to comment.