Skip to content

Commit

Permalink
libproto: Start fake VIF index search at 1.
Browse files Browse the repository at this point in the history
I think that PIM vif index of > 32 might be invalid,
and no good reason to start higher than 1 anyway.
  • Loading branch information
greearb committed Jul 31, 2012
1 parent 3359991 commit 28428ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xorp/libproto/proto_node.hh
Expand Up @@ -817,7 +817,7 @@ ProtoNode<V>::adjust_fake_vif(V *vif, int not_this_ifindex) {
XLOG_INFO("adjusting fake vif ifindex: %s ignore-idx: %i",
vif->name().c_str(), not_this_ifindex);
ProtoNode<V>::delete_vif(vif);
int i = 100;
int i = 1;
while (true) {
if (i != not_this_ifindex) {
vif = vif_find_by_vif_index(i);
Expand Down

0 comments on commit 28428ca

Please sign in to comment.