-
Notifications
You must be signed in to change notification settings - Fork 28
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 #178 from palainp/common-vif
manage a dynamic uplink
- Loading branch information
Showing
21 changed files
with
733 additions
and
585 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
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 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 |
---|---|---|
@@ -1,21 +1,20 @@ | ||
(* mirage >= 4.5.0 & < 5.0.0 *) | ||
(* Copyright (C) 2017, Thomas Leonard <[email protected]> | ||
See the README file for details. *) | ||
|
||
(** Configuration for the "mirage" tool. *) | ||
|
||
open Mirage | ||
|
||
let table_size = | ||
let info = Key.Arg.info | ||
~doc:"The number of NAT entries to allocate." | ||
~docv:"ENTRIES" ["nat-table-size"] | ||
in | ||
let key = Key.Arg.opt ~stage:`Both Key.Arg.int 5_000 info in | ||
Key.create "nat_table_size" key | ||
let nat_table_size = runtime_arg ~pos:__POS__ "Unikernel.nat_table_size" | ||
let ipv4 = runtime_arg ~pos:__POS__ "Unikernel.ipv4" | ||
let ipv4_gw = runtime_arg ~pos:__POS__ "Unikernel.ipv4_gw" | ||
let ipv4_dns = runtime_arg ~pos:__POS__ "Unikernel.ipv4_dns" | ||
let ipv4_dns2 = runtime_arg ~pos:__POS__ "Unikernel.ipv4_dns2" | ||
|
||
let main = | ||
foreign | ||
~keys:[Key.v table_size] | ||
main | ||
~runtime_args:[ nat_table_size; ipv4; ipv4_gw; ipv4_dns; ipv4_dns2; ] | ||
~packages:[ | ||
package "vchan" ~min:"4.0.2"; | ||
package "cstruct"; | ||
|
@@ -24,8 +23,8 @@ let main = | |
package ~min:"2.3.0" ~sublibs:["mirage"] "arp"; | ||
package ~min:"3.0.0" "ethernet"; | ||
package "shared-memory-ring" ~min:"3.0.0"; | ||
package ~min:"2.1.2" "netchannel"; | ||
package "mirage-net-xen"; | ||
package ~min:"2.1.3" "netchannel"; | ||
package "mirage-net-xen" ~min:"2.1.3"; | ||
package "ipaddr" ~min:"5.2.0"; | ||
package "mirage-qubes" ~min:"0.9.1"; | ||
package ~min:"3.0.1" "mirage-nat"; | ||
|
Oops, something went wrong.