diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-01-21 12:49:19 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-01-21 12:49:19 +0000 |
commit | f807dd695246f05c1b579f844a9a8df3b7db37e6 (patch) | |
tree | 83edbba80de324b9600e89948797adc2b97709a0 /usr.sbin/tcpdump | |
parent | 9dc76a02d766daad1d383c04e6ba5f3ec5a98c32 (diff) |
Increment the right pointers, so we don't print the same entries repeatedly.
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r-- | usr.sbin/tcpdump/print-pfsync.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/tcpdump/print-pfsync.c b/usr.sbin/tcpdump/print-pfsync.c index 0c89101977e..7a5edb5a0fa 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.21 2004/01/21 06:15:18 mcbride Exp $ */ +/* $OpenBSD: print-pfsync.c,v 1.22 2004/01/21 12:49:18 mcbride Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -28,7 +28,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-pfsync.c,v 1.21 2004/01/21 06:15:18 mcbride Exp $"; + "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-pfsync.c,v 1.22 2004/01/21 12:49:18 mcbride Exp $"; #endif #include <sys/param.h> @@ -178,7 +178,7 @@ pfsync_print(struct pfsync_header *hdr, int len) break; case PFSYNC_ACT_UPD_C: for (i = 1, u = (void *)((char *)hdr + PFSYNC_HDRLEN); - i <= hdr->count && i * sizeof(*u) <= len; i++, d++) { + i <= hdr->count && i * sizeof(*u) <= len; i++, u++) { printf("\tid: %016llx creatorid: %08x\n", betoh64(u->id), ntohl(u->creatorid)); } @@ -192,7 +192,7 @@ pfsync_print(struct pfsync_header *hdr, int len) break; case PFSYNC_ACT_UREQ: for (i = 1, r = (void *)((char *)hdr + PFSYNC_HDRLEN); - i <= hdr->count && i * sizeof(*r) <= len; i++, d++) { + i <= hdr->count && i * sizeof(*r) <= len; i++, r++) { printf("\tid: %016llx creatorid: %08x\n", betoh64(r->id), ntohl(r->creatorid)); } |