git: 97823244bd21 - main - pfctl: Show which limit cannot be set.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 06 Feb 2025 14:00:19 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=97823244bd21c1161b17169af3cd47b717cb4bcb
commit 97823244bd21c1161b17169af3cd47b717cb4bcb
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-02-03 13:08:17 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-02-06 14:00:05 +0000
pfctl: Show which limit cannot be set.
idea mikeb
ok mikeb henning beck
Obtained from: OpenBSD, camield <camield@openbsd.org>, d200c05e6c
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sbin/pfctl/pfctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 11634c4d230e..48e1d0b833c5 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -2463,7 +2463,7 @@ pfctl_load_limit(struct pfctl *pf, unsigned int index, unsigned int limit)
if (errno == EBUSY)
warnx("Current pool size exceeds requested hard limit");
else
- warnx("DIOCSETLIMIT");
+ warnx("cannot set '%s' limit", pf_limits[index].name);
return (1);
}
return (0);