Skip to content

Commit

Permalink
Merge pull request #445 from hannesm/rename-checsum-stubs
Browse files Browse the repository at this point in the history
checksum stubs: drop "caml_" from their name
  • Loading branch information
dinosaure committed Mar 26, 2021
2 parents f0b0094 + 4d20797 commit fb5768c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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"

0 comments on commit fb5768c

Please sign in to comment.