]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-gre.c
GRE, VXLAN: Fix output printing with s/printf/ND_PRINT/
[tcpdump] / print-gre.c
index 30bb6c212a54d8c425463da3d72c0b30312cf8fa..732903f84fbeebc79ae21cdac3fd276936f10336 100644 (file)
@@ -239,7 +239,7 @@ gre_print_0(netdissect_options *ndo, const u_char *bp, u_int length)
                 * use it for keep-alives; see, for example,
                 * https://www.cisco.com/c/en/us/support/docs/ip/generic-routing-encapsulation-gre/118370-technote-gre-00.html#anc1
                 */
-               printf("keep-alive");
+               ND_PRINT("keep-alive");
                break;
        case GRE_WCCP:
                /*
@@ -283,7 +283,7 @@ gre_print_0(netdissect_options *ndo, const u_char *bp, u_int length)
                        bp += sizeof(*wccp);
                        len -= sizeof(*wccp);
 
-                       printf(": ");
+                       ND_PRINT(": ");
                }
                /* FALLTHROUGH */
        case ETHERTYPE_IP: