Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create bfcp.py #635

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Create bfcp.py #635

wants to merge 1 commit into from

Conversation

amoxuk
Copy link

@amoxuk amoxuk commented Jun 24, 2022

add bfcp

add bfcp
dpkt.Packet.unpack(self, buf)
l_ = []
if self.f:
pass
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unimplemented feature...
The Fragmentation (F) flag

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding this as a comment in code would be helpful

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it.

AttrType.PRIORITY):
if AttrType.SUPPORTED_ATTRIBUTES == self.type:
self.value = [d << 1 for d in self.value]
data += struct.pack(f'!{len(self.value)}B', *self.value)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build failed because the f-strings are not supported in older versions of python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants