Revision fe9f1a6d filter/filter.c

View differences:

filter/filter.c
792 792
      {
793 793
      case SA_FROM:	res.val.px.ip = rta->from; break;
794 794
      case SA_GW:	res.val.px.ip = rta->gw; break;
795
      case SA_NET:	res.val.px.ip = (*f_rte)->net->n.prefix;
796
			res.val.px.len = (*f_rte)->net->n.pxlen; break;
795
      case SA_NET:	res.val.px.ip = net_prefix((*f_rte)->net->n.addr);
796
			res.val.px.len = net_pxlen((*f_rte)->net->n.addr); break;
797 797
      case SA_PROTO:	res.val.s = rta->src->proto->name; break;
798 798
      case SA_SOURCE:	res.val.i = rta->source; break;
799 799
      case SA_SCOPE:	res.val.i = rta->scope; break;
......
1292 1292
    else
1293 1293
    {
1294 1294
      ACCESS_RTE;
1295
      v1.val.px.ip = (*f_rte)->net->n.prefix;
1296
      v1.val.px.len = (*f_rte)->net->n.pxlen;
1295
      v1.val.px.ip = net_prefix((*f_rte)->net->n.addr);
1296
      v1.val.px.len = net_pxlen((*f_rte)->net->n.addr);
1297 1297

  
1298 1298
      /* We ignore temporary attributes, probably not a problem here */
1299 1299
      /* 0x02 is a value of BA_AS_PATH, we don't want to include BGP headers */

Also available in: Unified diff