]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ah.c
CI: Add warning exemptions for Sun C (suncc-5.14) on Solaris 10
[tcpdump] / print-ah.c
index b9364dc3bf7b0f449ebea338094537d30079216f..3b3a792133c238ad98993308c369b77c44c8701f 100644 (file)
@@ -23,9 +23,7 @@
 
 /* \summary: IPSEC Authentication Header printer */
 
 
 /* \summary: IPSEC Authentication Header printer */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
 #include <config.h>
-#endif
 
 #include "netdissect-stdinc.h"
 
 
 #include "netdissect-stdinc.h"
 
@@ -46,7 +44,6 @@ ah_print(netdissect_options *ndo, const u_char *bp)
        ndo->ndo_protocol = "ah";
        ah = (const struct ah *)bp;
 
        ndo->ndo_protocol = "ah";
        ah = (const struct ah *)bp;
 
-       ND_TCHECK_SIZE(ah);
        nd_print_protocol_caps(ndo);
 /*
  * RFC4302
        nd_print_protocol_caps(ndo);
 /*
  * RFC4302
@@ -73,7 +70,4 @@ ah_print(netdissect_options *ndo, const u_char *bp)
        ND_PRINT("): ");
 
        return ah_hdr_len;
        ND_PRINT("): ");
 
        return ah_hdr_len;
-trunc:
-       nd_print_trunc(ndo);
-       return -1;
 }
 }