Skip to content

Commit

Permalink
Fixed issue 7: all routes added with prefix length /32
Browse files Browse the repository at this point in the history
  • Loading branch information
hessu committed Apr 11, 2013
1 parent f60f83f commit b7bdcfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rip44d
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ sub mask2prefix($)
return -1 if ($bits !~ /^(1*)(0*)$/);

# The amount of 1's in the beginning is the prefix length.
return length($bits);
return length($1);
}

# delete a route from the kernel's table
Expand Down

0 comments on commit b7bdcfb

Please sign in to comment.