freebsd-ports/security/pf/files/patch-aa
Foxfair Hu 9c34cb3269 Submitted by: maintainer
Obtained from:	Andrzej Tobola <san@iem.pw.edu.pl>
Fix build if NOINET6 is defined, and bump PORTREVISION to aware this.
2003-06-16 03:14:27 +00:00

32 lines
698 B
Text

--- freebsd_tcpdump/print-pflog.c.orig Fri Jun 13 18:14:50 2003
+++ freebsd_tcpdump/print-pflog.c Fri Jun 13 18:15:39 2003
@@ -64,7 +64,9 @@
u_int length = h->len;
u_int caplen = h->caplen;
const struct ip *ip;
+#ifdef INET6
const struct ip6_hdr *ip6;
+#endif
const struct pfloghdr *hdr;
u_short res;
char reason[128], *why;
@@ -129,13 +131,16 @@
if (xflag)
default_print((const u_char *)ip,
caplen - PFLOG_HDRLEN);
- } else {
+ }
+#ifdef INET6
+ else {
ip6 = (struct ip6_hdr *)(p + PFLOG_HDRLEN);
ip6_print((const u_char *)ip6, length);
if (xflag)
default_print((const u_char *)ip6,
caplen - PFLOG_HDRLEN);
}
+#endif
out:
putchar('\n');