Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion iroh-net/src/magicsock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ mod timer;
pub use crate::net::UdpSocket;

pub use self::metrics::Metrics;
pub use self::peer_map::{ConnectionType, DirectAddrInfo, EndpointInfo};
pub use self::peer_map::{ConnectionType, ControlMsg, DirectAddrInfo, EndpointInfo};
pub use self::timer::Timer;

/// How long we consider a STUN-derived endpoint valid for. UDP NAT mappings typically
Expand Down
2 changes: 1 addition & 1 deletion iroh-net/src/magicsock/peer_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use crate::{
mod best_addr;
mod endpoint;

pub use endpoint::{ConnectionType, DirectAddrInfo, EndpointInfo};
pub use endpoint::{ConnectionType, ControlMsg, DirectAddrInfo, EndpointInfo};
pub(super) use endpoint::{DiscoPingPurpose, PingAction, PingRole, SendPing};

/// Number of nodes that are inactive for which we keep info about. This limit is enforced
Expand Down
1 change: 1 addition & 0 deletions iroh-net/src/magicsock/peer_map/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,7 @@ pub enum DiscoPingPurpose {
StayinAlive,
}

/// The type of control message we have received.
#[derive(Debug, Clone, Copy, Eq, PartialEq, Serialize, Deserialize, derive_more::Display)]
pub enum ControlMsg {
/// We received a Ping from the node.
Expand Down