Re: [PATCH v3 10/16] eal: limit maximum runtime directory and socket paths

Stephen Hemminger
2025-12-08T19:14:36Z

On Mon, 8 Dec 2025 08:58:22 +0000
Bruce Richardson <bruce.richardson@intel.com> wrote:

> On Fri, Dec 05, 2025 at 12:11:39PM -0800, Stephen Hemminger wrote:
> > Linux (and FreeBSD) has a limitation of 108 characters for
>
> 108 characters -> "just over 100 characters"
>
> make it generic to cover both linux and bsd
>
> > any unix domain socket path. Therefore DPDK would not work
> > if a really large runtime directory was used.
> >
> > Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
>
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
>

Since Windows defines UNIX_PATH_MAX in afunix.h probably
best to just compute the size based on sun_path which is what
follow up patch does.