On Thu, Jun 4, 2015 at 12:41 AM, Konstantin Belousov <kostikbel at gmail.com> wrote: ... >> - size = sizeof(rule); >> error = sysctl(name, len, NULL, NULL, &rule, 0); > This is very strange chunk. I suspect that the intent was to have 'size' > as the sixth argument to the sysctl(3) call, or just have sizeof(rule) > instead of 0. Agreed.