Struct ospf_parser::OspfHelloPacket [−][src]
pub struct OspfHelloPacket {
pub header: Ospfv2PacketHeader,
pub network_mask: u32,
pub hello_interval: u16,
pub options: u8,
pub router_priority: u8,
pub router_dead_interval: u32,
pub designated_router: u32,
pub backup_designated_router: u32,
pub neighbor_list: Vec<u32>,
}
Expand description
The Hello packet
Hello packets are OSPF packet type 1. These packets are sent periodically on all interfaces (including virtual links) in order to establish and maintain neighbor relationships. In addition, Hello Packets are multicast on those physical networks having a multicast or broadcast capability, enabling dynamic discovery of neighboring routers.
All routers connected to a common network must agree on certain parameters (Network mask, HelloInterval and RouterDeadInterval). These parameters are included in Hello packets, so that differences can inhibit the forming of neighbor relationships. A detailed explanation of the receive processing for Hello packets is presented in Section 10.5. The sending of Hello packets is covered in Section 9.5.
Fields
header: Ospfv2PacketHeader
network_mask: u32
hello_interval: u16
options: u8
router_priority: u8
router_dead_interval: u32
designated_router: u32
backup_designated_router: u32
neighbor_list: Vec<u32>