From 845c43095d143f89c313146d7880f0013e5fc94d Mon Sep 17 00:00:00 2001 From: Ryan Thomas McBride Date: Fri, 20 Feb 2004 20:03:06 +0000 Subject: Print ifname in PFSYNC_ACT_CLR message if present. --- usr.sbin/tcpdump/print-pfsync.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.sbin/tcpdump/print-pfsync.c') 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 @@ -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: -- cgit v1.2.3