]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-mpcp.c
Merge pull request #704 from nmap/win32-isatty
[tcpdump] / print-mpcp.c
index 9c0675ad81fcb7bc213c48d9a92f802583c46054..ebfe74a6ccdaa34a8534cf36e48a3e2d213b2f79 100644 (file)
 /* \summary: IEEE 802.3ah Multi-Point Control Protocol (MPCP) 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"
@@ -134,6 +134,7 @@ mpcp_print(netdissect_options *ndo, const u_char *pptr, u_int length)
     uint8_t grant_numbers, grant;
     uint8_t queue_sets, queue_set, report_bitmap, report;
 
+    ndo->ndo_protocol = "mpcp";
     tptr=pptr;
     mpcp.common_header = (const struct mpcp_common_header_t *)pptr;
 
@@ -246,11 +247,5 @@ mpcp_print(netdissect_options *ndo, const u_char *pptr, u_int length)
     return;
 
 trunc:
-    ND_PRINT("\n\t[|MPCP]");
+    nd_print_trunc(ndo);
 }
-/*
- * Local Variables:
- * c-style: whitesmith
- * c-basic-offset: 8
- * End:
- */