diff options
| author | Ruben De Smet <[email protected]> | 2023-06-07 12:04:15 +0200 |
|---|---|---|
| committer | Ruben De Smet <[email protected]> | 2023-06-07 13:18:19 +0200 |
| commit | 352f0b6c3823797576c36f417d6be40189bca5d5 (patch) | |
| tree | 4dc2111b5c797883756fd55329b6af1f02c1d1d5 /examples/stm32f7 | |
| parent | ca47af6978e85012ff70a98726fcb63ed985109d (diff) | |
net: Support dual stackĀ IP
Diffstat (limited to 'examples/stm32f7')
| -rw-r--r-- | examples/stm32f7/src/bin/eth.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32f7/src/bin/eth.rs b/examples/stm32f7/src/bin/eth.rs index ebdf0d8a0..fde6a7576 100644 --- a/examples/stm32f7/src/bin/eth.rs +++ b/examples/stm32f7/src/bin/eth.rs | |||
| @@ -62,8 +62,8 @@ async fn main(spawner: Spawner) -> ! { | |||
| 62 | 0, | 62 | 0, |
| 63 | ); | 63 | ); |
| 64 | 64 | ||
| 65 | let config = embassy_net::Config::Dhcp(Default::default()); | 65 | let config = embassy_net::Config::dhcpv4(Default::default()); |
| 66 | //let config = embassy_net::Config::StaticV4(embassy_net::StaticConfigV4 { | 66 | //let config = embassy_net::Config::ipv4_static(embassy_net::StaticConfigV4 { |
| 67 | // address: Ipv4Cidr::new(Ipv4Address::new(10, 42, 0, 61), 24), | 67 | // address: Ipv4Cidr::new(Ipv4Address::new(10, 42, 0, 61), 24), |
| 68 | // dns_servers: Vec::new(), | 68 | // dns_servers: Vec::new(), |
| 69 | // gateway: Some(Ipv4Address::new(10, 42, 0, 1)), | 69 | // gateway: Some(Ipv4Address::new(10, 42, 0, 1)), |
