Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add basic types for daemon communication #15

Merged
merged 1 commit into from
Sep 27, 2023
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: 2 additions & 0 deletions crates/scion/src/daemon.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mod types;
pub use types::{AsInfo, PathRequestFlags};
15 changes: 15 additions & 0 deletions crates/scion/src/daemon/types.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
use crate::address::IA;

/// Information about the local AS
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub struct AsInfo {
pub ia: IA,
pub mtu: u16,
}

/// Flags for path requests
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, Hash)]
pub struct PathRequestFlags {
pub refresh: bool,
pub hidden: bool,
}
1 change: 1 addition & 0 deletions crates/scion/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pub mod address;
pub mod daemon;