NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: NetBSD 10.1 amd64 wireguard can add only 6 peers?
Mayuresh <mayuresh%warunjikar.in@localhost> 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 :-)
Home |
Main Index |
Thread Index |
Old Index