]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-igrp.c
Fix spaces
[tcpdump] / print-igrp.c
index d114957d69eff8c050062313c5a9b0c6e55c3492..a9eb28ef1c83c5e4e0eb851d1fd5c900a069ada4 100644 (file)
 /* \summary: Interior Gateway Routing Protocol (IGRP) printer */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
-#include <netdissect-stdinc.h>
+#include "netdissect-stdinc.h"
 
 #include "netdissect.h"
 #include "extract.h"
@@ -108,6 +108,7 @@ igrp_print(netdissect_options *ndo, const u_char *bp, u_int length)
        const u_char *cp;
        u_int nint, nsys, next;
 
+       ndo->ndo_protocol = "igrp";
        hdr = (const struct igrphdr *)bp;
        cp = (const u_char *)(hdr + 1);
        ND_PRINT("igrp:");
@@ -151,5 +152,5 @@ igrp_print(netdissect_options *ndo, const u_char *bp, u_int length)
        if (nint == 0 && nsys == 0 && next == 0)
                return;
 trunc:
-       ND_PRINT(" [|igrp]");
+       nd_print_trunc(ndo);
 }