-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Update inet6.py for Destination Option #4695
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -481,7 +481,20 @@ def answers(self, other): | |||||
elif other.nh == 43 and isinstance(other.payload, IPv6ExtHdrSegmentRouting): # noqa: E501 | ||||||
return self.payload.answers(other.payload.payload) # Buggy if self.payload is a IPv6ExtHdrRouting # noqa: E501 | ||||||
elif other.nh == 60 and isinstance(other.payload, IPv6ExtHdrDestOpt): | ||||||
return self.payload.answers(other.payload.payload) | ||||||
# Extension Headers can show weird behavious. | ||||||
# Linux's sk_buff considers the IPv6 Payload | ||||||
# to be either TCP, UDP or ICMP. It does not | ||||||
# consider Extension Headers to be the payload. | ||||||
# Following similar architecture, This small | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The word 'This' should not be capitalized mid-sentence. It should be 'this small'.
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||
# modification let's packet flow with Destination | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Incorrect use of apostrophe: 'let's' should be 'lets' (third person singular verb, not contraction).
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||
# Option on both, request and response packets | ||||||
# be captured as well. | ||||||
if UDP in self and UDP in other: | ||||||
return self[UDP].answers(other[UDP]) | ||||||
elif TCP in self and TCP in other: | ||||||
return self[TCP].answers(other[TCP]) | ||||||
else: | ||||||
return self.payload.answers(other.payload.payload) # Previous Implementation | ||||||
elif self.nh == 60 and isinstance(self.payload, IPv6ExtHdrDestOpt): # BU in reply to BRR, for instance # noqa: E501 | ||||||
return self.payload.payload.answers(other.payload) | ||||||
else: | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a typo in the comment: 'behavious' should be 'behavior'.
Copilot uses AI. Check for mistakes.