Skip to content

Commit

Permalink
feat: add basic types for daemon communication
Browse files Browse the repository at this point in the history
  • Loading branch information
mlegner committed Sep 27, 2023
1 parent 5daa4ca commit b66eb56
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
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;

0 comments on commit b66eb56

Please sign in to comment.