pub type UdpNeighborDiscovery = HelloProtocol<UdpMedium>;Expand description
UDP neighbor discovery — type alias for HelloProtocol<UdpMedium>.
Aliased Type§
pub struct UdpNeighborDiscovery {
pub core: HelloCore,
pub medium: UdpMedium,
}Fields§
§core: HelloCore§medium: UdpMediumImplementations§
Source§impl UdpNeighborDiscovery
impl UdpNeighborDiscovery
Sourcepub fn new(multicast_face_id: FaceId, node_name: Name) -> Self
pub fn new(multicast_face_id: FaceId, node_name: Name) -> Self
Create a new UdpNeighborDiscovery with the default LAN profile.
pub fn new_with_config( multicast_face_id: FaceId, node_name: Name, config: DiscoveryConfig, ) -> Self
Sourcepub fn new_multi(
face_ids: Vec<FaceId>,
node_name: Name,
config: DiscoveryConfig,
) -> Self
pub fn new_multi( face_ids: Vec<FaceId>, node_name: Name, config: DiscoveryConfig, ) -> Self
Create a UdpNeighborDiscovery listening on multiple multicast faces
(one per network interface).
A transient Ed25519 key is derived deterministically from the node name
via SHA-256. Callers that need a persistent key should use
new_multi_with_signer.
Sourcepub fn new_multi_with_signer(
face_ids: Vec<FaceId>,
node_name: Name,
config: DiscoveryConfig,
signer: Arc<dyn Signer>,
) -> Self
pub fn new_multi_with_signer( face_ids: Vec<FaceId>, node_name: Name, config: DiscoveryConfig, signer: Arc<dyn Signer>, ) -> Self
Create with an explicit signer (e.g. from the router’s PIB).
Sourcepub fn with_unicast_port(self, port: u16) -> Self
pub fn with_unicast_port(self, port: u16) -> Self
Set the UDP unicast port this node listens on for forwarding traffic.