-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #391 from avsm/to-dune
release 3.7: port to dune, switch to topkg
- Loading branch information
Showing
27 changed files
with
169 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(lang dune 1.0) | ||
(name tcpip) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(executables | ||
(names ping) | ||
(libraries cmdliner logs logs.fmt tcpip.icmpv4-socket)) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(executable | ||
(name discover) | ||
(libraries base stdio configurator)) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(library | ||
(name tcpip_icmpv4) | ||
(public_name tcpip.icmpv4) | ||
(libraries mirage-protocols-lwt rresult logs tcpip mirage-profile tcpip.udp) | ||
(preprocess | ||
(pps ppx_cstruct)) | ||
(wrapped false)) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(library | ||
(name tcpip_ipv4) | ||
(public_name tcpip.ipv4) | ||
(libraries logs io-page mirage-protocols-lwt ipaddr cstruct rresult tcpip | ||
ethernet tcpip.udp mirage-random mirage-clock randomconv lru) | ||
(preprocess | ||
(pps ppx_cstruct)) | ||
(wrapped false)) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(library | ||
(name tcpip_ipv6) | ||
(public_name tcpip.ipv6) | ||
(libraries logs io-page mirage-protocols-lwt mirage-time-lwt | ||
mirage-clock-lwt duration ipaddr cstruct rresult mirage-random tcpip | ||
randomconv ethernet) | ||
(preprocess | ||
(pps ppx_cstruct)) | ||
(wrapped false)) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(library | ||
(name tcpip_stack_direct) | ||
(public_name tcpip.stack-direct) | ||
(libraries logs ipaddr lwt result fmt mirage-time-lwt mirage-random | ||
mirage-protocols-lwt mirage-stack-lwt mirage-net-lwt)) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
(library | ||
(name icmpv4_socket) | ||
(public_name tcpip.icmpv4-socket) | ||
(modules icmpv4_socket) | ||
(wrapped false) | ||
(libraries lwt.unix ipaddr.unix cstruct-lwt io-page-unix tcpip.icmpv4 | ||
tcpip.ipv4 tcpip.ipv6 mirage-protocols-lwt)) | ||
|
||
(library | ||
(name udpv4_socket) | ||
(public_name tcpip.udpv4-socket) | ||
(modules udpv4_socket) | ||
(wrapped false) | ||
(libraries lwt.unix ipaddr.unix cstruct-lwt fmt mirage-protocols-lwt)) | ||
|
||
(library | ||
(name udpv6_socket) | ||
(public_name tcpip.udpv6-socket) | ||
(modules udpv6_socket) | ||
(wrapped false) | ||
(libraries lwt.unix ipaddr.unix cstruct-lwt fmt mirage-protocols-lwt)) | ||
|
||
(library | ||
(name tcp_socket_options) | ||
(public_name tcpip.tcp_socket_options) | ||
(modules tcp_socket_options) | ||
(c_names tcp_socket_options_stubs) | ||
(wrapped false) | ||
(libraries lwt.unix duration)) | ||
|
||
(library | ||
(name tcpv4_socket) | ||
(public_name tcpip.tcpv4-socket) | ||
(modules tcpv4_socket tcp_socket) | ||
(wrapped false) | ||
(libraries lwt.unix ipaddr.unix cstruct-lwt fmt mirage-protocols | ||
mirage-protocols-lwt tcp_socket_options)) | ||
|
||
(library | ||
(name tcpv6_socket) | ||
(public_name tcpip.tcpv6-socket) | ||
(modules tcpv6_socket) | ||
(wrapped false) | ||
(libraries lwt.unix ipaddr.unix cstruct-lwt fmt mirage-protocols | ||
mirage-protocols-lwt tcpv4_socket tcp_socket_options)) | ||
|
||
(library | ||
(name tcpip_stack_socket) | ||
(public_name tcpip.stack-socket) | ||
(modules tcpip_stack_socket ipv4_socket ipv6_socket) | ||
(wrapped false) | ||
(libraries lwt.unix cstruct-lwt ipaddr.unix io-page-unix logs | ||
tcpip.tcpv4-socket tcpip.udpv4-socket tcpip.ipv4 tcpip.ipv6 tcpip.icmpv4 | ||
mirage-protocols-lwt mirage-stack-lwt)) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(library | ||
(name tcp) | ||
(public_name tcpip.tcp) | ||
(libraries logs mirage-protocols-lwt ipaddr cstruct lwt-dllist rresult | ||
mirage-profile io-page tcpip duration randomconv fmt mirage-time-lwt | ||
mirage-clock mirage-random) | ||
(preprocess | ||
(pps ppx_cstruct))) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
(library | ||
(name tcpip) | ||
(public_name tcpip) | ||
(modules tcpip_checksum) | ||
(libraries cstruct tcpip.unix) | ||
(wrapped false)) | ||
|
||
(library | ||
(name tcpip_xen) | ||
(public_name tcpip.xen) | ||
(libraries tcpip) | ||
(modules tcpip_xen) | ||
(c_names checksum_stubs_xen) | ||
(c_flags | ||
(:include c_flags_xen.sexp)) | ||
(wrapped false)) | ||
|
||
(rule | ||
(targets c_flags_xen.sexp) | ||
(deps | ||
(:< ../config/discover.exe)) | ||
(action | ||
(run %{<} -ocamlc %{ocamlc}))) | ||
|
||
(rule | ||
(targets checksum_stubs_xen.c) | ||
(deps | ||
(:< checksum_stubs.c)) | ||
(action | ||
(copy# %{<} %{targets}))) | ||
|
||
(library | ||
(name tcpip_unix) | ||
(public_name tcpip.unix) | ||
(modules tcpip_unix) | ||
(c_names checksum_stubs) | ||
(wrapped false)) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(library | ||
(name tcpip_udpv4) | ||
(public_name tcpip.udp) | ||
(libraries mirage-protocols-lwt mirage-random rresult logs tcpip randomconv) | ||
(preprocess | ||
(pps ppx_cstruct)) | ||
(wrapped false)) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
(executables | ||
(names test) | ||
(libraries alcotest mirage-random-test lwt.unix io-page-unix tcpip.unix logs | ||
logs.fmt mirage-profile mirage-flow mirage-vnetif mirage-clock-unix | ||
pcap-format duration mirage-random rresult mirage-protocols-lwt | ||
mirage-stack-lwt arp arp-mirage ethernet tcpip.ipv4 tcpip.tcp tcpip.udp | ||
tcpip.stack-direct tcpip.icmpv4 tcpip.udpv4-socket tcpip.tcpv4-socket | ||
tcpip.icmpv4-socket tcpip.stack-socket tcpip.ipv6)) | ||
|
||
(alias | ||
(name runtest) | ||
(deps | ||
(:< test.exe)) | ||
(action | ||
(run %{<} -q -e --color=always))) |
Oops, something went wrong.