]> The Tcpdump Group git mirrors - tcpdump/commitdiff
style
authoritojun <itojun>
Sun, 28 Jan 2001 09:52:47 +0000 (09:52 +0000)
committeritojun <itojun>
Sun, 28 Jan 2001 09:52:47 +0000 (09:52 +0000)
print-bgp.c
print-icmp.c

index e91b160a256419b8bc603ee5438d0289373603ea..6d17f6f6b606ce7cab7229828f024b457c570ba3 100644 (file)
@@ -33,7 +33,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-     "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.21 2000-12-05 05:48:35 guy Exp $";
+     "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.22 2001-01-28 09:52:47 itojun Exp $";
 #endif
 
 #include <sys/param.h>
@@ -192,7 +192,7 @@ static const char *bgpattr_type[] = {
 
 /* Subsequent address family identifier, RFC2283 section 7 */
 static const char *bgpattr_nlri_safi[] = {
-    "Reserved", "Unicast", "Multicast", "Unicast+Multicast",
+       "Reserved", "Unicast", "Multicast", "Unicast+Multicast",
 };
 #define bgp_attr_nlri_safi(x) \
        num_or_str(bgpattr_nlri_safi, \
@@ -584,9 +584,10 @@ bgp_update_print(const u_char *dat, int length)
        /* Unfeasible routes */
        len = EXTRACT_16BITS(p);
        if (len) {
-               /*  Without keeping state from the original NLRI message,
-                *  it's not possible to tell if this a v4 or v6 route,
-                *  so only try to decode it if we're not v6 enabled.
+               /*
+                * Without keeping state from the original NLRI message,
+                * it's not possible to tell if this a v4 or v6 route,
+                * so only try to decode it if we're not v6 enabled.
                 */
 #ifdef INET6
                printf(" (Withdrawn routes: %d bytes)", len);
index fc83513371ea2ed3c9c54f23708e88f64fe7b082..38a9d7bd726560dd80eeaa0a23854dd77425d528 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-icmp.c,v 1.57 2000-10-10 05:03:32 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-icmp.c,v 1.58 2001-01-28 09:53:18 itojun Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -284,7 +284,7 @@ icmp_print(register const u_char *bp, u_int plen, register const u_char *bp2)
        str = buf;
 
 #if 0
-        (void)printf("%s > %s: ",
+       (void)printf("%s > %s: ",
                ipaddr_string(&ip->ip_src),
                ipaddr_string(&ip->ip_dst));
 #endif
@@ -339,12 +339,12 @@ icmp_print(register const u_char *bp, u_int plen, register const u_char *bp2)
                    {
                        register const struct mtu_discovery *mp;
                        mp = (struct mtu_discovery *)&dp->icmp_void;
-                        mtu = EXTRACT_16BITS(&mp->nexthopmtu);
-                        if (mtu) {
+                       mtu = EXTRACT_16BITS(&mp->nexthopmtu);
+                       if (mtu) {
                                (void)snprintf(buf, sizeof(buf),
                                    "%s unreachable - need to frag (mtu %d)",
                                    ipaddr_string(&dp->icmp_ip.ip_dst), mtu);
-                        } else {
+                       } else {
                                (void)snprintf(buf, sizeof(buf),
                                    "%s unreachable - need to frag",
                                    ipaddr_string(&dp->icmp_ip.ip_dst));
@@ -480,7 +480,7 @@ icmp_print(register const u_char *bp, u_int plen, register const u_char *bp2)
                str = tok2str(icmp2str, "type-#%d", dp->icmp_type);
                break;
        }
-        (void)printf("icmp: %s", str);
+       (void)printf("icmp: %s", str);
        if (vflag) {
                if (TTEST2(*bp, plen)) {
                        if (in_cksum((u_short*)dp, plen, 0))