mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 13:58:30 -04:00
ipfilter: Print the pool name when adding a poolnode fails
Printing the pool node (IP address) only leads to speculation which pool the failed add occurred. This is especially useful when the same IP address is listed in multiple pools. (cherry picked from commit 470c680cfbf5f6cd9ac392b210b97b41d02cd969)
This commit is contained in:
parent
d46948338c
commit
c6385ba2c9
1 changed files with 2 additions and 2 deletions
|
|
@ -54,8 +54,8 @@ load_poolnode(int role, char *name, ip_pool_node_t *node, int ttl,
|
|||
if ((opts & OPT_DONOTHING) == 0) {
|
||||
char msg[255];
|
||||
|
||||
snprintf(msg, sizeof(msg), "%s pool node(%s/", what,
|
||||
inet_ntoa(pn.ipn_addr.adf_addr.in4));
|
||||
snprintf(msg, sizeof(msg), "%s pool(%s) node(%s/", what,
|
||||
name, inet_ntoa(pn.ipn_addr.adf_addr.in4));
|
||||
strlcat(msg, inet_ntoa(pn.ipn_mask.adf_addr.in4), sizeof(msg));
|
||||
return (ipf_perror_fd(pool_fd(), iocfunc, msg));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue