diff options
author | 2014-12-10 13:59:29 +0000 | |
---|---|---|
committer | 2014-12-10 13:59:29 +0000 | |
commit | beb5ed50a7cdff4531e4ca1ae00835132babbe4b (patch) | |
tree | 01f6881534d91d6c42854d7806f0f68efe9432fa | |
parent | Convert watchdog(4) devices to use autoconf(9) framework. (diff) | |
download | wireguard-openbsd-beb5ed50a7cdff4531e4ca1ae00835132babbe4b.tar.xz wireguard-openbsd-beb5ed50a7cdff4531e4ca1ae00835132babbe4b.zip |
If pfctl cannot set a limit in the kernel, print the name of the
limit and the requested value.
OK henning@
-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); |