diff options
author | delphij <delphij@FreeBSD.org> | 2013-05-30 20:51:22 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2013-05-30 20:51:22 +0000 |
commit | cc86f133652d396d6f3dac311d20761a9ee00ad9 (patch) | |
tree | f1ffd0911b49d93d246ae1677dd73d297cd2d92d /contrib/tcpdump/print-bgp.c | |
parent | 0c381861b05890dec1e89030d37c6dbea3c12ca5 (diff) | |
parent | a765887ce77351bac1c77be2cf18a3a66a602fc5 (diff) | |
download | FreeBSD-src-cc86f133652d396d6f3dac311d20761a9ee00ad9.zip FreeBSD-src-cc86f133652d396d6f3dac311d20761a9ee00ad9.tar.gz |
MFV: tcpdump 4.4.0.
MFC after: 4 weeks
Diffstat (limited to 'contrib/tcpdump/print-bgp.c')
-rw-r--r-- | contrib/tcpdump/print-bgp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/tcpdump/print-bgp.c b/contrib/tcpdump/print-bgp.c index c1e382f..4f7053c 100644 --- a/contrib/tcpdump/print-bgp.c +++ b/contrib/tcpdump/print-bgp.c @@ -1531,8 +1531,12 @@ bgp_attr_print(u_int atype, const u_char *pptr, u_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): |