X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/a02d547a6f903622e4255a321cedc11d2db1e4b2..4d4f42a37bf0f9d1372f540c5be193b5b5d4fc0b:/print-bgp.c diff --git a/print-bgp.c b/print-bgp.c index 6f35483b..36f9a345 100644 --- a/print-bgp.c +++ b/print-bgp.c @@ -1511,8 +1511,12 @@ bgp_attr_print(const struct bgp_attr *attr, const u_char *pptr, int len) tptr++; if (tlen) { + int nnh = 0; printf("\n\t nexthop: "); while (tlen > 0) { + if ( nnh++ > 0 ) { + printf( ", " ); + } switch(af<<8 | safi) { case (AFNUM_INET<<8 | SAFNUM_UNICAST): case (AFNUM_INET<<8 | SAFNUM_MULTICAST):