Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xmh0511 committed Sep 10, 2024
1 parent 77241a6 commit 09309b2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions examples/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ fn main_entry(quit: Receiver<()>) -> Result<(), BoxError> {
// config.layer(Layer::L2);

config
// .address_with_prefix(
// "CDCD:910A:2222:5498:8475:1111:3900:2020"
// .parse::<IpAddr>()
// .unwrap(),
// "ffff:ffff:ffff:ffff::".parse::<IpAddr>().unwrap(),
// )
.address_with_prefix((10, 0, 0, 9), 24u8)
.address_with_prefix(
"CDCD:910A:2222:5498:8475:1111:3900:2020"
.parse::<IpAddr>()
.unwrap(),
"ffff:ffff:ffff:ffff::".parse::<IpAddr>().unwrap(),
)
//.address_with_prefix((10, 0, 0, 9), 24u8)
.destination((10, 0, 0, 1))
.up();

Expand All @@ -63,7 +63,7 @@ fn main_entry(quit: Receiver<()>) -> Result<(), BoxError> {
#[allow(unreachable_code)]
Ok::<(), BoxError>(())
});
dev_t.set_network_address((10, 0, 0, 88), (255, 255, 255, 0), None)?;
//dev_t.set_network_address((10, 0, 0, 88), (255, 255, 255, 0), None)?;
// dev_t.set_network_address(
// "CDCD:910A:2222:5498:8475:1111:3900:2024"
// .parse::<IpAddr>()
Expand Down

0 comments on commit 09309b2

Please sign in to comment.