relayd: improve config validation with -n
authortb <tb@openbsd.org>
Sat, 10 Aug 2024 05:47:29 +0000 (05:47 +0000)
committertb <tb@openbsd.org>
Sat, 10 Aug 2024 05:47:29 +0000 (05:47 +0000)
commit2b4fa706c59b1ffeea7aee5728314a5d09225ed6
treebacf7c0df88aac9dc914258d6e0605740370353d
parent7a7a726b09c7c74e339f4dc2dfd71f22d5d73faf
relayd: improve config validation with -n

pf's rule names are limited by 32 characters, so lower the length bounds
for redirect names and tags that relayd accepts as valid config but would
later fail to load into pf. Also display the offending name on error.

from Mark Johnston
ok florian
usr.sbin/relayd/parse.y
usr.sbin/relayd/relayd.h