mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 13:58:30 -04:00
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. (cherry picked from commit 8aae4220d76602f22291d7567ba0c61b9aa8c188)
This commit is contained in:
parent
c6385ba2c9
commit
f9d3c2a443
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue