14 #include <libbgp/bgp-rib4.h> 15 #include "ns3/ipv4-routing-protocol.h" 27 static TypeId GetTypeId (
void);
29 Ptr<Ipv4Route> RouteOutput (Ptr<Packet> p,
const Ipv4Header &header, Ptr<NetDevice> oif,
30 Socket::SocketErrno &sockerr);
32 bool RouteInput (Ptr<const Packet> p,
const Ipv4Header &header, Ptr<const NetDevice> idev,
33 UnicastForwardCallback ucb, MulticastForwardCallback mcb,
34 LocalDeliverCallback lcb, ErrorCallback ecb);
36 void NotifyInterfaceUp (uint32_t interface);
37 void NotifyInterfaceDown (uint32_t interface);
38 void NotifyAddAddress (uint32_t interface, Ipv4InterfaceAddress address);
39 void NotifyRemoveAddress (uint32_t interface, Ipv4InterfaceAddress address);
40 void PrintRoutingTable (Ptr<OutputStreamWrapper> stream, Time::Unit unit = Time::S)
const;
42 void SetIpv4 (Ptr<Ipv4> ipv4);
55 #endif // BGP_ROUTING_H
Ipv4InterfaceAddress GetAddressByNexthop(const Ipv4Address &nexthop) const
Look for the interface address that can reach a given nexthop.
void SetRib(const libbgp::BgpRib4 *rib)
Set the libbgp Routing Information Base to use.
Ptr< NetDevice > GetDeviceByNexthop(const Ipv4Address &nexthop) const
Look for device to output/forward packet by nexthop.
The Ipv4RoutingProtocol for Bgp module.