diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-02-20 20:03:06 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-02-20 20:03:06 +0000 |
commit | 845c43095d143f89c313146d7880f0013e5fc94d (patch) | |
tree | f189c94916dba981b170d80747425a0af36453f2 /usr.sbin/tcpdump/print-pfsync.c | |
parent | ddd7a668afa8ef97564a89c566115a4abe12033c (diff) |
Print ifname in PFSYNC_ACT_CLR message if present.
Diffstat (limited to 'usr.sbin/tcpdump/print-pfsync.c')
-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: |