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

Moved decoders to separate module so they can be used externally #26

Merged
merged 4 commits into from
Mar 28, 2019

Conversation

joshgodsiff
Copy link
Contributor

No description provided.

Copy link
Collaborator

@dsturnbull dsturnbull left a comment

Choose a reason for hiding this comment

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

👍

@joshgodsiff joshgodsiff force-pushed the MAYH-11274-move-decoders-to-separate-module branch 2 times, most recently from 0496265 to f98fb7a Compare March 28, 2019 04:42
a <- G.getWord32be
b <- G.getWord32be
c <- G.getWord32be
d <- G.getWord32be
Copy link
Collaborator

Choose a reason for hiding this comment

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

Other cases use getWord32le, are you use getWord32be here deliberately?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's deliberate in the sense that Dave said they did it deliberately.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably because IPv6 is stored in Network Order, which is the same as BE.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It's interesting though that we store IPv4 in LE, so there is some inconsistency there.

Copy link
Collaborator

@dsturnbull dsturnbull left a comment

Choose a reason for hiding this comment

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

👍

- Added IP Block dumps
- Use refactored decoders for complex types
- Change catch-all case so we can't miss this in future
- Reduced indentation
@joshgodsiff joshgodsiff force-pushed the MAYH-11274-move-decoders-to-separate-module branch from f98fb7a to 0e4e614 Compare March 28, 2019 05:06
@joshgodsiff joshgodsiff merged commit 113b94e into master Mar 28, 2019
@joshgodsiff joshgodsiff deleted the MAYH-11274-move-decoders-to-separate-module branch March 28, 2019 05:15
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.

4 participants