]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-lspping.c
Fix spaces
[tcpdump] / print-lspping.c
index 42c7a682d86cc29acd30a0e433fa87521b4b0686..077f07b1de96c767c3d18c4e4718787a4073db60 100644 (file)
 /* specification: RFC 4349 */
 
 #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"
@@ -30,6 +30,7 @@
 #include "l2vpn.h"
 #include "oui.h"
 
+
 /*
  * LSPPING common header
  *
@@ -523,6 +524,7 @@ lspping_print(netdissect_options *ndo,
         const struct lspping_tlv_targetfec_subtlv_bgp_ipv6_t *lspping_tlv_targetfec_subtlv_bgp_ipv6;
     } subtlv_ptr;
 
+    ndo->ndo_protocol = "lspping";
     tptr=pptr;
     lspping_com_header = (const struct lspping_common_header *)pptr;
     if (len < sizeof(struct lspping_common_header))
@@ -1085,12 +1087,6 @@ tooshort:
     ND_PRINT("\n\t\t packet is too short");
     return;
 trunc:
-    ND_PRINT("\n\t\t packet exceeded snapshot");
+    nd_print_trunc(ndo);
     return;
 }
-/*
- * Local Variables:
- * c-style: whitesmith
- * c-basic-offset: 8
- * End:
- */