Skip to content

Commit

Permalink
pim: Compile fixes for gcc 4.6
Browse files Browse the repository at this point in the history
Original patch by:
Jose Manuel dos Santos Calhariz <jose.spam@netvisao.pt>

Signed-off-by: Ben Greear <greearb@candelatech.com>
  • Loading branch information
greearb committed Jul 25, 2011
1 parent 2115df3 commit fa334a9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 77 deletions.
9 changes: 6 additions & 3 deletions xorp/pim/pim_mrt_mfc.cc
Expand Up @@ -470,7 +470,6 @@ PimMrt::signal_dataflow_recv(const IPvX& source_addr,
bool is_leq_upcall)
{
PimMre *pim_mre;
PimMre *pim_mre_wc;
PimMre *pim_mre_sg;
PimMfc *pim_mfc;
uint32_t lookup_flags
Expand Down Expand Up @@ -530,17 +529,21 @@ PimMrt::signal_dataflow_recv(const IPvX& source_addr,
break;
} while (false);

// TODO: pim_mre_wc is un-used...need to see if it should be used,
// and if not, just delete this code. --Ben
#if 0
//
// Get the (*,G) entry
//
pim_mre_wc = NULL;
PimMre *pim_mre_wc = NULL;
if (pim_mre != NULL) {
if (pim_mre->is_wc())
pim_mre_wc = pim_mre;
else
pim_mre_wc = pim_mre->wc_entry();
}

#endif

if (is_geq_upcall)
goto is_geq_upcall_label;
else
Expand Down
2 changes: 2 additions & 0 deletions xorp/pim/pim_proto_assert.cc
Expand Up @@ -84,6 +84,8 @@ PimVif::pim_assert_recv(PimNbr *pim_nbr,
AssertMetric assert_metric(src);
bool rpt_bit;

UNUSED(group_addr_reserved_flags);

//
// Parse the message
//
Expand Down
22 changes: 1 addition & 21 deletions xorp/pim/pim_proto_join_prune.cc
Expand Up @@ -35,27 +35,6 @@
#include "pim_vif.hh"


//
// Exported variables
//

//
// Local constants definitions
//

//
// Local structures/classes, typedefs and macros
//

//
// Local variables
//

//
// Local functions prototypes
//


/**
* PimVif::pim_join_prune_recv:
* @pim_nbr: The PIM neighbor message originator (or NULL if not a neighbor).
Expand Down Expand Up @@ -95,6 +74,7 @@ PimVif::pim_join_prune_recv(PimNbr *pim_nbr, const IPvX& src,
UNUSED(src);
UNUSED(dst);
UNUSED(message_type);
UNUSED(group_addr_reserved_flags);

//
// Parse the message
Expand Down
31 changes: 1 addition & 30 deletions xorp/pim/pim_proto_join_prune_message.cc
Expand Up @@ -40,27 +40,6 @@
#include "pim_vif.hh"


//
// Exported variables
//

//
// Local constants definitions
//

//
// Local structures/classes, typedefs and macros
//

//
// Local variables
//

//
// Local functions prototypes
//


PimJpHeader::PimJpHeader(PimNode* pim_node)
: _pim_node(pim_node),
_family(pim_node->family()),
Expand Down Expand Up @@ -341,7 +320,7 @@ PimJpHeader::mrt_commit(PimVif *pim_vif, const IPvX& target_nbr_addr)
uint32_t lookup_flags = 0, create_flags = 0;
uint32_t vif_index;
uint16_t holdtime;
uint8_t source_mask_len, group_mask_len;
uint8_t group_mask_len;
IPvX source_addr(family()), group_addr(family());
list<PimJpGroup *>::iterator iter;
PimMre *pim_mre;
Expand Down Expand Up @@ -399,7 +378,6 @@ PimJpHeader::mrt_commit(PimVif *pim_vif, const IPvX& target_nbr_addr)
iter2 != jp_group->rp()->j_list().end();
++iter2) {
source_addr = *iter2;
source_mask_len = IPvX::addr_bitlen(family());

if (i_am_target_router)
pim_mrt().add_task_receive_join_rp(vif_index, source_addr);
Expand Down Expand Up @@ -428,7 +406,6 @@ PimJpHeader::mrt_commit(PimVif *pim_vif, const IPvX& target_nbr_addr)
iter2 != jp_group->rp()->p_list().end();
++iter2) {
source_addr = *iter2;
source_mask_len = IPvX::addr_bitlen(family());

if (i_am_target_router)
pim_mrt().add_task_receive_prune_rp(vif_index, source_addr);
Expand Down Expand Up @@ -456,7 +433,6 @@ PimJpHeader::mrt_commit(PimVif *pim_vif, const IPvX& target_nbr_addr)
iter2 != jp_group->wc()->j_list().end();
++iter2) {
source_addr = *iter2;
source_mask_len = IPvX::addr_bitlen(family());

if (i_am_target_router)
pim_mrt().add_task_receive_join_wc(vif_index, group_addr);
Expand Down Expand Up @@ -485,7 +461,6 @@ PimJpHeader::mrt_commit(PimVif *pim_vif, const IPvX& target_nbr_addr)
iter2 != jp_group->wc()->p_list().end();
++iter2) {
source_addr = *iter2;
source_mask_len = IPvX::addr_bitlen(family());

if (i_am_target_router) {
pim_mrt().add_task_receive_prune_wc(vif_index, group_addr);
Expand Down Expand Up @@ -516,7 +491,6 @@ PimJpHeader::mrt_commit(PimVif *pim_vif, const IPvX& target_nbr_addr)
iter2 != jp_group->sg_rpt()->j_list().end();
++iter2) {
source_addr = *iter2;
source_mask_len = IPvX::addr_bitlen(family());

if (i_am_target_router) {
pim_mrt().add_task_receive_join_sg_rpt(vif_index, source_addr,
Expand Down Expand Up @@ -545,7 +519,6 @@ PimJpHeader::mrt_commit(PimVif *pim_vif, const IPvX& target_nbr_addr)
iter2 != jp_group->sg_rpt()->p_list().end();
++iter2) {
source_addr = *iter2;
source_mask_len = IPvX::addr_bitlen(family());

if (i_am_target_router) {
pim_mrt().add_task_receive_prune_sg_rpt(vif_index, source_addr,
Expand Down Expand Up @@ -608,7 +581,6 @@ PimJpHeader::mrt_commit(PimVif *pim_vif, const IPvX& target_nbr_addr)
iter2 != jp_group->sg()->j_list().end();
++iter2) {
source_addr = *iter2;
source_mask_len = IPvX::addr_bitlen(family());

if (i_am_target_router) {
pim_mrt().add_task_receive_join_sg(vif_index, source_addr,
Expand Down Expand Up @@ -639,7 +611,6 @@ PimJpHeader::mrt_commit(PimVif *pim_vif, const IPvX& target_nbr_addr)
iter2 != jp_group->sg()->p_list().end();
++iter2) {
source_addr = *iter2;
source_mask_len = IPvX::addr_bitlen(family());

if (i_am_target_router) {
pim_mrt().add_task_receive_prune_sg(vif_index, source_addr,
Expand Down
24 changes: 1 addition & 23 deletions xorp/pim/pim_proto_register_stop.cc
Expand Up @@ -18,8 +18,6 @@
// http://xorp.net




//
// PIM PIM_REGISTER_STOP messages processing.
//
Expand All @@ -36,27 +34,6 @@
#include "pim_vif.hh"


//
// Exported variables
//

//
// Local constants definitions
//

//
// Local structures/classes, typedefs and macros
//

//
// Local variables
//

//
// Local functions prototypes
//


/**
* PimVif::pim_register_stop_recv:
* @pim_nbr: The PIM neighbor message originator (or NULL if not a neighbor).
Expand All @@ -79,6 +56,7 @@ PimVif::pim_register_stop_recv(PimNbr *pim_nbr,
uint8_t group_mask_len;
IPvX source_addr(family()), group_addr(family());
UNUSED(dst);
UNUSED(group_addr_reserved_flags);

//
// Parse the message
Expand Down

0 comments on commit fa334a9

Please sign in to comment.