Lines Matching refs:new
32 let mut config = Config::new(); in main()
38 let mut iface = Interface::new(config, &mut device); in main()
41 .push(IpCidr::new(IpAddress::v4(192, 168, 69, 1), 24)) in main()
44 .push(IpCidr::new(IpAddress::v6(0xfdaa, 0, 0, 0, 0, 0, 0, 1), 64)) in main()
47 .push(IpCidr::new(IpAddress::v6(0xfe80, 0, 0, 0, 0, 0, 0, 1), 64)) in main()
52 .add_default_ipv4_route(Ipv4Address::new(192, 168, 69, 100)) in main()
56 .add_default_ipv6_route(Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 0x100)) in main()
60 let tcp_rx_buffer = tcp::SocketBuffer::new(vec![0; 1024]); in main()
61 let tcp_tx_buffer = tcp::SocketBuffer::new(vec![0; 1024]); in main()
62 let tcp_socket = tcp::Socket::new(tcp_rx_buffer, tcp_tx_buffer); in main()
64 let mut sockets = SocketSet::new(vec![]); in main()