From e32ac0fbcc782356121a38c41761dae332c88eec Mon Sep 17 00:00:00 2001 From: sashan Date: Fri, 30 Jun 2023 12:16:00 +0000 Subject: [PATCH] let check_table() also print table@anchor when it exits unexpectedly via call to fatal() OK claudio@ --- usr.sbin/relayd/pfe_filter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.sbin/relayd/pfe_filter.c b/usr.sbin/relayd/pfe_filter.c index 347048ece56..f884ac5ae7a 100644 --- a/usr.sbin/relayd/pfe_filter.c +++ b/usr.sbin/relayd/pfe_filter.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfe_filter.c,v 1.62 2017/05/28 10:39:15 benno Exp $ */ +/* $OpenBSD: pfe_filter.c,v 1.63 2023/06/30 12:16:00 sashan Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard @@ -632,7 +632,8 @@ check_table(struct relayd *env, struct rdr *rdr, struct table *table) goto toolong; if (ioctl(env->sc_pf->dev, DIOCRGETTSTATS, &io) == -1) - fatal("%s: cannot get table stats", __func__); + fatal("%s: cannot get table stats for %s@%s", __func__, + io.pfrio_table.pfrt_name, io.pfrio_table.pfrt_anchor); return (tstats.pfrts_match); -- 2.20.1