class IfConfigSet


Contains pure virtuals
Definition#include <ifconfig_set.hh>
Inherited byIfConfigSetDummy, IfConfigSetIoctl, IfConfigSetNetlink
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


Detailed Description

 IfConfigSet (IfConfig& ifc)

IfConfigSet

 ~IfConfigSet ()

~IfConfigSet

[virtual]

IfConfig&  ifc ()

ifc

void  register_ifc ()

register_ifc

[virtual]

int  start ()

start

[pure virtual]

Start operation.

Returns: XORP_OK on success, otherwise XORP_ERROR.

int  stop ()

stop

[pure virtual]

Stop operation.

Returns: XORP_OK on success, otherwise XORP_ERROR.

bool  push_config (const IfTree& config)

push_config

[virtual]

Push the network interface configuration into the underlying system.

Parameters:
configthe interface tree configuration to push.

Returns: true on success, otherwise false.

int  set_interface_mac_address (const string& ifname, uint16_t if_index, const struct ether_addr& ether_addr, string& reason)

set_interface_mac_address

[protected pure virtual]

Set the interface MAC address.

Parameters:
ifnamethe interface name.
if_indexthe interface index.
ether_addrthe Ethernet MAC address to set.
reasonthe human-readable reason for any failure.

Returns: XORP_OK on success, otherwise XORP_ERROR.

int  set_interface_mtu (const string& ifname, uint16_t if_index, uint32_t mtu, string& reason)

set_interface_mtu

[protected pure virtual]

Set the interface MTU address.

Parameters:
ifnamethe interface name.
if_indexthe interface index.
mtuthe MTU to set.
reasonthe human-readable reason for any failure.

Returns: XORP_OK on success, otherwise XORP_ERROR.

int  set_interface_flags (const string& ifname, uint16_t if_index, uint32_t flags, string& reason)

set_interface_flags

[protected pure virtual]

Set the interface flags.

Parameters:
ifnamethe interface name.
if_indexthe interface index.
flagsthe flags to set.
reasonthe human-readable reason for any failure.

Returns: XORP_OK on success, otherwise XORP_ERROR.

int  set_vif_address (const string& ifname, uint16_t if_index, bool is_broadcast, bool is_p2p, const IPvX& addr, const IPvX& dst_or_bcast, uint32_t prefix_len, string& reason)

set_vif_address

[protected pure virtual]

Set an address on an interface.

Parameters:
ifnamethe interface name.
if_indexthe interface index.
is_broadcasttrue if dst_or_bcast is a broadcast address.
is_p2ptrue if dst_or_bcast is a destination/peer address.
addrthe address to set.
dst_or_bcastthe broadcast or the destination/peer address.
prefix_lenthe prefix length of the subnet mask.
reasonthe human-readable reason for any failure.

Returns: XORP_OK on success, otherwise XORP_ERROR.

int  delete_vif_address (const string& ifname, uint16_t if_index, const IPvX& addr, uint32_t prefix_len, string& reason)

delete_vif_address

[protected pure virtual]

Delete an address from an interface.

Parameters:
ifnamethe interface name.
if_indexthe interface index.
addrthe address to delete.
prefix_lenthe prefix length of the subnet mask.
reasonthe human-readable reason for any failure.

Returns: XORP_OK on success, otherwise XORP_ERROR.


Generated by: pavlin on possum.icir.org on Thu Nov 6 23:46:57 2003, using kdoc 2.0a54+XORP.