]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-lspping.c
Fix spaces
[tcpdump] / print-lspping.c
index 387f94898c4d71c5637677f224e21b5c1262b566..077f07b1de96c767c3d18c4e4718787a4073db60 100644 (file)
@@ -18,7 +18,7 @@
 /* specification: RFC 4349 */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
 #include "netdissect-stdinc.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:
- */