summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormcbride <mcbride@openbsd.org>2003-12-28 21:06:46 +0000
committermcbride <mcbride@openbsd.org>2003-12-28 21:06:46 +0000
commit38a43a0a1d5f3a6144ee574cbc47e3ef8d327206 (patch)
tree581a7e575eade40dd5caf8b7af8f08afe2e9978f
parentelf(5) is relevant here too; (diff)
downloadwireguard-openbsd-38a43a0a1d5f3a6144ee574cbc47e3ef8d327206.tar.xz
wireguard-openbsd-38a43a0a1d5f3a6144ee574cbc47e3ef8d327206.zip
Unbreak tree by using correct PFSYNC_ACT_UREQ #define.
Also remove unused hlen variable.
-rw-r--r--usr.sbin/tcpdump/print-pfsync.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/tcpdump/print-pfsync.c b/usr.sbin/tcpdump/print-pfsync.c
index e7a18a43eb9..076efa4eb21 100644
--- a/usr.sbin/tcpdump/print-pfsync.c
+++ b/usr.sbin/tcpdump/print-pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-pfsync.c,v 1.17 2003/12/28 17:18:58 mcbride Exp $ */
+/* $OpenBSD: print-pfsync.c,v 1.18 2003/12/28 21:06:46 mcbride Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -28,7 +28,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-pfsync.c,v 1.17 2003/12/28 17:18:58 mcbride Exp $";
+ "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-pfsync.c,v 1.18 2003/12/28 21:06:46 mcbride Exp $";
#endif
#include <sys/param.h>
@@ -93,7 +93,6 @@ pfsync_ip_print(const u_char *bp, u_int len, const u_char *bp2)
{
const struct ip *ip = (const struct ip *)bp2;
struct pfsync_header *hdr = (struct pfsync_header *)bp;
- u_int hlen = ip->ip_hl << 2;
if (len < PFSYNC_HDRLEN)
printf("[|pfsync]");
@@ -181,7 +180,7 @@ pfsync_print(struct pfsync_header *hdr, int len)
betoh64(d->id), htonl(d->creatorid));
}
break;
- case PFSYNC_REQ_UPD:
+ case PFSYNC_ACT_UREQ:
for (i = 1, r = (void *)((char *)hdr + PFSYNC_HDRLEN);
i <= hdr->count && i * sizeof(*r) <= len; i++, d++) {
printf("\tid: %016llx creatorid: %08x\n",