]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-bgp.c
Separate multiple nexthops.
[tcpdump] / print-bgp.c
index 6460a59e0c471881f87d84af66ff8ffc6fb8fea2..41cab22014675619df0b81e6ab506712031076df 100644 (file)
@@ -1510,8 +1510,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):