* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#ifndef lint
-static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/print-pflog.c,v 1.16 2007-09-12 19:36:18 guy Exp $ (LBL)";
-#endif
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "extract.h"
#include "interface.h"
-#include "addrtoname.h"
+
+static const char tstr[] = "[|pflog]";
static const struct tok pf_reasons[] = {
{ 0, "0(match)" },
/* check length */
if (caplen < sizeof(u_int8_t)) {
- printf("[|pflog]");
+ printf("%s", tstr);
return (caplen);
}
hdrlen = BPF_WORDALIGN(hdr->length);
if (caplen < hdrlen) {
- printf("[|pflog]");
+ printf("%s", tstr);
return (hdrlen); /* XXX: true? */
}
TCHECK(*hdr);
if (eflag)
pflog_print(hdr);
-
+
/* skip to the real packet */
af = hdr->af;
length -= hdrlen;
if (!suppress_default_print)
default_print(p, caplen);
}
-
+
return (hdrlen);
trunc:
- printf("[|pflog]");
+ printf("%s", tstr);
return (hdrlen);
}