class DebugIO

Debugging implementation of IO for use by test programs. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

Debugging implementation of IO for use by test programs.

 DebugIO (TestInfo& info, OspfTypes::Version version, EventLoop& eventloop)

DebugIO

void  pp (const string& which, int level, const string& interface, const string& vif, A dst, A src, uint8_t* data, uint32_t len)

pp

Pretty print frames. Specific to DebugIO.

int  startup ()

startup

Reimplemented from ServiceBase.

int  shutdown ()

shutdown

Reimplemented from ServiceBase.

bool  send (const string& interface, const string& vif, A dst, A src, int ttl, uint8_t* data, uint32_t len)

send

Send Raw frames.

Reimplemented from IO.

bool  register_forward (typename IO<A>::ReceiveCallback cb)

register_forward

Register where frames should be forwarded. Specific to DebugIO.

void  receive (const string& interface, const string& vif, A dst, A src, uint8_t* data, uint32_t len)

receive

Receive frames. Specific to DebugIO.

bool  enable_interface_vif (const string& interface, const string& vif)

enable_interface_vif

Enable the interface/vif to receive frames.

Reimplemented from IO.

bool  disable_interface_vif (const string& interface, const string& vif)

disable_interface_vif

Disable this interface/vif from receiving frames.

Reimplemented from IO.

bool  is_interface_enabled (const string& interface)

is_interface_enabled

[const]

Test whether this interface is enabled.

Returns: true if it exists and is enabled, otherwise false.

Reimplemented from IO.

bool  is_vif_enabled (const string& interface, const string& vif)

is_vif_enabled

[const]

Test whether this interface/vif is enabled.

Returns: true if it exists and is enabled, otherwise false.

Reimplemented from IO.

bool  is_address_enabled (const string& interface, const string& vif, const A& address)

is_address_enabled

[const]

Test whether this interface/vif/address is enabled.

Returns: true if it exists and is enabled, otherwise false.

Reimplemented from IO.

bool  get_addresses (const string& interface, const string& vif, list<A>& )

get_addresses

[const]

Reimplemented from IO.

bool  get_link_local_address (const string& interface, const string& vif, IPv4& address)

get_link_local_address

Reimplemented from IO.

bool  get_link_local_address (const string& interface, const string& vif, IPv6& address)

get_link_local_address

Reimplemented from IO.

bool  get_interface_id (const string& interface, uint32_t& interface_id)

get_interface_id

Reimplemented from IO.

uint32_t  get_prefix_length (const string& interface, const string& vif, A address)

get_prefix_length

Reimplemented from IO.

uint32_t  get_mtu (const string& interface)

get_mtu

Reimplemented from IO.

bool  join_multicast_group (const string& interface, const string& vif, A mcast)

join_multicast_group

On the interface/vif join this multicast group.

Reimplemented from IO.

bool  leave_multicast_group (const string& interface, const string& vif, A mcast)

leave_multicast_group

On the interface/vif leave this multicast group.

Reimplemented from IO.

bool  add_route (IPNet<A> net, A nexthop, uint32_t nexthop_id, uint32_t metric, bool equal, bool discard, const PolicyTags& policytags)

add_route

Add route to RIB.

Reimplemented from IO.

bool  replace_route (IPNet<A> net, A nexthop, uint32_t nexthop_id, uint32_t metric, bool equal, bool discard, const PolicyTags& policytags)

replace_route

Replace route in RIB.

Reimplemented from IO.

bool  delete_route (IPNet<A> net)

delete_route

Delete route from RIB

Reimplemented from IO.

void  routing_table_empty ()

routing_table_empty

A debugging entry point. Empty the routing table.

uint32_t  routing_table_size ()

routing_table_size

bool  routing_table_verify (IPNet<A> net, A nexthop, uint32_t metric, bool equal, bool discard)

routing_table_verify

Verify that this route is in the routing table.

int  packets ()

packets

Return the number of packets that have seen so far.


Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:11:07 2009, using kdoc 2.0a54+XORP.