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 <[email protected]>
Candela Technologies Inc http://www.candelatech.com
_______________________________________________
Xorp-hackers mailing list
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers