diff options
-rw-r--r-- | usr.sbin/tcpdump/print-pfsync.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-pfsync.c b/usr.sbin/tcpdump/print-pfsync.c index 0c9a12a4ef0..9c7a96c1a61 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.24 2004/02/10 20:26:50 mcbride Exp $ */ +/* $OpenBSD: print-pfsync.c,v 1.25 2004/02/20 20:03:05 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.24 2004/02/10 20:26:50 mcbride Exp $"; + "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-pfsync.c,v 1.25 2004/02/20 20:03:05 mcbride Exp $"; #endif #include <sys/param.h> @@ -139,6 +139,8 @@ pfsync_print(struct pfsync_header *hdr, int len) if (sizeof(*c) <= len) { c = (void *)((char *)hdr + PFSYNC_HDRLEN); printf("\n\tcreatorid: %08x", htonl(c->creatorid)); + if (c->ifname[0] != '\0') + printf(" interface: %s", c->ifname); } case PFSYNC_ACT_INS: case PFSYNC_ACT_UPD: |