[Xorp-cvs] SF.net SVN: xorp:[11528] trunk/xorp/pim/pim_vif.cc
bms_fbsd at users.sourceforge.net
bms_fbsd at users.sourceforge.net
Tue Sep 1 05:05:04 PDT 2009
Revision: 11528
http://xorp.svn.sourceforge.net/xorp/?rev=11528&view=rev
Author: bms_fbsd
Date: 2009-09-01 12:05:04 +0000 (Tue, 01 Sep 2009)
Log Message:
-----------
In PimVif::pim_send(), add debug_msg() for the case where an illegal
message type is being sent on the register vif, and for the case where
a send is being attempted when the interface is marked down or pending
down.
Submitted by: Ben Greear (with fixups)
Modified Paths:
--------------
trunk/xorp/pim/pim_vif.cc
Modified: trunk/xorp/pim/pim_vif.cc
===================================================================
--- trunk/xorp/pim/pim_vif.cc 2009-09-01 11:53:35 UTC (rev 11527)
+++ trunk/xorp/pim/pim_vif.cc 2009-09-01 12:05:04 UTC (rev 11528)
@@ -577,8 +577,10 @@
int ttl = MINTTL;
bool ip_internet_control = true; // XXX: might be overwritten below
- if (! (is_up() || is_pending_down()))
+ if (! (is_up() || is_pending_down())) {
+ debug_msg("Vif %s is currently down\n", name().c_str());
return (XORP_ERROR);
+ }
//
// Some of the messages should never be send via the PIM Register vif
@@ -591,6 +593,8 @@
case PIM_ASSERT:
case PIM_GRAFT:
case PIM_GRAFT_ACK:
+ debug_msg("Invalid message type %d on register vif\n",
+ message_type);
return (XORP_ERROR); // Those messages are not allowed
case PIM_REGISTER:
case PIM_REGISTER_STOP:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Xorp-cvs
mailing list