Skip to content

Commit

Permalink
Ipv6 multicast support
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Dec 11, 2024
1 parent df9ffca commit 38d82bd
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions edge-nal-embassy/src/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,18 +215,24 @@ impl<const N: usize, const TX_SZ: usize, const RX_SZ: usize, const M: usize> Mul
{
async fn join_v6(
&mut self,
_multicast_addr: Ipv6Addr,
multicast_addr: Ipv6Addr,
_interface: u32,
) -> Result<(), Self::Error> {
panic!("Joining an Ipv6 multicast group is not supported yet")
self.stack
.join_multicast_group(IpAddr::V6(multicast_addr))?;

Ok(())
}

async fn leave_v6(
&mut self,
_multicast_addr: Ipv6Addr,
multicast_addr: Ipv6Addr,
_interface: u32,
) -> Result<(), Self::Error> {
panic!("Leaving an Ipv6 multicast group is not supported yet")
self.stack
.leave_multicast_group(IpAddr::V6(multicast_addr))?;

Ok(())
}
}

Expand Down

0 comments on commit 38d82bd

Please sign in to comment.