diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2014-12-10 13:59:30 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2014-12-10 13:59:30 +0000 |
commit | e0741fbd58e65b305dcec18d2b4b6b00d4e5d48b (patch) | |
tree | 4dd99936d06761b951360f663dc34350751ad66f /sbin/pfctl | |
parent | 9ce9e30960b2e6222a244e6166aea039ac6e9239 (diff) |
If pfctl cannot set a limit in the kernel, print the name of the
limit and the requested value.
OK henning@
Diffstat (limited to 'sbin/pfctl')
-rw-r--r-- | sbin/pfctl/pfctl.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index c11f12ea09e..34fde7eb159 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.327 2014/11/13 17:35:30 pelikan Exp $ */ +/* $OpenBSD: pfctl.c,v 1.328 2014/12/10 13:59:29 bluhm Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1712,9 +1712,11 @@ pfctl_load_limit(struct pfctl *pf, unsigned int index, unsigned int limit) pl.limit = limit; if (ioctl(pf->dev, DIOCSETLIMIT, &pl)) { if (errno == EBUSY) - warnx("Current pool size exceeds requested hard limit"); + warnx("Current pool size exceeds requested %s limit %u", + pf_limits[index].name, limit); else - warnx("cannot set '%s' limit", pf_limits[index].name); + warnx("Cannot set %s limit to %u", + pf_limits[index].name, limit); return (1); } return (0); |