Skip to content

Commit

Permalink
Commit missed files
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Jan 30, 2024
1 parent 647c3ab commit 065b311
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 15 deletions.
10 changes: 5 additions & 5 deletions io/zenoh-links/zenoh-link-quic/src/unicast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ impl LinkUnicastTrait for LinkUnicastQuic {
}

#[inline(always)]
fn get_interfaces(&self) -> Vec<String> {
// Not supported for now
vec![]
fn get_mtu(&self) -> u16 {
*QUIC_DEFAULT_MTU
}

#[inline(always)]
fn get_mtu(&self) -> u16 {
*QUIC_DEFAULT_MTU
fn get_interfaces(&self) -> Vec<String> {
// Not supported for now
vec![]
}

#[inline(always)]
Expand Down
6 changes: 6 additions & 0 deletions io/zenoh-links/zenoh-link-serial/src/unicast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ impl LinkUnicastTrait for LinkUnicastSerial {
*SERIAL_DEFAULT_MTU
}

#[inline(always)]
fn get_interfaces(&self) -> Vec<String> {
// Not supported for now
vec![]
}

#[inline(always)]
fn is_reliable(&self) -> bool {
false
Expand Down
10 changes: 5 additions & 5 deletions io/zenoh-links/zenoh-link-tcp/src/unicast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,18 +139,18 @@ impl LinkUnicastTrait for LinkUnicastTcp {
&self.dst_locator
}

#[inline(always)]
fn get_mtu(&self) -> u16 {
*TCP_DEFAULT_MTU
}

#[inline(always)]
fn get_interfaces(&self) -> Vec<String> {
let res = zenoh_util::net::get_interface_by_addr(self.src_addr.ip());
log::debug!("get_interfaces for {:?}: {:?}", self.src_addr.ip(), res);
res
}

#[inline(always)]
fn get_mtu(&self) -> u16 {
*TCP_DEFAULT_MTU
}

#[inline(always)]
fn is_reliable(&self) -> bool {
true
Expand Down
10 changes: 5 additions & 5 deletions io/zenoh-links/zenoh-link-udp/src/unicast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@ impl LinkUnicastTrait for LinkUnicastUdp {
}

#[inline(always)]
fn get_interfaces(&self) -> Vec<String> {
// Not supported for now
vec![]
fn get_mtu(&self) -> u16 {
*UDP_DEFAULT_MTU
}

#[inline(always)]
fn get_mtu(&self) -> u16 {
*UDP_DEFAULT_MTU
fn get_interfaces(&self) -> Vec<String> {
// Not supported for now
vec![]
}

#[inline(always)]
Expand Down
6 changes: 6 additions & 0 deletions io/zenoh-links/zenoh-link-unixpipe/src/unix/unicast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,12 @@ impl LinkUnicastTrait for UnicastPipe {
LINUX_PIPE_MAX_MTU
}

#[inline(always)]
fn get_interfaces(&self) -> Vec<String> {
// Not supported for now
vec![]
}

#[inline(always)]
fn is_reliable(&self) -> bool {
true
Expand Down

0 comments on commit 065b311

Please sign in to comment.