class Fti

Forwarding Table Interface. More...

Contains pure virtuals
Definition#include <fti.hh>
Inherited byDummyFti, RoutingSocketFti
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

Abstract class.

 Fti ()

Fti

 ~Fti ()

~Fti

[virtual]

Mandatory virtual destructor in the base class.

bool  start_configuration ()

start_configuration

[pure virtual]

Start a configuration interval. All modifications to Fti state must be within a marked "configuration" interval.

This method provides derived classes with a mechanism to perform any actions necessary before forwarding table modifications can be made.

Returns: true if configuration successfully started.

bool  end_configuration ()

end_configuration

[pure virtual]

End of configuration interval.

This method provides derived classes with a mechanism to perform any actions necessary at the end of a configuration, eg write a file.

Returns: true configuration success pushed down into forwarding table.

bool  add_entry4 (const Fte4& fte)

add_entry4

[pure virtual]

Add a single routing entry. Must be within a configuration interval.

Parameters:
fte.

Returns: true if the deletion suceed.

bool  delete_entry4 (const Fte4& fte)

delete_entry4

[pure virtual]

Delete a single routing entry. Must be with a configuration interval.

Parameters:
fte. Only destination and netmask are used.

Returns: true if the deletion suceed.

bool  delete_all_entries4 ()

delete_all_entries4

[pure virtual]

Delete all entries in the routing table. Must be within a configuration interval.

Returns: true if the routing table has been emptied.

bool  lookup_route4 (IPv4 dst, Fte4& fte)

lookup_route4

[pure virtual]

Lookup a route.

Parameters:
dstaddress to resolve.
ftea returned forwarding table entry.

Returns: true if lookup suceeded.

bool  lookup_entry4 (const IPv4Net& dst, Fte4& fte)

lookup_entry4

[pure virtual]

Lookup entry.

Pass in a destination network to get a matching entry back.

Returns: true if lookup suceeded.

bool  add_entry6 (const Fte6& fte)

add_entry6

[pure virtual]

Add a single routing entry. Must be within a configuration interval.

Parameters:
tid- the transaction id returned by start_transaction.
ftetable entry to be added.

Returns: true if the deletion suceed.

bool  delete_entry6 (const Fte6& fte)

delete_entry6

[pure virtual]

Delete a single routing entry. Must be within a configuration interval.

Parameters:
ftetable entry to be deleted. Only destination and netmask are used.

Returns: true if the deletion suceed.

bool  lookup_route6 (const IPv6& dst, Fte6& fte)

lookup_route6

[pure virtual]

Lookup a route.

Parameters:
dstaddress to resolve.
ftea returned forwarding table entry.

Returns: true if lookup suceeded.

bool  lookup_entry6 (const IPv6Net& dst, Fte6& fte)

lookup_entry6

[pure virtual]

Lookup entry.

Pass in a destination network to get a matching entry back.

Returns: true if lookup suceeded.

bool  delete_all_entries6 ()

delete_all_entries6

[pure virtual]

Delete all entries in the routing table. Must be within a configuration interval.

Returns: true if the routing table has been emptied.

inline bool  mark_configuration_start ()

mark_configuration_start

[protected]

Mark start of a configuration.

Returns: true if configuration can be marked as started, false otherwise.

inline bool  mark_configuration_end ()

mark_configuration_end

[protected]

Mark end of a configuration.

Returns: true if configuration can be marked as ended, false otherwise.

inline bool  in_configuration ()

in_configuration

[protected const]


Generated by: pavlin on possum.icir.org on Wed Dec 11 16:50:56 2002, using kdoc 2.0a54+XORP.