]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-sunatm.c
Add '-Wunreachable-code-return' warning option in devel mode for cmake
[tcpdump] / print-sunatm.c
index 43dceeeadcffda4fb7c4661b270405ba0dcc4125..e1686d83d468e77e32f054678f6aea91346e1cb3 100644 (file)
 /* \summary: SunATM DLPI capture printer */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
 #include "netdissect-stdinc.h"
 
-struct mbuf;
-struct rtentry;
-
 #include "netdissect.h"
 #include "extract.h"
 
@@ -72,8 +69,9 @@ sunatm_if_print(netdissect_options *ndo,
        u_char vpi;
        u_int traftype;
 
+       ndo->ndo_protocol = "sunatm_if";
        if (caplen < PKT_BEGIN_POS) {
-               ND_PRINT("[|atm]");
+               nd_print_trunc(ndo);
                return (caplen);
        }