summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2020-10-14 19:22:15 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2020-10-14 19:22:15 +0000
commita2b8d544aa77114ea1605fa6bb4773636dc91f20 (patch)
tree8f60d285e88c538977725be9e0aa4f68f47026dd /sys/net
parentde2a8f3f723cbfd0532eebdbe71f257f9305c978 (diff)
replace a MAXPATHLEN that slipped back in with PATH_MAX so userland won't
have to pull in <sys/param.h> ok kn@ sashan@ deraadt@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pfvar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index 102dda67f84..42fe9376eee 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfvar.h,v 1.496 2020/08/24 15:30:58 kn Exp $ */
+/* $OpenBSD: pfvar.h,v 1.497 2020/10/14 19:22:14 naddy Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -475,7 +475,7 @@ union pf_rule_ptr {
};
#define PF_ANCHOR_NAME_SIZE 64
-#define PF_ANCHOR_MAXPATH (MAXPATHLEN - PF_ANCHOR_NAME_SIZE - 1)
+#define PF_ANCHOR_MAXPATH (PATH_MAX - PF_ANCHOR_NAME_SIZE - 1)
#define PF_OPTIMIZER_TABLE_PFX "__automatic_"
struct pf_rule {