Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/tcpip_checksum/checksum_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ ones_complement_checksum_bigarray(unsigned char *addr, size_t ofs, size_t count,
}

CAMLprim value
caml_mirage_tcpip_ones_complement_checksum(value v_cstruct)
mirage_tcpip_ones_complement_checksum(value v_cstruct)
{
CAMLparam1(v_cstruct);
CAMLlocal3(v_ba, v_ofs, v_len);
Expand All @@ -86,7 +86,7 @@ caml_mirage_tcpip_ones_complement_checksum(value v_cstruct)
* forward as 16-byte 1s complement addition if there are more buffers in
* the chain. */
CAMLprim value
caml_mirage_tcpip_ones_complement_checksum_list(value v_cstruct_list)
mirage_tcpip_ones_complement_checksum_list(value v_cstruct_list)
{
CAMLparam1(v_cstruct_list);
CAMLlocal4(v_hd, v_ba, v_ofs, v_len);
Expand Down Expand Up @@ -264,7 +264,7 @@ checksum_bigarray(unsigned char *addr, size_t ofs, size_t count, uint32_t sum)
}

CAMLprim value
caml_mirage_tcpip_ones_complement_checksum(value v_cstruct)
mirage_tcpip_ones_complement_checksum(value v_cstruct)
{
CAMLparam1(v_cstruct);
CAMLlocal3(v_ba, v_ofs, v_len);
Expand All @@ -283,7 +283,7 @@ caml_mirage_tcpip_ones_complement_checksum(value v_cstruct)
* forward as 16-byte 1s complement addition if there are more buffers in
* the chain. */
CAMLprim value
caml_mirage_tcpip_ones_complement_checksum_list(value v_cstruct_list)
mirage_tcpip_ones_complement_checksum_list(value v_cstruct_list)
{
CAMLparam1(v_cstruct_list);
CAMLlocal4(v_hd, v_ba, v_ofs, v_len);
Expand Down
4 changes: 2 additions & 2 deletions src/tcpip_checksum/tcpip_checksum.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
*)

(** One's complement checksum, RFC1071 *)
external ones_complement: Cstruct.t -> int = "caml_mirage_tcpip_ones_complement_checksum"
external ones_complement: Cstruct.t -> int = "mirage_tcpip_ones_complement_checksum"

external ones_complement_list: Cstruct.t list -> int = "caml_mirage_tcpip_ones_complement_checksum_list"
external ones_complement_list: Cstruct.t list -> int = "mirage_tcpip_ones_complement_checksum_list"