|
95 |
|
95 |
|
96 |
// Patterned after Linux ip_route_input and ip_route_input_slow |
96 |
// Patterned after Linux ip_route_input and ip_route_input_slow |
97 |
bool |
97 |
bool |
98 |
Ipv4ListRouting::RouteInput (Ptr<const Packet> p, const Ipv4Header &header, Ptr<const NetDevice> idev, |
98 |
Ipv4ListRouting::RouteInput (Ptr<Packet> p, const Ipv4Header &header, Ptr<const NetDevice> idev, |
99 |
UnicastForwardCallback ucb, MulticastForwardCallback mcb, |
99 |
UnicastForwardCallback ucb, MulticastForwardCallback mcb, |
100 |
LocalDeliverCallback lcb, ErrorCallback ecb) |
100 |
LocalDeliverCallback lcb, ErrorCallback ecb) |
101 |
{ |
101 |
{ |
|
324 |
class Ipv4ARouting : public Ipv4RoutingProtocol { |
324 |
class Ipv4ARouting : public Ipv4RoutingProtocol { |
325 |
public: |
325 |
public: |
326 |
Ptr<Ipv4Route> RouteOutput (Ptr<Packet> p, const Ipv4Header &header, uint32_t oif, Socket::SocketErrno &sockerr) { return 0;} |
326 |
Ptr<Ipv4Route> RouteOutput (Ptr<Packet> p, const Ipv4Header &header, uint32_t oif, Socket::SocketErrno &sockerr) { return 0;} |
327 |
bool RouteInput (Ptr<const Packet> p, const Ipv4Header &header, Ptr<const NetDevice> idev, |
327 |
bool RouteInput (Ptr<Packet> p, const Ipv4Header &header, Ptr<const NetDevice> idev, |
328 |
UnicastForwardCallback ucb, MulticastForwardCallback mcb, |
328 |
UnicastForwardCallback ucb, MulticastForwardCallback mcb, |
329 |
LocalDeliverCallback lcb, ErrorCallback ecb) {return false;} |
329 |
LocalDeliverCallback lcb, ErrorCallback ecb) {return false;} |
330 |
void NotifyInterfaceUp (uint32_t interface) {} |
330 |
void NotifyInterfaceUp (uint32_t interface) {} |
|
337 |
class Ipv4BRouting : public Ipv4RoutingProtocol { |
337 |
class Ipv4BRouting : public Ipv4RoutingProtocol { |
338 |
public: |
338 |
public: |
339 |
Ptr<Ipv4Route> RouteOutput (Ptr<Packet> p, const Ipv4Header &header, uint32_t oif, Socket::SocketErrno &sockerr) { return 0;} |
339 |
Ptr<Ipv4Route> RouteOutput (Ptr<Packet> p, const Ipv4Header &header, uint32_t oif, Socket::SocketErrno &sockerr) { return 0;} |
340 |
bool RouteInput (Ptr<const Packet> p, const Ipv4Header &header, Ptr<const NetDevice> idev, |
340 |
bool RouteInput (Ptr<Packet> p, const Ipv4Header &header, Ptr<const NetDevice> idev, |
341 |
UnicastForwardCallback ucb, MulticastForwardCallback mcb, |
341 |
UnicastForwardCallback ucb, MulticastForwardCallback mcb, |
342 |
LocalDeliverCallback lcb, ErrorCallback ecb) {return false;} |
342 |
LocalDeliverCallback lcb, ErrorCallback ecb) {return false;} |
343 |
void NotifyInterfaceUp (uint32_t interface) {} |
343 |
void NotifyInterfaceUp (uint32_t interface) {} |