]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-lmp.c
Fixed some warnings, added print-zep.c to CMakeLists
[tcpdump] / print-lmp.c
index ff3fd9d9f6c8b5c9f04594cffc2d1acf8bede416..26f4ba7bc4996220072223920a9c8a2cf8e94b02 100644 (file)
 /* OIF UNI 1.0: http://www.oiforum.com/public/documents/OIF-UNI-01.0.pdf */
 
 #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"
 #include "addrtoname.h"
 #include "gmpls.h"
 
+
 /*
  * LMP common header
  *
@@ -438,6 +439,7 @@ lmp_print(netdissect_options *ndo,
         uint32_t i;
     } bw;
 
+    ndo->ndo_protocol = "lmp";
     tptr=pptr;
     lmp_com_header = (const struct lmp_common_header *)pptr;
     ND_TCHECK_SIZE(lmp_com_header);
@@ -870,7 +872,7 @@ lmp_print(netdissect_options *ndo,
 
                        ND_PRINT("\n\t\t    Channel Status: %s (%u)",
                                        tok2str(lmp_obj_channel_status_values,
-                                       "Unknown",
+                                       "Unknown",
                                        EXTRACT_BE_U_4(obj_tptr + offset + 4)&0x3FFFFFF),
                                        EXTRACT_BE_U_4(obj_tptr + offset + 4)&0x3FFFFFF);
                        offset+=8;
@@ -1131,11 +1133,5 @@ lmp_print(netdissect_options *ndo,
     }
     return;
 trunc:
-    ND_PRINT("\n\t\t packet exceeded snapshot");
+    nd_print_trunc(ndo);
 }
-/*
- * Local Variables:
- * c-style: whitesmith
- * c-basic-offset: 8
- * End:
- */