MCProxy

routing_msg Struct Reference
[Communication]

Message used from module Proxy Instance to introduce the module Routing.

#include "message_format.hpp"

List of all members.

Public Types

enum  routing_action { ADD_VIF, DEL_VIF, ADD_ROUTE, DEL_ROUTE }

Public Member Functions

 routing_msg (routing_action type, int vif, addr_storage g_addr, addr_storage src_addr)
 routing_msg (routing_action type, int vif, addr_storage g_addr, addr_storage src_addr, std::list< int > output_vif)
 routing_msg (routing_action type, int if_index, int vif)
 ~routing_msg ()

Public Attributes

addr_storage g_addr
int if_index
std::list< int > output_vif
addr_storage src_addr
routing_action type
int vif

Member Enumeration Documentation

Available message types.

Enumerator:
ADD_VIF 

Message type to add a virtual interface to the multicast routing table.

DEL_VIF 

Message type to delete a virtual interface from the mutlicast table.

ADD_ROUTE 

Message type to add a forwarding route to the multicast routing table.

DEL_ROUTE 

Message type to delete a forwarding route from the multciast routing table.


Constructor & Destructor Documentation

routing_msg::routing_msg ( routing_action  type,
int  if_index,
int  vif 
) [inline]

Constructor used for the actions ADD_VIF and DEL_VIF.

Parameters:
type type of the action
if_index actionfor a specific interface index
vif action for a specific virtual interface index

References HC_LOG_TRACE.

routing_msg::routing_msg ( routing_action  type,
int  vif,
addr_storage  g_addr,
addr_storage  src_addr,
std::list< int >  output_vif 
) [inline]

Constructor used for the action ADD_ROUTE.

Parameters:
type type of the action
vif virtual interface index of the input interface
g_addr multicast group address of the forwarding rule
src_addr specific source address of the forwarding rule
output_vif vector of virutal output interface indexes

References HC_LOG_TRACE.

routing_msg::routing_msg ( routing_action  type,
int  vif,
addr_storage  g_addr,
addr_storage  src_addr 
) [inline]

Constructor used for the action DEL_ROUTE.

Parameters:
type type of the action
vif virtual interface index of the input interface
g_addr multicast group address of the forwarding rule
src_addr specific source address of the forwarding rule

References HC_LOG_TRACE.

routing_msg::~routing_msg (  )  [inline]

default Constructor

References HC_LOG_TRACE.


Member Data Documentation

Action for a specific multicast group.

Action on a specific interface index.

std::list<int> routing_msg::output_vif

vector of virutal output interface indexes

Action for a specific source address.

Type of the routing message.

Action on a virtual interface index.