Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/usr.sbin/wgconfig
Module Name: src
Committed By: gdt
Date: Wed Oct 7 17:21:10 UTC 2026
Modified Files:
src/usr.sbin/wgconfig: wgconfig.c
Log Message:
usr/sbin/wgconfig: Increase ioctl buffer to 16384
Previously, the buffer used for ioctl was 4096. This worked for wg0
configured for 7 hosts, but failed for 8, surely because the proplist
to be returned was too big. This is malloced and only in use for the
duration of wgconfig, and thus of little consequence.
One could improve this by doubling the allocation every failure and
looping, or changing the kernel to report a needed length, but this
change should help a lot of people.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.sbin/wgconfig/wgconfig.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index