forked from M-Labs/zynq-rs
1
0
Fork 0

main: change IP address to 192.168.1.28/24

This commit is contained in:
Astro 2019-11-11 01:04:55 +01:00
parent cb1b5776cd
commit b1472096ba
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ fn main() {
let ethernet_addr = EthernetAddress(HWADDR); let ethernet_addr = EthernetAddress(HWADDR);
// IP stack // IP stack
let local_addr = IpAddress::v4(10, 0, 0, 1); let local_addr = IpAddress::v4(192, 168, 1, 28);
let mut ip_addrs = [IpCidr::new(local_addr, 24)]; let mut ip_addrs = [IpCidr::new(local_addr, 24)];
let mut neighbor_storage = vec![None; 256]; let mut neighbor_storage = vec![None; 256];
let neighbor_cache = NeighborCache::new(&mut neighbor_storage[..]); let neighbor_cache = NeighborCache::new(&mut neighbor_storage[..]);