From 0b4f1cf41ed252b5c526ca71c54f978e4464c66d Mon Sep 17 00:00:00 2001 From: sthen Date: Fri, 9 May 2014 21:03:43 +0000 Subject: [PATCH] print interface name with queues in "systat q"; ok henning --- usr.bin/systat/pftop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.bin/systat/pftop.c b/usr.bin/systat/pftop.c index 47055800d83..de6771e1973 100644 --- a/usr.bin/systat/pftop.c +++ b/usr.bin/systat/pftop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pftop.c,v 1.27 2014/05/03 11:11:15 chl Exp $ */ +/* $OpenBSD: pftop.c,v 1.28 2014/05/09 21:03:43 sthen Exp $ */ /* * Copyright (c) 2001, 2007 Can Erkin Acar * Copyright (c) 2001 Daniel Hartmeier @@ -1633,6 +1633,8 @@ print_queue_node(struct pfctl_queue_node *node) for (i = 0; i < node->depth; i++) tbprintf(" "); tbprintf("%s", node->qs.qname); + if (i == 0 && node->qs.ifname[0]) + tbprintf(" on %s ", node->qs.ifname); print_fld_tb(FLD_QUEUE); // XXX: missing min, max, burst -- 2.20.1