]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-lwapp.c
ICMPv6: Add the IPv6-Only flag
[tcpdump] / print-lwapp.c
index fac11356e9806e123c9d91dd492aa5f7a3c392e3..f8ca66579779be6752a5d0ebaa0364db5d8cde65 100644 (file)
@@ -29,6 +29,7 @@
 #include "extract.h"
 #include "addrtoname.h"
 
+
 /*
  * LWAPP transport (common) header
  *      0                   1                   2                   3
@@ -172,6 +173,7 @@ lwapp_control_print(netdissect_options *ndo,
     u_int tlen;
     u_int msg_type, msg_tlen;
 
+    ndo->ndo_protocol = "lwapp_control";
     tptr=pptr;
 
     if (has_ap_ident) {
@@ -291,8 +293,8 @@ lwapp_control_print(netdissect_options *ndo,
     }
     return;
 
- trunc:
-    ND_PRINT("\n\t\t packet exceeded snapshot");
+trunc:
+    nd_print_trunc(ndo);
 }
 
 void
@@ -304,6 +306,7 @@ lwapp_data_print(netdissect_options *ndo,
     u_int tlen;
     u_int version;
 
+    ndo->ndo_protocol = "lwapp_data";
     tptr=pptr;
 
     /* check if enough bytes for AP identity */
@@ -359,13 +362,6 @@ lwapp_data_print(netdissect_options *ndo,
 
     return;
 
- trunc:
-    ND_PRINT("\n\t\t packet exceeded snapshot");
+trunc:
+    nd_print_trunc(ndo);
 }
-
-/*
- * Local Variables:
- * c-style: whitesmith
- * c-basic-offset: 8
- * End:
- */