bugfix provided by Sergey Gonchar.

This commit is contained in:
snar
2009-07-13 10:22:05 +00:00
parent 315f0d99c8
commit 8d07253aa6
3 changed files with 8 additions and 4 deletions

View File

@@ -1,3 +1,5 @@
0.1.10 (2009-06-13)
- Fixed bug in aggregation (-A) mode, thanks to Sergey Gonchar.
0.1.9 (2009-03-27) 0.1.9 (2009-03-27)
- RIPE changed ASN32 notation to asplain. And RADB does not support - RIPE changed ASN32 notation to asplain. And RADB does not support

View File

@@ -21,7 +21,7 @@
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" "$Id: bgpq3.8,v 1.4 2008/12/25 17:17:05 snar Exp $ .\" "$Id: bgpq3.8,v 1.5 2009/07/13 10:22:05 snar Exp $
.\" .\"
.Dd Oct 27, 2008 .Dd Oct 27, 2008
.Dt BGPQ3 8 .Dt BGPQ3 8
@@ -45,7 +45,7 @@
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm .Nm
ultility used to generate Cisco and Juniper prefix-lists, extended utility used to generate Cisco and Juniper prefix-lists, extended
access-lists, policy-statement terms and as-path lists based on RADB data. access-lists, policy-statement terms and as-path lists based on RADB data.
.Pp .Pp
The options are as follows: The options are as follows:
@@ -213,7 +213,7 @@ ip as-path access-list NN permit ^112(_[0-9]+)*_(35052|41720|43628|44450)$
AS196611 is no more in the list, however, AS23456 (transition AS) AS196611 is no more in the list, however, AS23456 (transition AS)
would be added to list if it were not present. would be added to list if it were not present.
.Sh DIAGNOSTICS .Sh DIAGNOSTICS
When everyting is ok, When everything is OK,
.Nm .Nm
generates access-list to standard output and exits with status == 0. generates access-list to standard output and exits with status == 0.
In case of errors they are printed to stderr and program exits with In case of errors they are printed to stderr and program exits with

View File

@@ -524,7 +524,9 @@ sx_radix_node_aggregate(struct sx_radix_node* node)
if(node->r->son && node->l->son && if(node->r->son && node->l->son &&
node->r->son->isAggregate && node->l->son->isAggregate && node->r->son->isAggregate && node->l->son->isAggregate &&
node->r->son->aggregateHi==node->l->son->aggregateHi && node->r->son->aggregateHi==node->l->son->aggregateHi &&
node->r->son->aggregateLow==node->l->son->aggregateLow) node->r->son->aggregateLow==node->l->son->aggregateLow &&
node->r->prefix.masklen==node->prefix.masklen+1 &&
node->l->prefix.masklen==node->prefix.masklen+1)
{ {
node->son=sx_radix_node_new(&node->prefix); node->son=sx_radix_node_new(&node->prefix);
node->son->isGlue=0; node->son->isGlue=0;