package tcpip
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=fac07ce986811cf5e3d71373d92b631cc30fbef548d6da21b0917212dcf90b03
    
    
  sha512=01de13f560d58b1524c39619e4e4cb6ebbf069155eb43d0f264aa12b00e0cc8c39792719e3ca46585dd596b692b8e1e3f8c132f005ed9e2d77747c0c158bf4d9
    
    
  doc/tcpip.ipv4/Ipv4_packet/Marshal/index.html
Module Ipv4_packet.MarshalSource
pseudoheader src dst proto len constructs a pseudoheader, suitable for inclusion in transport-layer checksum calculations, including the information supplied. len should be the total length of the transport-layer header and payload.
into_cstruct ~payload_len t buf attempts to write a header representing t (including t.options) into buf at offset 0. If there is insufficient space to represent t, an error will be returned.
make_cstruct ~payload_len t allocates, fills, and returns a buffer representing the IPV4 header corresponding to t. If t.options is non-empty, t.options will be concatenated onto the result. A variable amount of memory (at least 20 bytes for a zero-length options field) will be allocated. Note: no space is allocated for the payload.