]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-symantec.c
Update .gitignore for other configurations
[tcpdump] / print-symantec.c
index cb430e58f95382ff04a7c1f340ce5b55d52c6abb..617cf44725be43e4f77e44ddb0abc8f426e594df 100644 (file)
@@ -22,7 +22,7 @@
 /* \summary: Symantec Enterprise Firewall printer */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
 #include "netdissect-stdinc.h"
@@ -37,7 +37,7 @@ struct symantec_header {
        nd_byte     stuff2[36];
 };
 
-static inline void
+static void
 symantec_hdr_print(netdissect_options *ndo, const u_char *bp, u_int length)
 {
        const struct symantec_header *sp;
@@ -77,8 +77,9 @@ symantec_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_
        const struct symantec_header *sp;
        u_short ether_type;
 
+       ndo->ndo_protocol = "symantec_if";
        if (caplen < sizeof (struct symantec_header)) {
-               ND_PRINT("[|symantec]");
+               nd_print_trunc(ndo);
                return caplen;
        }