forked from M-Labs/artiq
Michael Birtwell
6ffb1f83ee
DHCP is enabled by setting the `ip` config entry to "use_dhcp". Reusing this config field rather than creating a new one means that there is no ambiguity over which config field takes precedence. Adds a thread to configure the interface based on DHCP events Adds a `Dhcpv4Socket` as a wrapper around smoltcp's version Formalises the storage of the IP addresses so that we can update one in another module. There's also a workaround for the first DHCP discover packet frequently going missing. Signed-off-by: Michael Birtwell <michael.birtwell@oxionics.com>
42 lines
1.3 KiB
TOML
42 lines
1.3 KiB
TOML
[package]
|
|
authors = ["M-Labs"]
|
|
name = "runtime"
|
|
version = "0.0.0"
|
|
build = "build.rs"
|
|
|
|
[lib]
|
|
name = "runtime"
|
|
crate-type = ["staticlib"]
|
|
path = "main.rs"
|
|
|
|
[build-dependencies]
|
|
build_misoc = { path = "../libbuild_misoc" }
|
|
|
|
[dependencies]
|
|
failure = { version = "0.1", default-features = false }
|
|
failure_derive = { version = "0.1", default-features = false }
|
|
byteorder = { version = "1.0", default-features = false }
|
|
cslice = { version = "0.3" }
|
|
log = { version = "0.4", default-features = false }
|
|
managed = { version = "^0.7.1", default-features = false, features = ["alloc", "map"] }
|
|
eh = { path = "../libeh" }
|
|
unwind_backtrace = { path = "../libunwind_backtrace" }
|
|
io = { path = "../libio", features = ["byteorder"] }
|
|
alloc_list = { path = "../liballoc_list" }
|
|
board_misoc = { path = "../libboard_misoc", features = ["uart_console", "smoltcp"] }
|
|
logger_artiq = { path = "../liblogger_artiq" }
|
|
board_artiq = { path = "../libboard_artiq" }
|
|
proto_artiq = { path = "../libproto_artiq", features = ["log", "alloc"] }
|
|
riscv = { version = "0.6.0", features = ["inline-asm"] }
|
|
|
|
[dependencies.smoltcp]
|
|
version = "0.8.0"
|
|
default-features = false
|
|
features = ["alloc", "medium-ethernet", "proto-ipv4", "proto-ipv6", "socket-tcp", "socket-dhcpv4"]
|
|
|
|
[dependencies.fringe]
|
|
git = "https://git.m-labs.hk/M-Labs/libfringe.git"
|
|
rev = "3ecbe5"
|
|
default-features = false
|
|
features = ["alloc"]
|