Re: NetBSD 10.1 amd64 wireguard can add only 6 peers?

Greg Troxel <[email protected]>
Newsgroups gmane.os.netbsd.general
Message-ID <[email protected]>
Mayuresh <[email protected]> writes:

>     # wgconfig wg0
>     wgconfig: ioctl(SIOCGDRVSPEC): Invalid argument
>
> Anyone else faced this? If there is such limit, is it configurable?

I would suggest reading the sources for wgconfig.   You'll find that a
struct ifdrv is passed to SIOCGDRVSPEC, and that has a pointer/length to
an alloocated buffer, and the size is 4096.

It is an exercise for the reader to choose a different size, rebuild,
and test, and then to propose a design for solving the problem in
general :-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.