summaryrefslogtreecommitdiffstats
path: root/print-bgp.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2013-05-30 06:46:26 +0000
committerdelphij <delphij@FreeBSD.org>2013-05-30 06:46:26 +0000
commita765887ce77351bac1c77be2cf18a3a66a602fc5 (patch)
tree7ad307c72c31cc07657515d09bc98fe727ce8d27 /print-bgp.c
parent69fe8a0033b22318969c85b57837b48863946665 (diff)
downloadFreeBSD-src-a765887ce77351bac1c77be2cf18a3a66a602fc5.zip
FreeBSD-src-a765887ce77351bac1c77be2cf18a3a66a602fc5.tar.gz
Vendor import of tcpdump 4.4.0.
Diffstat (limited to 'print-bgp.c')
-rw-r--r--print-bgp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/print-bgp.c b/print-bgp.c
index c1e382f..4f7053c 100644
--- a/print-bgp.c
+++ b/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):
OpenPOWER on IntegriCloud