From 5bbbafc05ada0a8a78361a6c070a389c5f6a5f2d Mon Sep 17 00:00:00 2001 From: Tristan Smith Date: Mon, 22 Jul 2024 11:51:36 -0400 Subject: [PATCH] Marathon control board uses a different source port. --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 02379de..3db0f11 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,7 +15,7 @@ use webbrowser; use std::process; const DESTINATION_IP: &str = "255.255.255.255"; -const SOURCE_PORT: u16 = 14236; +//const SOURCE_PORT: u16 = 14236; const DESTINATION_PORT: u16 = 14235; #[derive(Clone, Hash, Eq, PartialEq)] @@ -200,7 +200,7 @@ fn extract_packet_info(packet: &[u8]) -> Option { if ipv4.get_next_level_protocol() == IpNextHeaderProtocols::Udp { let udp = UdpPacket::new(ipv4.payload())?; if ipv4.get_destination() == DESTINATION_IP.parse::().unwrap() - && udp.get_source() == SOURCE_PORT + //&& udp.get_source() == SOURCE_PORT && udp.get_destination() == DESTINATION_PORT { return Some(PacketInfo {