]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-msdp.c
Makefile.in: don't remove configure and config.h.in in make distclean.
[tcpdump] / print-msdp.c
index 129313f8aa0debbf960ccaefe1018230c0ba3882..7845116bdc7e03001d64b4e07a1ba2ece4441c60 100644 (file)
@@ -36,15 +36,14 @@ msdp_print(netdissect_options *ndo, const u_char *sp, u_int length)
        unsigned int type, len;
 
        ndo->ndo_protocol = "msdp";
-       ND_TCHECK_3(sp);
+       ND_PRINT(": ");
+       nd_print_protocol(ndo);
        /* See if we think we're at the beginning of a compound packet */
        type = GET_U_1(sp);
        len = GET_BE_U_2(sp + 1);
        if (len > 1500 || len < 3 || type == 0 || type > MSDP_TYPE_MAX)
                goto trunc;     /* not really truncated, but still not decodable */
-       ND_PRINT(" msdp:");
        while (length != 0) {
-               ND_TCHECK_3(sp);
                type = GET_U_1(sp);
                len = GET_BE_U_2(sp + 1);
                if (len > 1400 || ndo->ndo_vflag)
@@ -75,7 +74,6 @@ msdp_print(netdissect_options *ndo, const u_char *sp, u_int length)
                        break;
                case 2:
                        ND_PRINT(" SA-Request");
-                       ND_TCHECK_5(sp);
                        ND_PRINT(" for %s", GET_IPADDR_STRING(sp + 1));
                        break;
                case 4: