]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-bgp.c
Merge remote-tracking branch 'upstream/master'
[tcpdump] / print-bgp.c
index 6f35483bd42cb694714e1c0a08a08cbaf6fbd267..36f9a345d0a775d754791ad3804366212b1cfc2e 100644 (file)
@@ -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):