pub struct BdtRow {
pub address: SocketAddrV4,
pub mask: Ipv4Addr,
}Expand description
One BDT entry: a BBMD and the mask its peers forward to it with.
Fields§
§address: SocketAddrV4The BBMD’s B/IP address.
mask: Ipv4AddrIts broadcast distribution mask.
Implementations§
Source§impl BdtRow
impl BdtRow
Sourcepub fn is_unicast(&self) -> bool
pub fn is_unicast(&self) -> bool
True for an all-ones mask: peers send forwarded broadcasts to the BBMD itself, which broadcasts them on its own subnet (Annex J.4.3.1, the two-hop method).
Sourcepub fn forward_to(&self) -> Ipv4Addr
pub fn forward_to(&self) -> Ipv4Addr
Where a peer sends a forwarded broadcast for this entry: the address with every bit the mask clears set (Annex J.4.5). With an all-ones mask that is the BBMD itself.
Trait Implementations§
impl Copy for BdtRow
impl Eq for BdtRow
impl StructuralPartialEq for BdtRow
Auto Trait Implementations§
impl Freeze for BdtRow
impl RefUnwindSafe for BdtRow
impl Send for BdtRow
impl Sync for BdtRow
impl Unpin for BdtRow
impl UnsafeUnpin for BdtRow
impl UnwindSafe for BdtRow
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more