pub fn create_ospf_raw_socket(
interface_addr: Ipv4Addr,
join_all_routers: bool,
join_dr_routers: bool,
) -> Result<Socket>Expand description
Create a raw IP socket for OSPF (protocol 89)
This creates a raw socket that receives OSPF packets directly from IP layer. Requires root/CAP_NET_RAW privileges.
§Arguments
interface_addr- IP address of the interface to bind tojoin_all_routers- Whether to join AllSPFRouters multicast group (224.0.0.5)join_dr_routers- Whether to join AllDRouters multicast group (224.0.0.6)
§Returns
A non-blocking raw socket configured for OSPF