]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-babel.c
CI: Add warning exemptions for Sun C (suncc-5.14) on Solaris 10
[tcpdump] / print-babel.c
index 8b495cc1d9c4f476de04bb18c70c3f0b7357c342..c7593ce1f2d16ac2582950d5fec58aeee8d9f3e7 100644 (file)
@@ -37,9 +37,7 @@
  * draft-ietf-babel-source-specific-0
  */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include "netdissect-stdinc.h"
 
@@ -57,7 +55,7 @@ babel_print(netdissect_options *ndo,
             const u_char *cp, u_int length)
 {
     ndo->ndo_protocol = "babel";
-    ND_PRINT("babel");
+    nd_print_protocol(ndo);
 
     ND_TCHECK_4(cp);
 
@@ -81,7 +79,6 @@ babel_print(netdissect_options *ndo,
 
  trunc:
     nd_print_trunc(ndo);
-    return;
 }
 
 /* TLVs */
@@ -395,7 +392,6 @@ babel_print_v2_tlvs(netdissect_options *ndo,
         message = cp + i;
 
         ICHECK(i, 1);
-        ND_TCHECK_1(message);
         if((type = GET_U_1(message)) == MESSAGE_PAD1) {
             ND_PRINT(ndo->ndo_vflag ? "\n\tPad 1" : " pad1");
             i += 1;
@@ -862,5 +858,4 @@ babel_print_v2(netdissect_options *ndo,
 
  invalid:
     nd_print_invalid(ndo);
-    return;
 }