summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcamield <camield@openbsd.org>2012-09-19 15:52:17 +0000
committercamield <camield@openbsd.org>2012-09-19 15:52:17 +0000
commitd200c05e6c0b0f50b5e9ef938d8ad3aaaf6d95fe (patch)
tree201528f82e61496f503f308e4fb8d1cdedbe9c04
parentinherit IFCAP_CSUM_* from the parent interface (diff)
downloadwireguard-openbsd-d200c05e6c0b0f50b5e9ef938d8ad3aaaf6d95fe.tar.xz
wireguard-openbsd-d200c05e6c0b0f50b5e9ef938d8ad3aaaf6d95fe.zip
Show which limit cannot be set. idea mikeb
ok mikeb henning beck
-rw-r--r--sbin/pfctl/pfctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 815ecba6c1c..a7b415867cb 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.313 2012/07/26 11:48:00 mikeb Exp $ */
+/* $OpenBSD: pfctl.c,v 1.314 2012/09/19 15:52:17 camield Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1539,7 +1539,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);