diff options
author | Alexandr Nedvedicky <sashan@cvs.openbsd.org> | 2023-06-30 12:16:01 +0000 |
---|---|---|
committer | Alexandr Nedvedicky <sashan@cvs.openbsd.org> | 2023-06-30 12:16:01 +0000 |
commit | f857dcfc1fd7bf86a04ffa79ad05d0a400adfe3e (patch) | |
tree | 1917357a32bf2cd74c799635dab23d22c28dc553 /usr.sbin/relayd | |
parent | 63545d1764b1416fbc0467dd4943c2b27a0d7244 (diff) |
let check_table() also print table@anchor when it exits
unexpectedly via call to fatal()
OK claudio@
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r-- | usr.sbin/relayd/pfe_filter.c | 5 |
1 files 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 <pyr@openbsd.org> @@ -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); |