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

add verify_transport_checksum to ipv4_packet.unmarshal #277

Merged
merged 1 commit into from
Jan 5, 2017

Conversation

yomimono
Copy link
Contributor

Add a function verify_transport_checksum to ipv4_packet.unmarshal. As
the function needs to use Tcp_wire and Udp_wire, include the UDP and
TCP sublibraries when building Ipv4.

Also include some tests against pre-created packets with good checksums.

/cc @haesbaert , as this is intended for use to replace the checksum validation that I removed a little while ago in charrua-core.

Add a function `verify_transport_checksum` to ipv4_packet.unmarshal.  As
the function needs to use Tcp_wire and Udp_wire, include the UDP and
TCP sublibraries when building Ipv4.

Also include some tests against pre-created packets with good checksums.
@yomimono yomimono merged commit 6eef5a4 into mirage:master Jan 5, 2017
@@ -58,7 +58,9 @@ Library ipv4
Modules: Static_ipv4, Ipv4_wire, Ipv4_packet
InternalModules: Ipv4_common, Routing
BuildDepends: logs,io-page,mirage-types,ipaddr,cstruct.ppx,lwt,result,rresult,
tcpip,tcpip.ethif,mirage-runtime
mirage-runtime,
Copy link
Member

Choose a reason for hiding this comment

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

do we still need mirage-runtime in there?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, #283 removes it.

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 is needed with this patchset.)

samoht pushed a commit that referenced this pull request Apr 4, 2017
add verify_transport_checksum to ipv4_packet.unmarshal
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.

2 participants