]> The Tcpdump Group git mirrors - tcpdump/commitdiff
use ND_PRINT in print-esp.c
authorDenis Ovsienko <[email protected]>
Sun, 23 Mar 2014 06:36:31 +0000 (10:36 +0400)
committerDenis Ovsienko <[email protected]>
Sun, 23 Mar 2014 06:36:31 +0000 (10:36 +0400)
print-esp.c

index 86b6f0ca2bebbd4cc4445e6485b84088a74337ed..5e000ae1c141dec578857d741305f7fd51627748 100644 (file)
@@ -599,9 +599,9 @@ esp_print(netdissect_options *ndo,
                fputs("[|ESP]", stdout);
                goto fail;
        }
-       (*ndo->ndo_printf)(ndo, "ESP(spi=0x%08x", EXTRACT_32BITS(&esp->esp_spi));
-       (*ndo->ndo_printf)(ndo, ",seq=0x%x)", EXTRACT_32BITS(&esp->esp_seq));
-        (*ndo->ndo_printf)(ndo, ", length %u", length);
+       ND_PRINT((ndo, "ESP(spi=0x%08x", EXTRACT_32BITS(&esp->esp_spi)));
+       ND_PRINT((ndo, ",seq=0x%x)", EXTRACT_32BITS(&esp->esp_seq)));
+       ND_PRINT((ndo, ", length %u", length));
 
 #ifndef HAVE_LIBCRYPTO
        goto fail;
@@ -705,7 +705,7 @@ esp_print(netdissect_options *ndo,
        if (nhdr)
                *nhdr = *(ep - 1);
 
-       (ndo->ndo_printf)(ndo, ": ");
+       ND_PRINT((ndo, ": "));
        return advance;
 #endif