Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored May 16, 2024
1 parent efda3d6 commit 9777f08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/network/icmp.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use crate::messages::SmolPacket;
use smoltcp::phy::ChecksumCapabilities;
use smoltcp::wire::{Icmpv4Message, Icmpv4Packet, Icmpv4Repr, Icmpv6Message, Icmpv6Packet, Icmpv6Repr, IpProtocol, Ipv4Packet, Ipv4Repr, Ipv6Packet, Ipv6Repr};
use smoltcp::wire::{
Icmpv4Message, Icmpv4Packet, Icmpv4Repr, Icmpv6Message, Icmpv6Packet, Icmpv6Repr, IpProtocol,
Ipv4Packet, Ipv4Repr, Ipv6Packet, Ipv6Repr,
};

pub(super) fn handle_icmpv4_echo_request(
mut input_packet: Ipv4Packet<Vec<u8>>,
Expand Down
4 changes: 2 additions & 2 deletions src/network/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl<'a> TcpHandler<'a> {
.push(IpCidr::new(IpAddress::v4(0, 0, 0, 1), 0))
.unwrap();
ip_address
.push(IpCidr::new(IpAddress::v6(0, 0, 0, 0,0,0,0,1), 0))
.push(IpCidr::new(IpAddress::v6(0, 0, 0, 0, 0, 0, 0, 1), 0))
.unwrap();
});
iface
Expand All @@ -74,7 +74,7 @@ impl<'a> TcpHandler<'a> {
.unwrap();
iface
.routes_mut()
.add_default_ipv6_route(Ipv6Address::new(0, 0, 0, 0,0,0,0,1))
.add_default_ipv6_route(Ipv6Address::new(0, 0, 0, 0, 0, 0, 0, 1))
.unwrap();

TcpHandler {
Expand Down

0 comments on commit 9777f08

Please sign in to comment.