diff options
author | Cy Schubert <cy@FreeBSD.org> | 2024-11-07 15:51:12 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2024-11-12 03:18:08 +0000 |
commit | 8aae4220d76602f22291d7567ba0c61b9aa8c188 (patch) | |
tree | 7221c2001f8eff0599bbf32124cce7558819a859 | |
parent | 470c680cfbf5f6cd9ac392b210b97b41d02cd969 (diff) | |
download | src-8aae4220d766.tar.gz src-8aae4220d766.zip |
ipfilter: Print the hash name when adding a hashnode fails
As with when printing errors for failed poolnodes, printing the hash
node (IP address) only leads to speculation which hash pool the failed
add occurred. This is especially useful when the same IP address is
listed in multiple hash pools.
MFC after: 1 week
-rw-r--r-- | sbin/ipf/libipf/load_hashnode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ipf/libipf/load_hashnode.c b/sbin/ipf/libipf/load_hashnode.c index 11525dc96e35..bf22edb9be87 100644 --- a/sbin/ipf/libipf/load_hashnode.c +++ b/sbin/ipf/libipf/load_hashnode.c @@ -55,7 +55,7 @@ load_hashnode(int unit, char *name, iphtent_t *node, int ttl, if (!(opts & OPT_DONOTHING)) { char msg[80]; - snprintf(msg, sizeof(msg), "%s node from lookup hash table", what); + snprintf(msg, sizeof(msg), "%s node from lookup hash table(%s)", what, name); return (ipf_perror_fd(pool_fd(), iocfunc, msg)); } return (0); |