[ris-int] how to get the next hop from ris raw data
Lorenzo Colitti colitti at dia.uniroma3.it
Wed Apr 4 06:20:47 CEST 2007
Rene Wilhelm wrote: > But next question is how this applies to IPv4. The bgpdump.c code > features same constructs for AFI_IP and AFI_IP6. > > e.g. > > printf("(IPv4 Unicast)\n"); > printf("NEXT_HOP: %s\n",inet_ntoa(attr->mp_info->announce[AFI_IP][SAFI_UNICAST]->nexthop.v4_addr)); > if (attr->mp_info->announce[AFI_IP][SAFI_UNICAST]->nexthop_len==32) > printf("NEXT_HOP: %s\n",inet_ntoa(attr->mp_info->announce[AFI_IP][SAFI_UNICAST]->nexthop_local.v4_addr)); > > > is it ever possible to get nexthop_len==32 in this case ??? > or did the authors of bgpdump.c just liked typing? :) I think the authors of bgpdump.c just liked cut and paste :-) Hello from sunny California! Cheers, Lorenzo -- Lorenzo Colitti http://www.colitti.com/lorenzo/
[ Ris-int Archives ]