[Xorp-hackers] Here's some bgp config files that work.

Ben Greear greearb at candelatech.com
Thu Apr 22 09:13:58 PDT 2010


On 04/22/2010 09:02 AM, Atanu Ghosh wrote:
> Hi,
>
> The test for the nexthop being zero is in
> FastPathAttributeList<A>::load_raw_data:
>
>                  // if there's an NLRI, there must be a non-zero nexthop
>                  if (do_checks&&  mp4_reach_att->nexthop() == IPv4::ZERO()) {
>                      uint8_t data = NEXT_HOP;
>                      xorp_throw(CorruptMessage,"Illegal nexthop", UPDATEMSGERR,
>                                 MISSWATTR,&data, 1);
>                  }
>
> I don't know why it isn't being caught here.

 From debugging yesterday, it seems that routes can get into the route entry cache
that are invalid (multicast addr for next-hop, for instance), but they
are not immediately parsed.  As soon as they *are* parsed and verified,
the exception is thrown.

For the 0.0.0.0 nexthop, I have an explicit null default gw route configured
in Xorp.  I didn't have to do any funny external xrl calls to get that exception
to happen..probably loading a similar config as what I posted would reproduce
the problem for you.

Thanks,
Ben

-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Xorp-hackers mailing list