work on fixing import errors
Some checks failed
Build and Test / sonic-transformed (push) Failing after 1m40s
Build and Test / wii-u-chat (push) Failing after 1m40s
Build and Test / super-mario-maker (push) Failing after 1m41s
Build and Test / splatoon (push) Failing after 1m41s
Build and Test / puyopuyo (push) Failing after 1m41s
Build and Test / friends (push) Failing after 1m47s
Build and Test / splatoon-testfire (push) Failing after 1m47s
Build and Test / mario-tennis (push) Failing after 1m47s
Build and Test / minecraft-wiiu (push) Failing after 1m47s
Build and Test / wii-sports-club (push) Failing after 1m47s
Build and Test / fast-racing-neo (push) Failing after 1m47s

This commit is contained in:
red binder 2026-07-14 16:27:50 +02:00
commit 8db02c00ec
8 changed files with 36 additions and 22 deletions

View file

@ -1,12 +1,14 @@
use crate::prudp::router::Router;
use crate::prudp::unsecure::Unsecure;
use log::error;
use tracing::error;
use tracing::warn;
use proxy_common::{ProxyStartupParam, RNEX_ACCESS_KEY};
use rnex_core::prudp::virtual_port::VirtualPort;
use rnex_core::reggie::UnitPacketRead;
use rnex_core::reggie::UnitPacketWrite;
use rnex_core::rmc::structures::RmcSerialize;
use rnex_core::executables::common::SECURE_SERVER_ACCOUNT;
use rnex_prudp::virtual_port::VirtualPort;
use rnex_util::{UnitPacketRead, UnitPacketWrite};
use rnex_core::rnex_proxy_common::ConnectionInitData;
use rnex_server::ConnectionInitData;
use rnex_util::{UnitPacketRead, UnitPacketWrite};
use std::time::Duration;
use tokio::net::TcpStream;
use tokio::task;

View file

@ -1,14 +1,14 @@
use crate::prudp::router::Router;
use crate::prudp::secure::Secure;
use log::error;
use log::warn;
use tracing::error;
use tracing::warn;
use proxy_common::{ProxyStartupParam, RNEX_ACCESS_KEY};
use rnex_core::executables::common::SECURE_SERVER_ACCOUNT;
use rnex_core::prudp::virtual_port::VirtualPort;
use rnex_core::reggie::UnitPacketRead;
use rnex_core::reggie::UnitPacketWrite;
use rnex_core::rmc::structures::RmcSerialize;
use rnex_prudp::virtual_port::VirtualPort;
use rnex_util::{UnitPacketRead, UnitPacketWrite};
use rnex_core::rnex_proxy_common::ConnectionInitData;
use rnex_server::ConnectionInitData;
use rnex_util::{UnitPacketRead, UnitPacketWrite};
use std::ops::Deref;
use std::time::Duration;
use tokio::net::TcpStream;

View file

@ -8,12 +8,12 @@ use crate::prudp::packet::PacketOption::{
};
use bytemuck::{Pod, Zeroable};
use hmac::{Hmac, Mac};
use log::{error, warn};
use tracing::{error, warn};
use md5::{Digest, Md5};
use rnex_core::prudp::socket_addr::PRUDPSockAddr;
use rnex_core::prudp::types_flags::TypesFlags;
use rnex_core::prudp::types_flags::flags::ACK;
use rnex_core::prudp::virtual_port::VirtualPort;
use rnex_prudp::socket_addr::PRUDPSockAddr;
use rnex_prudp::types_flags::TypesFlags;
use rnex_prudp::types_flags::flags::ACK;
use rnex_prudp::virtual_port::VirtualPort;
use std::fmt::Debug;
use std::io;
use std::io::{Cursor, Read, Seek, Write};
@ -396,7 +396,7 @@ impl PRUDPV1Packet {
#[cfg(test)]
mod test {
use super::{OptionId, PRUDPV1Header, PacketOption, TypesFlags};
use rnex_core::prudp::{
use rnex_prudp::{
types_flags::{
flags::{NEED_ACK, RELIABLE},
types::DATA,

View file

@ -1,7 +1,7 @@
use crate::prudp::packet::PRUDPV1Packet;
use crate::prudp::router::Error::VirtualPortTaken;
use crate::prudp::socket::{AnyInternalSocket, CryptoHandler, ExternalSocket, new_socket_pair};
use log::{error, info};
use tracing::{error, info};
use std::io;
use std::io::Cursor;
use std::marker::PhantomData;
@ -15,6 +15,7 @@ use tokio::select;
use tokio::sync::RwLock;
use tokio::task::JoinHandle;
use tokio::time::sleep;
use rnex_prudp::virtual_port::VirtualPort;
pub struct Router {
endpoints: RwLock<[Option<Arc<dyn AnyInternalSocket>>; 16]>,

View file

@ -4,6 +4,9 @@ use hmac::digest::consts::U32;
use rc4::cipher::StreamCipherCoreWrapper;
use rc4::{KeyInit, Rc4, Rc4Core, StreamCipher};
use typenum::U5;
use rnex_util::PID;
use rnex_prudp::ticket::read_secure_connection_data;
use serde_core::ser::Serialize;
type Rc4U32 = StreamCipherCoreWrapper<Rc4Core<U32>>;

View file

@ -3,8 +3,8 @@ use crate::prudp::packet::PacketOption::{
};
use crate::prudp::packet::{PRUDPV1Header, PRUDPV1Packet};
use async_trait::async_trait;
use log::error;
use log::{info, warn};
use tracing::error;
use tracing::{info, warn};
use rc4::StreamCipher;
use std::collections::{BTreeMap, HashMap};
use std::io::Cursor;
@ -14,6 +14,13 @@ use std::sync::{Arc, Weak};
use tokio::spawn;
use v_byte_helpers::ReadExtensions;
use v_byte_helpers::little_endian::read_u16;
use rnex_util::{PID, account::Account};
use rnex_prudp::encryption::EncryptionPair;
use rnex_prudp::types_flags::types::{SYN, CONNECT, PING, DISCONNECT, DATA};
use rnex_prudp::types_flags::flags::{ACK, HAS_SIZE, NEED_ACK, MULTI_ACK, RELIABLE};
use rnex_prudp::types_flags::TypesFlags;
use rnex_prudp::socket_addr::PRUDPSockAddr;
use rnex_prudp::virtual_port::VirtualPort;
use std::time::Duration;
use tokio::net::UdpSocket;

View file

@ -8,6 +8,7 @@ ctor = "1.0.8"
rnex-rmc = { path = "../../rnex-rmc" }
cfg-if = "1.0.4"
rnex-base-protos = { path = "../base-protos" }
rnex-util = {path = "../rnex-util"}
[features]
third-notif-param = []

View file

@ -34,7 +34,7 @@ pub struct MatchmakeParam {
cfg_if! {
if #[cfg(feature = "v3-5-0")]{
use rnex_core::kerberos::KerberosDateTime;
use rnex_util::date_time::DateTime;
#[derive(RmcSerialize, Debug, Clone, Default, PartialEq)]
#[rmc_struct(3)]
pub struct MatchmakeSession {
@ -52,7 +52,7 @@ cfg_if! {
pub session_key: Vec<u8>,
pub option0: u32,
pub matchmake_param: MatchmakeParam,
pub datetime: KerberosDateTime,
pub datetime: DateTime,
pub user_password: String,
pub refer_gid: u32,
pub user_password_enabled: bool,